Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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 | chip programmers | 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