I am having problems using the spectrum and equalizer functions with FMOD.ctl from the XMDEV kit using VB. All of the FMOD examples on this forum seem to Open a stream by selecting a file then playing it, and using this method everything works fine. However I have and embedded WMP player in my application, which is already playing a live stream from internet radio. I would like to tap into that existing stream without playing it through FMOD, but display a live Spectrum and enable the equalizer for the existing stream.
I am nowhere the level of most users on here, apparently, and am quite impressed with both the level of experience found here and the marvelous capabilities of FMOD, but I would need some very clear instructions on how to use these functions with a current stream.
Thanks in advance for any help, and my compliments to the people involved in making the whole FMOD experience available. DK
- DKNY asked 12 years ago
Thanks for your quick reply. I was able to do what I asked you about with the Bass VB demos using Bass.dll, they call it liveSpec and it does a spectrum for anything producing sound through your sound card. That’s what led me to hope I coud accomplish this with Fmod, which I would prefer to use over the Bass functions. So no way at all …?
I realize I could scrap the embedded WMP control and do everything with Fmod, but that seems like a lot of work at this point in my little project, maybe I will consider it down the road.
Now that I think about it, I primarily want the spectrum while recording, so I suppose I could disable the WMP control and pass the url to FMOD for recording, and thus get the spectrum. I assume that would work without any problems, you agree?
Thanks again for your assistance. dk
Thanks, I have made some pretty good progress, but a few more questions if you don’t mind.
Using the NetGetStatus for the FMOD User Control I would like to get info like connecting, buffering, etc. What are the values for lngMode I should be using. Is this documented somewher on this site?
Next issue, when playing a Net radio stream FMOD.StreamGetDuration(lngCurChan) always returns 12174. Is there any way to obtain the remaining time of the current Track [i.e. song] playing?
Lastly, the only way I could get Artist and Title was to use FSOUND_METADATACALLBACK, but to do this I had to open the same url the FMOD User Control was playing with FSOUND_OUTPUT_NOSOUND and get my data for this identical stream. Is it possible to get Artist and Title for the stream playing with the FMOD User Control? I can get fields 0 thru 6 with FMOD.TagGetInfo but I am not clear on how to get Artist and Title details. Again, if this is documented for the User Control somewhere please point me there.
What I am hoping to do is record the current song, create a filename and save it using Artist and Title as filename, and so on to create separate files for a user selected total duration of music. Using a separate window with the FSOUND_METADATACALLBACK info I am able to pass the new tag info to my app, will I be successful in separating the tracks if I save the stream and start a new one everytime the tags change?
Thanks again in advance for all your assistance. Have a good day. DK
Please login first to submit.