• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

[SOLVED] audio_play_sound_at seems to be playing sounds from the wrong side

M

MonkeyFace771

Guest
Hello. I recently started using GameMaker Studio and have been going through some of the tutorials.

I noticed in the tutorial "Audio_Part2_Changing_Audio" that sounds that are being played using the function audio_play_sound_at seem to be playing from the wrong side. Sounds that I expect to play from the left side are being played from the right side, and from the left side when I expect the right side.

I have tried using the code shown in the tutorial, as well as setting the x value in the function specifically to -1 (in attempt to make the sound come from the left), but the sound always seems to come from the wrong side.

Is there something I am missing with regards to the audio listener? Any advice would be appreciated.

Thanks.
 
P

popjin

Guest
In your post, I'm not quite sure what you mean when you say left or right sides, so I'm just going to assume you mean your speaker. It could be that you may have setup the speaker wrong, in which case you can flip or switch them to get the correct sound or try flipping your code to change it.

Hope this helped!
 
M

MonkeyFace771

Guest
Thanks for the reply. Yes, you are correct in assuming I mean speaker.

I believe the issue is specific to GameMaker Studio, as my speaker configuration test (through the playback devices configuration settings on Windows) is giving me sounds through the expected speakers.

I can make the sounds come from the expected speakers in GameMaker Studio if I change the x values around, but I was hoping to be able to keep negative x values as left, as the tutorial and online documentation suggests should be the case. (And right as positive x values).

I read something on Google suggesting that the default audio listener orientation might cause the situation I am experiencing, so I would probably be able to fix the issue by changing the listener orientation. (This information came from an article written in 2014, so I don't know if it is currently accurate.) However, I don't know if it is normal to have to change the listener orientation.

My worry is that I don't know if this situation is something specific to my computer / setup of GameMaker Studio, or if this is something that others have experienced. As such, I don't know if changing the x values around (or changing the listener orientation) would result in the sounds coming from the correct speakers for me, but the wrong speakers for other people.
 
M

MonkeyFace771

Guest
Using the 0,-1,0 and 0,0,-1 seems to have solved the issue. Thanks a bunch for the help.
 
U

Uhfgood

Guest
I actually just experienced this problem right now. How come the listener orientation isn't automatically set to a default value for negative being on the left and positive on the right? This particular tutorial is in the beginner section and this isn't exactly a beginner topic (although it's easy enough to learn).
 
I

icuurd12b42

Guest
How come the listener orientation isn't automatically set to a default value for negative being on the left and positive on the right? This particular tutorial is in the beginner section and this isn't exactly a beginner topic (although it's easy enough to learn).
"But it's the default 3d setting!"
^There is a disconnect at yoyo between what is considered default by every 3d system (where the default make sense) and the reality of the default top down setting of the 2d environment of the engine.
 
Top