0
0

I’ve played a sound in a channel.
[code:3lmi1jm2]FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, sound, 1, &channel);[/code:3lmi1jm2]
Set a min max value
[code:3lmi1jm2]FMOD_Sound_Set3DMinMaxDistance(sound, (float) TDmin, (float) TDmax);[/code:3lmi1jm2]
Stopped it.
[code:3lmi1jm2]FMOD_Channel_Stop(channel);[/code:3lmi1jm2]
Play it again
[code:3lmi1jm2]FMOD_System_PlaySound(system, FMOD_CHANNEL_FREE, sound, 1, &channel);[/code:3lmi1jm2]
Now, on the last play I get FMOD_ERR_OUTPUT_DRIVERCALL for playsound.
TDmin and TDmax are double. If I input values manually like FMOD_Sound_Set3DMinMaxDistance(sound, 1.0, 10000); it works fine.

Any tips what I should do? TDmin and TDmax has to stay double.

Thanks

  • You must to post comments
0
0

Nevermind, solved
I called FMOD_Sound_Set3DMinMaxDistance right after playsound which caused this, doing it after createsound worked better.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.