Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 15,499 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
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 Offline OP
Expert
Uhrwerk  Offline 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:
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


Always learn from history, to be sure you make the same mistakes again...
Re: snd_tune doesn't change balance [Re: Uhrwerk] #395768
02/27/12 14:53
02/27/12 14:53
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
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.

Re: snd_tune doesn't change balance [Re: jcl] #395770
02/27/12 15:01
02/27/12 15:01
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline OP
Expert
Uhrwerk  Offline OP
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Thanks for the info ... grin


Always learn from history, to be sure you make the same mistakes again...
Re: snd_tune doesn't change balance [Re: Uhrwerk] #395780
02/27/12 16:02
02/27/12 16:02
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
so... thats it ? ...wow, um, thanks? laugh


Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1