Posted By: Uhrwerk
snd_tune doesn't change balance - 02/25/12 15:08
Hi Mr. Lotter,
There seems to be a problem with snd_tune not changing the balance of the given sound. Here is an axample of the problem:
When executing this the sound's balance is not changed at all. If you change "snd_tune(handle,100,100,balance);" to "snd_tune(handle,0,0,balance);" the sound is not hearable at all, although volume and frequency shouldn't be changed by this example. Though the sound is still playing. I checked with snd_playing.
Didn't post in the beta forum as this bug seems to be present since A7 days. See also this discussion:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=395609#Post395609
There seems to be a problem with snd_tune not changing the balance of the given sound. Here is an axample of the problem:
Code:
#include <acknex.h> void main() { SOUND* snd = snd_create("#1"); fixed handle = snd_loop(snd,100,0); while (1) { fixed balance = cosv(total_ticks * 10) * 99; snd_tune(handle,100,100,balance); DEBUG_VAR(handle,0); DEBUG_VAR(balance,50); wait(1); } }
When executing this the sound's balance is not changed at all. If you change "snd_tune(handle,100,100,balance);" to "snd_tune(handle,0,0,balance);" the sound is not hearable at all, although volume and frequency shouldn't be changed by this example. Though the sound is still playing. I checked with snd_playing.
Didn't post in the beta forum as this bug seems to be present since A7 days. See also this discussion:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=395609#Post395609