Questions tagged [sound]

Audio (heard) output of a game.

Filter by
Sorted by
Tagged with
2
votes
1answer
117 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 ...
2
votes
2answers
601 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 ...
2
votes
1answer
317 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 ...
5
votes
1answer
142 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 ...
1
vote
1answer
329 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° (...
2
votes
1answer
838 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 ...
1
vote
1answer
89 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 ...
1
vote
0answers
471 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 ...
2
votes
1answer
1k 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 ...
3
votes
2answers
430 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....
1
vote
0answers
604 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 ...
0
votes
0answers
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 ...
2
votes
1answer
3k 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 ...
1
vote
1answer
512 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 ...
0
votes
1answer
246 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 ...
5
votes
1answer
352 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 ...
2
votes
4answers
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. ...
1
vote
1answer
223 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 ...
4
votes
0answers
182 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 ...
4
votes
3answers
523 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)...
0
votes
1answer
1k views

Sound plays several times upon collision

Upon collision, my sound effect plays several times. How can I fix this? ...
2
votes
1answer
587 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 ...
3
votes
2answers
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). ...
0
votes
3answers
127 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 ...
0
votes
0answers
215 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 ...
3
votes
3answers
390 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) ...
1
vote
1answer
2k 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? ...
4
votes
2answers
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....
4
votes
2answers
576 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, ...
2
votes
2answers
190 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 ...
2
votes
3answers
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 ...
1
vote
0answers
110 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 ...
10
votes
1answer
3k 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 ...
1
vote
0answers
371 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 <...
5
votes
2answers
535 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 (...
0
votes
2answers
90 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 ...
1
vote
1answer
196 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 ...
0
votes
1answer
69 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 ...
0
votes
1answer
117 views

XNA SoundEffect with offset

I've been trying to make a soundmanager recently which has several functions which fits my needs. But one thing I can't solve, is the offsetting the soundeffects. Is it possible to play a soundeffect ...
8
votes
1answer
337 views

DirectX error with older XP systems

I am a blind programmer, working on an audio game for the blind. I am using SlimDX, and it has been tested on dozens of systems from XP to Win 8.1. My code works on most systems just fine, but I am ...
2
votes
1answer
259 views

How can I apply an effect to a sound to simulate hearing it underwater?

I'm using XNA 4.0 and trying to reproduce an "underwater effect" for every sound played. How can I apply an effect to a sound, and what effect should I use to make it sound like as if the player is ...
8
votes
2answers
1k views

What is the standard way to synchronize sound effects with sprite animations?

Let's take a situation where you have an RPG with spells and each spell animations have a different number of frames and they have very different requirements for sound effects. Let's assume that each ...
8
votes
1answer
315 views

How should I attenuate sound in a 2D game where you can zoom in and out?

In my 2D game, I have some ambient sounds like the noise of a waterfall or the humming of a generator. However, it is not practical to play these sound all the time at full volume as in a large level ...
3
votes
1answer
2k views

What's the difference between Pygame's Sound and Music classes?

What are the key differences between the Sound and Music classes in Pygame? What are the limitations of each? In what situation would one use one or the other? Is there a benefit to using them in ...
0
votes
1answer
2k views

Unity Sound effect playing too many times

In the class PlayerControl I have this if (Input.GetKey("space")) { soundManager.PlayBleep(); sword.SetActive(true); } In my ...
0
votes
1answer
3k views

Sound Manager class in Unity

Starting with Unity having had experience of XNA im not sure if the way i want to solve my problem is the correct way. So id like the opinion of more experienced people. I am doing a 2.5D game and ...
1
vote
1answer
7k views

Is it possible to use ALSA or OSS on Windows? [closed]

Has nobody written a wrapper over DirectSound or something yet?
2
votes
2answers
418 views

Should I create generic bitmap/sound/et cetera wrappers for Allegro?

Basically, I have been writing a game in C++ using Allegro. I mostly just use the library to draw bitmaps, draw text, and play audio. My main concern as the game continues to grow code-wise, is that ...
0
votes
1answer
1k views

XNA - how to prevent a sound from looping

So in XNA I have this code: Variables: SoundEffect optionSelected; In the LoadContent() method: ...
1
vote
1answer
1k views

How can I avoid false positives with “blow” input?

I’m working on a game which uses blow functionality to move an object in the game screen. This screen also has background music in it. The problem is that the microphone is detecting the BGM as blow ...