Questions tagged [sound]

Audio (heard) output of a game.

Filter by
Sorted by
Tagged with
-2 votes
3 answers
747 views

How can I make my AI NPC's have a footstep sound?

I am making a horror game and I have NPCs roaming around the map. How can I make it so the player can hear the NPCs' footsteps as they get closer?
Harry Hunt's user avatar
1 vote
1 answer
979 views

Can OpenAL be used with Python?

I'm from a background of using OpenAL with other languages; and I'm on a project that benefits very much from Python. I remember PyAL, but it hasn't been updated since 2013 and my computer can't even ...
Michael Macha's user avatar
1 vote
1 answer
262 views

Setting sound panning

I'm trying to set sound panning in my game depending on camera position, rotation and audio source position. I was able to set sound panning depending on camera position (listener), and audio source ...
skprime's user avatar
  • 105
1 vote
1 answer
514 views

Game Maker - Turn On/Off Sound

What I have I have two rooms: rm_home and rm_options. I have a sound: snd_Bgm. And, I have ...
Grace Michelle's user avatar
2 votes
1 answer
10k views

How to use Resources.Load with an AudioClip in Unity?

I'm trying to load an audio clip that's in my assets directory and play it. Here is my C# script: ...
Tanner Fix-It Smith's user avatar
2 votes
1 answer
213 views

Automatic audio segmentation and find the most energetic segments

What algorithm can be used for audio segmentation? I want to divide song to segments and find the most energetic segments (begin and end in seconds). It is needed for the rhythm-game. Examples: ...
Rusildo's user avatar
  • 103
4 votes
0 answers
789 views

Libgdx stops all sounds when there are lots of sounds

I'm making a 2D game for Android using Android Studio with Libgdx in Java. I have a class, called SoundPlayer, which holds an ArrayMap. The key is the name of the sound file and the value is the sound ...
Gad Wissberg's user avatar
-1 votes
1 answer
40 views

Why does iPhone games include a sound option?

Why does iPhone games include a sound option? It seems very unnecessary because the sound options (on/off, volume) are already on the hardware itself. Unless the player wants to shut out music, or ...
Esqarrouth's user avatar
3 votes
1 answer
819 views

How do you use SoundManager for multiple player games over the network?

I have created a basic sound manager according to this unity tutorial (https://unity3d.com/learn/tutorials/projects/2d-roguelike/audio). However, I need it to work for multiple players over the ...
lingz's user avatar
  • 151
0 votes
1 answer
148 views

What do you call the sounds that play when players place/destroy blocks?

I'm working on a game and trying to find sounds for it. I'm not sure what terminology to use when searching to find the kinds of sounds I need. Specifically I'm looking for sounds that make sense for ...
Gykonik's user avatar
  • 213
0 votes
1 answer
338 views

How should player be able to hear 2D spatial sound?

Let's say there is a multiplayer 2D game and a 2D spatial sound system, in which sound volume decreases, when distance to the sound position increases. E.g. explosion happens. Should player hear it if ...
Gintas_'s user avatar
  • 467
3 votes
1 answer
531 views

How can I turn off the sound from another scene?

I attached music file to my first scene and thanks to following javascipt code, sound continues without stopping in other scenes. ...
auhan's user avatar
  • 41
2 votes
1 answer
125 views

Sound and Unity 5

I want to work on sound in games, but I don't have any experience in scripting, only in sound design for film. Some friends that do know scripting are starting to learn in Unity 5, and my part would ...
lakistrike's user avatar
2 votes
2 answers
635 views

How to handle sounds muting in settings?

I have a easy and specific question. Let's say that in my game I use singleton for playing/pausing/changing volume of specific sounds (SimpleAudioEngine in cocos2d-x). What is the best way to ...
y434y's user avatar
  • 123
2 votes
1 answer
431 views

Libgdx : surround sound

in libgdx there is a lot of audio classes but i haven't seem to of found anything relating to balancing sound in one speaker and or the other to get surround sound say you check if an object is more ...
Youseflapod's user avatar
5 votes
1 answer
162 views

How would I add a sound variable to my code?

I am writing some code in JavaScript for a ray cast shooting program. I have all the variables I need except for sound, and I'm not too sure on how to add that variable into my code. I would really ...
nova nanite's user avatar
1 vote
1 answer
539 views

How to get the directional vector (for IrrKlang) from pitch and yaw?

Currently my game engine allows the player/camera to pitch and yaw, so there's no roll. The pitch angle starts at 0°, which means the camera is facing straight ahead. From here it can go up to +85° (...
Oliver M.'s user avatar
2 votes
1 answer
959 views

LibGdx Sound start to give an error after loading GameScreen multiple times

I have a LibGdx game, where the user taps on the screen, and a Sound will play. When the user taps on the screen, a texture will "fire" another texture as a missile, and can hit a target, when this ...
John Pulple's user avatar
1 vote
1 answer
119 views

How can I simulate a "Hot Swap" betwen Audio Clips?

I have a Unity project with 3 separate looping Audio Clips and a single Audio Source. Based on certain events, I swap between which of them are playing. This works fine, but whenever I swap between ...
Raven Dreamer's user avatar
1 vote
0 answers
572 views

LibGDX sound playing problem

I'm making a game and I want to play sounds in it. I have AssetManager which loads the sounds and I made a class which has playSound(String sound) method. This method calls the get() method of the ...
Gad Wissberg's user avatar
2 votes
1 answer
2k views

Sounds overlapping when playing too many at the same time

I am pretty novice when it comes to game sound management, so excuse my ignorance. I am having an issue when playing too many sounds at the same time where some sounds stop playing, or doesn't play ...
Henrik Söderlund's user avatar
3 votes
2 answers
449 views

How can a one-man team create game audio? [closed]

I am basically a 14 years game programmer. I am using Unreal Engine 4. I can't make a game without 3D models. So , I started to learn how to draw (for reference images) and how to make some 3D models....
AdhamT's user avatar
  • 31
1 vote
0 answers
635 views

LibGDX music doesn't play anymore after x times

In my App I added two sounds, the first is played when the gamescreen start the second when the game is going to game Over screen. Everything works fine but after about 12-13 games the second sound ...
user65825's user avatar
  • 151
0 votes
0 answers
2k views

Libgdx Music error QCMediaPlayer mediaplayer NOT present

Problem solved with music = Gdx.audio.newMusic(Gdx.files.internal("song.mp3")); I am looking for music implementation in my app with LibGDX. I saw the guide provided in LibGDX documentation but it ...
user65825's user avatar
  • 151
2 votes
1 answer
4k views

Looping OpenAL sounds with one buffer - or how to do it correctly?

I require to implement a statically played sound class which supports looping of the audio data - and requires this to be changed at runtime (e.g., turning off looping). Maybe I understand something ...
Ray's user avatar
  • 581
1 vote
1 answer
631 views

How to play more than one background song in XNA?

The current tutorial I am using to play background songs only allows me to play one song throughout the entire game. Link to tutorial --> http://rbwhitaker.wikidot.com/playing-background-music I ...
vroomvsr's user avatar
  • 155
0 votes
1 answer
282 views

Unity 5 - Error with code to make pitch changes based on distance

I really need help. It's 2:00 AM here and my brain is half dead so I can't, for the life of me, find out what's wrong with this code anymore. It's supposed to find the distance between the game ...
Odival Quaresma Neto's user avatar
5 votes
1 answer
438 views

How does sound effects being in tune affect the game?

Many sound effects have a dominant frequency, especially for artificial sounds (UI, "powerups") and short effects that get repeated (machine guns). Whether by design or accident, these sound ...
congusbongus's user avatar
  • 14.8k
2 votes
4 answers
3k views

How to play a sound by C# that is linked to the object with AudioSource?

I trying to play a sound while the player is ontriggerenter. The sound is linked to the object with a AudioSource component. But notting happened. ...
Caspert's user avatar
  • 235
1 vote
1 answer
277 views

MonoGame InstancePlayLimitException on Windows w/ OpenGL

Why am I getting the InstancePlayLimitException when playing several SoundEffects per second despite there being no limit unless programming for mobile? It occurs after only a few seconds of repeated ...
Bagofsheep's user avatar
4 votes
0 answers
196 views

Where do I start if I want to make music and audio for video games? [closed]

I am a singer/songwriter/instrumentalist, as well as a video game lover. I have some basis in informatics but I have spent 1000x the time on music in comparison with programming. I came to think that ...
Anton Barry's user avatar
4 votes
3 answers
641 views

Sound Synthesis from object collision in Virtual Reality Environment

I have a project whose subject is "Sound Synthesis from object collision in Virtual Reality Environment" First of all, I have to define some objects with certain attributes (like shape, mass, material)...
Alexandros Papanikolaou's user avatar
0 votes
1 answer
1k views

Sound plays several times upon collision

Upon collision, my sound effect plays several times. How can I fix this? ...
Blobbey's user avatar
  • 55
2 votes
1 answer
672 views

How can I get the instantaneous volume level of a sound at a particular playback point?

How can I go about getting the current volume output of an audio file in libGDX? By that I mean of the actual file at its current play position. Essentially I want to write my own version of a plugin ...
Mike's user avatar
  • 21
3 votes
2 answers
2k views

How do I convince my team to use less VO? [closed]

I am a firm believer in using voice over (VO) only for necessary elements such as game narrative, and here and there to drive game play (e.g. instructions coming in over intercom, that sort of stuff). ...
Yellow's user avatar
  • 131
0 votes
3 answers
137 views

How to move around in a map and remember position?

I am working on sound labyrinth game. My game is about a person getting trapped in the basement and the only way to navigate and get out is through sound. I have created a map over the basement and ...
Nanna's user avatar
  • 1
0 votes
0 answers
286 views

OpenAL Soft - Sounds cut off randomly

I'm using OpenAL Soft 1.16.0. Everything's running fine, but for some reason my sounds keep getting cut off at either the beginning or the end (hard to tell). It's not really noticable for music and ...
Silverlan's user avatar
  • 111
3 votes
3 answers
404 views

Sounds and buttons show up in simulator, not in an Android device [closed]

I'm a noob in android game development, started with corona sdk and outlaw. My project runs just fine with the corona simulator on my win8, however, when building it to my android device (galaxy s3) ...
Bar Eliezer's user avatar
1 vote
1 answer
3k views

Master sound volume in LibGDX

I have been searching everywhere for master volume for sound and music in LibGDX but to no avail. Can anyone tell me if it is implemented somewhere or do i need to implement such functionality myself? ...
AVariable's user avatar
5 votes
2 answers
10k views

Unity: stop/play only background music

I have a music sound clip simply drag-n-dropped to my hierarchy. I also have other sound effects in my game. I want to pause/play background music on button press but only music, not all sound effects....
Dmytro Zarezenko's user avatar
4 votes
2 answers
666 views

What is the most efficient way to work with lip sync/facial expressions in XNA?

I've been searching for an answer forever, but I haven't found one. What options are there for lip sync/facial expressions in video games made with XNA? I have a few models for a game I'm building, ...
Gumptastic's user avatar
2 votes
2 answers
196 views

Should I use one line per .wav or one scene per .wav for character speech?

I'm building a game in XNA and I wanted to know how I would organize the character speech portions of the game. These would include both cutscenes and anything else where characters interact. I ...
Gumptastic's user avatar
2 votes
3 answers
2k views

How to prevent overlapping of gunshot sounds when using fast-firing weapons

So I am now trying to find sounds for my guns but when I grab a gun sound effect and play it in my game a lot of the sounds are either terrible sounding or have this horrible echoing effect because as ...
G3tinmybelly's user avatar
1 vote
0 answers
113 views

Panning in Direct sound wthout using SetPan function [closed]

I was wondering if it is possible to pan a WAV file in direct sound without using the SetPan function. If so how? That is change the volume on 2 different speakers, right and left, to simulate that ...
Pappskiva's user avatar
11 votes
1 answer
4k views

How should I handle sound in a split-screen game?

In a split screen multiplayer game, sound events may be heard by more than one player, and they might sound different to each player. For example, player one might hear the sound of the car they're ...
Alistair Buxton's user avatar
1 vote
0 answers
439 views

Playing repeated sound in Java

I'm trying to play sounds in a Java game with the following code: AudioStream audioStream = new AudioStream(stream); AudioPlayer.player.start(audioStream); The <...
Diogo Schneider's user avatar
5 votes
2 answers
625 views

2D Enemy AI reacting to sound

I'm currently working on a 2D top-down survival game and I'm trying to figure out a good method for enemies to detect player sounds. For instance - if the player fires his gun it should play a sound (...
Saliken's user avatar
  • 357
0 votes
2 answers
92 views

Sound composition/compilation softwares [closed]

I'm a one man developer company. I'm working on a game for which I need some variety of sounds. I searched online stock music and it does not give me what I'm exactly looking for. As a desperate and ...
MogambO's user avatar
  • 69
1 vote
1 answer
204 views

Can I rely on SoundEffects being stopped when unloaded?

I am using XNA's SoundEffect class to play sounds. I have to unload all sounds from the corresponding ...
ares_games's user avatar
0 votes
1 answer
102 views

Proper Order to Process Each Frame

I'm writing a rudimentary 2D engine and am wondering what the proper or generally accepted order is for handling graphics, user input, sounds, and then other systems like physics. If you have written ...
Nakaan's user avatar
  • 103