Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
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
3 registered members (AndrewAMD, kzhao, 7th_zorro), 714 guests, and 7 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
Page 1 of 2 1 2
SOUND PROBLEM #270952
06/10/09 17:50
06/10/09 17:50
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)
something strange happening here, i use
Code:
snd_play ( SOUND*, var Volume, var Balance);


to play my sounds, it all starts off ok, but halfway through gameplay, i only hear things in the left channel...

anybody else experienced this? its rather strange since i explicitly set my balance to 0 ...

oh and the background music, played by media play, is playing in both channels...

Last edited by darkinferno; 06/10/09 18:08.
Re: SOUND PROBLEM [Re: darkinferno] #270956
06/10/09 17:57
06/10/09 17:57
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline
Junior Member
AttosRH  Offline
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
you need to adjust the var balance

SOUND* Sound pointer
Volume volume (0..100).
Balance stereo balance (-100 .. +100). Negative values turns the sound to the left, positiv to the right speaker..

edit:
Quote:
anybody else experienced this? its rather strange since i explicitly set my balance to 0 ...


sorry didn't read this but the balance works fine here...

Re: SOUND PROBLEM [Re: AttosRH] #270993
06/10/09 19:08
06/10/09 19:08
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Example:
SOUND* mywhoosh = "whoosh.wav"
var sndhandle
sndhandle = snd_play(mywhoosh,100,0);

Also please note that the sound is played on the same side it is emited on.
eg: If the sound source is to the left of the plyer, It will come sound out on
the left speaker only. The only other way around this is to use
ent_playsound instead.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: SOUND PROBLEM [Re: Nidhogg] #271089
06/11/09 08:55
06/11/09 08:55
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)
no, ent_playsound plays a 3d positioned sound in relation to the cam, there are no ents in my game so i use snd_play and i set the balance to zero and as i said, it starts playing stereo at first, then halfway through, one channel gets quiet..

Re: SOUND PROBLEM [Re: darkinferno] #271094
06/11/09 09:19
06/11/09 09:19
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
halfway through the sound, or the game?
because it might be the sound itself then that blocks of the right channel...

also, there is a limit to 32 sounds at the same time (hardware limit i believe), if you have more, then these kind of errors might occur...

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: SOUND PROBLEM [Re: Helghast] #271095
06/11/09 09:30
06/11/09 09:30
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)
i'm nowhere near the limit... when the game starts, everything is fine, then fter a while, all the sounds stop playing in the right channel, it cant be the sound files since they play right at first.. this is just so strange... yet the music using media_play still plays in both channels

Last edited by darkinferno; 06/11/09 09:31.
Re: SOUND PROBLEM [Re: darkinferno] #271118
06/11/09 10:37
06/11/09 10:37
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)
this is SO strange.. if i set the balance to -100 or 100, then it plays in both channels, now if i'm right, it shoouldnt do that.. right?

-100 - left channel
+100 - right channel

so why is it that when i set the balance to 0, it only plays in the left channel and if i set it to 100/-100 then i get full stereo?

i dont want to release the game like that only to have everyone else here one channel playing...

Last edited by darkinferno; 06/11/09 10:37.
Re: SOUND PROBLEM [Re: darkinferno] #271122
06/11/09 10:56
06/11/09 10:56
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
hmm... do you control it by a variable by chance?
what version are you using? latest A7.77.4?

Maybe submit it as a bug so JCL can take a look at it...

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: SOUND PROBLEM [Re: Helghast] #271192
06/11/09 17:55
06/11/09 17:55
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Is it a mono or stereo wav. Make sure you read the manual about file types
I think it states something about using mono for snd_play


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus
Re: SOUND PROBLEM [Re: Nidhogg] #273952
06/25/09 04:24
06/25/09 04:24
Joined: May 2009
Posts: 19
Oklahoma, USA
Zodiac Offline
Newbie
Zodiac  Offline
Newbie

Joined: May 2009
Posts: 19
Oklahoma, USA
I think it gives you an error message if you try to use stereo in snd_play.


If everything seems to be going well, you have obviously overlooked something.
Page 1 of 2 1 2

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