Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, Quad), 903 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[SOUND] balance problem #395597
02/25/12 12:29
02/25/12 12:29
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
Ive been playing around with snd_play, snd_loop and snd_tune but it seems the balance parameter does nothing, it plays in both channels regardless of being set to -100 or +100;

I'm using a .ogg file but i also tried .wav and MONO versions of the sound, even went as far as using sounds from the Gstudio template folder, still no luck;

At the moment i even muted my LEFT sound channel on my pc to make sure but i hear the sound in the RIGHT speakers regardless of the balance parameter;

so the question is, why would this happen? what am i overlooking?

Re: [SOUND] balance problem [Re: darkinferno] #395605
02/25/12 14:00
02/25/12 14:00
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
From my point of view youre not missing a thing. snd_tune seems to be broken. Here is a small compileable example that demonstrates the issue:

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);
	}
}



Keep in mind you can only use mono sounds. Stereo sounds are not yet supported.

Wanna post in the bugs forum? Or shall I? I have the current beta installed. I can also post in the beta forum.


Always learn from history, to be sure you make the same mistakes again...
Re: [SOUND] balance problem [Re: Uhrwerk] #395609
02/25/12 14:51
02/25/12 14:51
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
Go ahead, a fix will help other users more than me because I use A7 so i wont get fixes plus, i'm sure i wouldnt get it before my release deadline;

I was hoping to use this to create a entity sounds system for snd_play and snd_loop but i guess i'm stuck at the retarded 16 sounds limit then =/

#switching engines as soon as i finish this project, at my limit now, this is ridiculous, theres NOTHING i dont have to find workarounds for
[sorry for the rant people]

Re: [SOUND] balance problem [Re: darkinferno] #395613
02/25/12 15:09
02/25/12 15:09
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Created a bug report. Lets see if JCL finds a way out.

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=395612&#Post395612


Always learn from history, to be sure you make the same mistakes again...
Re: [SOUND] balance problem [Re: Uhrwerk] #395772
02/27/12 15:02
02/27/12 15:02
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Originally Posted By: JCL
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.

grin


Always learn from history, to be sure you make the same mistakes again...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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