snd_tune doesn't change balance

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:
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
Posted By: jcl

Re: snd_tune doesn't change balance - 02/27/12 14:53

Yes, we know of this problem, but the only workaround is using OpenAL. It happens with certain audio drivers and is there since A3, not since A7.
Posted By: Uhrwerk

Re: snd_tune doesn't change balance - 02/27/12 15:01

Thanks for the info ... grin
Posted By: darkinferno

Re: snd_tune doesn't change balance - 02/27/12 16:02

so... thats it ? ...wow, um, thanks? laugh
© 2024 lite-C Forums