0
0

I was using FMOD 3.6 for my VB project and it was working fine but then I switched to 3.7 and started having a problem. 3.7 works fine in Windows XP but in Windows ME it doesn’t play Audio CD tracks all the way through.

I started a new project and all I do is Init FMOD set the CD play mode to play once and then stop. Then play the CD track.

upon exit I stop the CD and close out FMOD.

The code works fine in Windows XP and plays the entire track. However, on Windows ME it will get to the same spot in the track everytime and pause. If you call SetPaused to unpause it will start to play again and make a pop but then stops again.

I’ve tried multiple CD’s and the stop point is different on every song, but it rarely finds a song it will play all the way through.

Does anyone know what’s causing this?

FSOUND_Init 44100, 32, FSOUND_INIT_GLOBALFOCUS ‘Load the sound library.
FSOUND_CD_SetPlayMode ASC(“F”), PLAYONCE
FSOUND_CD_Play ASC(“F”)

is basically the only code you need to recreate the error. But only fails to work on Windows ME.

  • You must to post comments
0
0

Does the Fmod player example works ? Try it out to see if there is something wrong with your code :)

  • You must to post comments
0
0

[quote:21mezg5g]
Try it out to see if there is something wrong with your code
[/quote:21mezg5g]

… otherwise open your CD tracks as streams. See 3.71 documentation.

๐Ÿ˜‰

  • You must to post comments
0
0

This is the entire code of my project.

FSOUND_Init 44000, 32, FSOUND_INIT_GLOBALFOCUS
FSOUND_CD_SetPlayMode Asc(“F”), FSOUND_CD_PLAYONCE
FSOUND_CD_Play Asc(“F”), 1

Works fine in XP but not in ME, or not on my installation of ME anyway, and worked fine with FMOD 3.6 it would work on both OS’s but when I changed to 3.7 it started doing this. Don’t understand why.

It can be no other line of code, for my project contains no other code. If anyone can find what’s wrong with these three lines of code in terms of playing a CD, please tell me. But I doubt that’s it.

  • You must to post comments
0
0

You didn’t take attention to what Idago said, the FMOD CD api changed a lot (rewritten from scratch i think) it use a lower api and now, you can open cd as a stream, read the documentation and the sourcecode provided with the archive.

  • You must to post comments
0
0

I’m on it.

  • You must to post comments
0
0

Ok, still not sure what was going on there, but opening file as a stream seemed to solve the problem. Very easy to implement too.

Thanks, ๐Ÿ˜†

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.