0
0

Hi !
I have some problem to play an mp3 sample in 3D… I can load it, but when i want to play it, i don”t hear anything !!!!
Please could you help me to do this ?
Some code are welcome !! :)

Thanks for all comments.

SkullNation

  • You must to post comments
0
0

i load the sample like this :

FSOUND_SAMPLE *samp;

if (strstr(Path.c_str(), “mp3”))
samp = FSOUND_Sample_Load(FSOUND_FREE, Path.c_str(), FSOUND_STREAMABLE | FSOUND_ENABLEFX, 0);
else
samp = FSOUND_Sample_Load(FSOUND_FREE, Path.c_str(), FSOUND_HW3D | FSOUND_STREAMABLE | FSOUND_ENABLEFX, 0);

FSOUND_Sample_SetMode(samp, FSOUND_LOOP_NORMAL);
FSOUND_Sample_SetMinMaxDistance(samp, 4.0f, 1000.0f);
channel = FSOUND_PlaySound(FSOUND_FREE, samp);
FSOUND_3D_SetAttributes(channel, (float *)Pos, vel);

FSOUND_3D_Update();

I can’t play the mp3 if i use FSOUND_HW3D…. i hear nothing… But if i suppress this flag i hear the sample ?!!! The piece of code is my loading function of the mp3. I don’t understand why i can’t play it with this flag. I use DirectSound output system. If it can help you…

  • You must to post comments
0
0

I set the listener position of course… :)

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.