0
0

😕 Hi, I came across a strange problem when working on my player last night, I have not had a chance to look into it fully yet (now I’m at work so I can’t play with it for 12 hourse or so) but I thought I’d see if anyone else had experienced a similar problem.
I’ve had my player working fine for some time now but had not implemented wma playback (mp3 & ogg only) until the last couple of days (by that I mean I had not allowed wma streams to be created by my player).
Anyway my problem is that now I can play OGG & Mp3 fine, play an OGG, play an Mp3 play an OGG etc I can then play a WMA a WMA a WMA etc, BUT if I play an MP3 or an OGG after a WMA then there is no sound, the stream is playing (I get Spectrum data and time progress, I can also seek the stream) but no sound. I can play a WMA file again and it works fine, go back to an MP3 or OGG and no sound again. I got the same result on Win2k and Win98 (different PCs different soundcards)
I can compile and run the sample program and it works fine. I expect that the problem is in my code, but I’ve used my player previously for hours at a time (only OGG & Mp3) with no problems so I don’t really no where to start. I used Get/Set volume,Pan,SetPaused etc, nothing, I then inserted FSOUND_Close followed by FSOUND_Init between songs and this fixed the problem, but I know that I shouldn’t have to do this.
I am going to revisit all of my fmod code tonight but I was wondering if anyone else has had this problem or can provide any clues.

Thanks in advance for any info you can provide.

  • You must to post comments
0
0

If it works fine in the Delphi testbed, then I’m not sure what to suggest other than what you are going to do already, and that is to revisit your code.

  • You must to post comments
0
0

😳 My App has grown over time and I had the fmod stuff wrapped up in a component which I had recently moved to a data module so that I can communicate with it from different Front Ends, this also meant that FSOUND_SetHWND had the handle to the data module, I’ve set the handle to Application.Handle and it works fine now. I don’t really understand why, but I guess it’s something to do with the fact that WMA doesn’t really play through fmod and things were getting screwed up after I played a WMA.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.