0
0

hi,
With following code i can play a sound. But i want to specify the channel.I have try channel 1,2,3,45,44…but i can not play a sound in a specified channel, why?With FSOUND_FREE it works

[code]
FSOUND_SetBufferSize(100); /* This is nescessary to get FX to work on output buffer /
FSOUND_Init(44100, 16, FSOUND_INIT_ENABLESYSTEMCHANNELFX);
/
PCM,44,100 Hz, 16 Bit, Stereo */
samp1 = FSOUND_Sample_Load(FSOUND_FREE, “d:/jukebox/sounds/” + listView->currentItem()->text( 1) + “/” + ( listView->currentItem() )->text( 0 ) + “”, FSOUND_HW2D, 0, 0);
FSOUND_PlaySound(FSOUND_FREE, samp1);
[/code]

  • You must to post comments
0
0

hi,
thx for the answer. I dont have understand exactly what i should do to can play a ong in a specified channel. How should i get the channels with this function:?
[code]
signed char F_API FSOUND_GetNumHWChannels(
int *num2d,
int *num3d,
int *total
);
[/code]
I want to play a song under windows. I have programmed a mp3 player(software).Why could i not play a song on channel 1?

  • You must to post comments
0
0

hi bret,
Thanks for your answer i will check it

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.