I have some problem using the function FSOUND_CD_SetVolume(int). When I change the value of the volume, it doesn’t worked. I mean the volume doesn’t change, And the function return TRUE, so i don’t where the problem comes from !!!
Does anyone got an idea how to solve this problem.
thanks for your help.
- punx120 asked 14 years ago
Thanks for all your replies.
> Chris : I’m running under Linux, I will try your sample anyway, maybe it will works !!!
>Controller : I think my audio cable is well connected because i heard the sound well.
> Brett : when I change the volume, the setting in the control panel doesn’t change. What surprises me most, is that the funciton return true, and it doesn’t affect the volume, if i use the api FSOUND_GET_Volume(), it returns the initial value !!!
I will try to read the cd digitally thanks to chris’ sample, hope it will works under linux.
[quote:1qlu9zot]> Brett : when I change the volume, the setting in the control panel doesn’t change. What surprises me most, is that the funciton return true, and it doesn’t affect the volume, if i use the api FSOUND_GET_Volume(), it returns the initial value !!!
Ok, we’ve found the problem and fixed it. A fixed version will be available when FMOD 3.72 is released which should be real soon now.
Ok, I’m looking forward for FMOD 3.72. I’d like to tell you your work is great, I have been developping a small cd & mp3,ogg,etc player since one months. And your library is very easy to use and powerfull. And the forum is very helpful.
Thanks a lot.
it only works in Win32 and you must have fmod 3.71 or higher.
then you can just use the stream api
open a cd like this (this is from the docs):
To open a CD for CDDA streaming, specify the drive letter of a CD drive e.g. FSOUND_Stream_Open(“d:”, 0, 0, 0); FSOUND_Stream_Open will create a stream with multiple substreams, one for each CD track. Use FSOUND_Stream_SetSubStream to select which CD track to play.
A number of options can be passed to FSOUND_Stream_Open along with the drive letter. They are :
? e.g. FSOUND_Stream_Open(“d:?”, 0, 0, 0); This option will cause a tag field called “CD_DEVICE_INFO” to be attached to the stream. This tag field contains information on the specified CD device.
! e.g. FSOUND_Stream_Open(“d:!”, 0, 0, 0); This option will cause the stream to be opened in “quick open” mode. When a stream is opened in this mode, calls to FSOUND_Stream_SetSubStream will return immediately making it quick to select each substream in turn and get the length of each CD track. Note that a stream in quick open mode cannot be played! Use quick open mode to get track lengths and then re-open the stream without quick open mode to actually play it.
j e.g. FSOUND_Stream_Open(“d:j”, 0, 0, 0); This option turns jitter correction OFF.
Options can be combined like so: FSOUND_Stream_Open(“d:*?!j”, 0, 0, 0);
If a nonblocking CDDA stream fails to open, a tag field called “CD_ERROR” will be attached to the stream. This tag field contains a textual description of why the stream failed to open.
NOTE: FMOD will always try to use native NTSCSI support to communicate with CD devices before trying to use ASPI. If FMOD is using ASPI then it can only access the first CD device it finds.
the cd will be handled like a stream and you can use dsp and effects on it 😀
Please login first to submit.