Heres a screenshot of my new proggy made with FMOD 3.6. It should show how to utilize all of the new functions in vb.
Download it here:
- Paranoid_Android asked 16 years ago
Oh, I see, I might implement that. Also, if you click the time display it should give you total time for the song and remaining time. And if you click on the song in the playlist it will give you the approximate time of the file from the ID3, so I am a little bit confused on what you mean about the total time of the song, because I already have it. But I will take a look at your code and see what I can do.
Hello… I was playing around with your project example and was curious how I’d increase the thickness of the bars and peak bar used in the visual spectrum? So if I were to use a picturebox of greater width, I’d have the bars fill up the spectrum appropriately.
You could try to edit the GetrSpectrumCount function to allow for more bars, but that would be hard. And since I didnt write that function I dont know how you would do it. You could just try to plot the raw spectrum data without going through the simplified spectrum, but it wouldn’t be as precise.
First of all sorry for my bad english.I hope I can explain my problem.
I made an MP3 Player using Ingenuware’s ISMP3Player.It’s CPU usage is high,but it works pretty well.So what’s my problem.I saw your spectrum code here and I decided to change my code with yours.I made this in a PII 350 MHz and Win2000 and it works very well.But when I tested it on my own computer (PIII 800MHz WinMe) I saw that it works so slowly and I coldn’t solve this problem.What can I do?
Finally thank you for your code and help.
Ok, I have a new build of my program. This new build supports module files. But, I’m having some problems and before I upload it I want to ask some questions. I have everything working (play, pause, stop, etc.) for module files but, how do I get the total length of the file??? Because in order to make a progress bar of the file I need to kinow the length of the file. Also, do modules support Stereo VU?? because for some reason I am only getting the left channel VU for module files. And, is there any way to have Spectrum analysis on Module files??
It is looking quite good, but I have a few comments :
It is not necessary to copy dll’s and ocx’s to the windows/system directory.
I think brett even recommended once to keep the fmod.dll in the same directory as the application, so you are sure the fmod.dll version is the same as you expect.
When dll’s and ocx’s are in the application (.exe) directory they will also be found. (when I open the sample in VB, and press play, it works withouth any problems, and I haven’t used register.bat)
When you don’t have any tag information about a song (so it is Unknown – Unknown) it might be usefull to display the filename.
For the spectrum analyser, it might be a little bit faster if you also use FillRect for the peaks, instead of 5 SetPixelV calls. (Not really that important, and probably won’t give you a large speed increase)
Everything else looks nice about it.
- Adion answered 16 years ago
Hehe! Getting length of modules isn’t as easy as it is with stream files! Modules are much more complex than simple stream files. KarLKoX gave me a dll file which was able to calculate (this is the right term) the length of a mod/s3m/xm or it file. However you can’t implement a progess bar just with knowing the length of module, because you can’t give FMOD an absolute value in ms. However you can use patterns. For every pattern the slide may drop a position, so you can also use it for seeking.
So, what would this DLL do? Will it give me the length in ms or in something else? And how could I use this for seeking? I wish FMOD had more functions for modules, and spectrum analysis is working for modules now but I found that in order to have spectrum analysis you must load a stream into FMOD first. This might be a bug but I’m not sure. Thanks.
A new screenshot with the updated Spectrum Analyzer:
Wow, thanks for the great comments. Adion, so, do I really need the register.bat file??? I only put it there because I thought that those files might need to be copied to the system folder, but if they dont then I will get rid of it alltogether. I’ll add the filename for no tag info too. Brett, that would be great if you did that, thansk for the good comments.
Please login first to submit.