0
0

Hello,
Is there an easy way to loop 2 or more MP3s?
I use FSOUND_Stream_Play to play the file.
Any help will be appreciated. ๐Ÿ˜€

  • You must to post comments
0
0

If it is a stream, open it multiple times then play then individually.

  • You must to post comments
0
0

thanks brett, but what I need is to play the MP3s in sequence, not simultaneously.
One more question: Is it possible to load and play WAVs which are stored in a resource file?
Thanks again ๐Ÿ˜‰

  • You must to post comments
0
0

yes of course you can load from a resource, if you want 2 mp3s to play in order then call FSOUND_Isplaying and wait for it to return false. before you start the next one.

If you want it gapless then you can only use FMOD Ex to do this.

  • You must to post comments
0
0

I use LoadResData function to to load WAV resources (VB code):

Dim songHandle As Long
Dim sampleHandle As Long
Dim DataArray() As Byte

DataArray = LoadResData(101, "WAVE")

and to play it:

sampleHandle = FSOUND_Sample_Load(FSOUND_FREE, DataArray(0), FSOUND_LOADMEMORY, 0, 1024)
sampleChannel = FSOUND_PlaySound(FSOUND_FREE, sampleHandle)

but I get "Subscript out of range" error message…
Can You tell what am I doing wrong?
Thanks!

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.