|
4 registered members (Grant, Ayumi, alibaba, Quad),
5,526
guests, and 0
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
snd_tune doesn't change balance
#395612
02/25/12 15:08
02/25/12 15:08
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
OP
Expert
|
OP
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
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:
#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
Always learn from history, to be sure you make the same mistakes again...
|
|
|
|