Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [audio]

The audio component of a game, representing what the player will hear. Comprised of dialogue, music, and sound effects.

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

Multiple AudioSources or one AudioSource with multiple AudioClips?

I have a character with a bunch of different attacks + sound effects in Unity. One way to architect this is to create a single AudioSource, and then set the AudioSource.clip to a specific sfx each ...
0 votes
1 answer
52 views

How can I create noises when character is running using this audio manager script?

So I used this tutorial: https://www.youtube.com/watch?v=tLyj02T51Oc, to create an AudioManager that can be easily called from other scripts, and can fade sound effects. One thing I do not know how to ...
2 votes
2 answers
119 views

Where can I find sources on how many people play with sound disabled/enabled?

This is probably more a problem with me being unable to find statistics which i am absolutely certain must exist in some form: How many people play with the sound off/on when playing browser games or ...
0 votes
1 answer
150 views

Cocosdenshion and Android not working

I'm trying to play sounds and music with cocos2d. When I run on iPhone and .caf files the audio is perfect, but on Android it is not playing the background music and is only playing 2 sounds of 10 ...
0 votes
0 answers
27 views

Need help looking into IndexOutOfRange Exception for my Audio Manager script

basically, its as the title says. I am trying to build a brick breaker game in Unity2D, and I have found myself unable to play the death sound effect (played whenever a brick breaks). ...
1 vote
1 answer
115 views

How to play a sound effect at a projectile's impact location?

I am encountering an issue where I have a bullet that is destroyed on impact which is cutting off my bullet impact sound effect due to the audio source being destroyed. I like the idea of the sounds ...
42 votes
6 answers
33k views

Maximum audio delay before the player notices?

Given some event in a game, what is the maximum delay to producing audio that the player will properly associate the audio with that event (and not perceive lag)?
2 votes
2 answers
265 views

UDK: Playing two audio tracks simultaneously

I have some environmental music playing in the background, but when I try to play another track (door opening sound effect) at the same time the background music stops playing. How can I play two ...
2 votes
1 answer
86 views

How to Capture Vive's USB-Audio Data from Playback Devices

I am developing a music visualizer software for Vive so I am trying to get FFT data from music that users listen to. However, I couldn't take any data from USB audio devices versus my soundcard. ...
0 votes
1 answer
30 views

UIButton fails to play sound

I'm doing this game where with cards you assign different beats to different channels. You drag and drop the beat to a channel and it gets added to the mixer. What I'm having trouble with is when i ...
0 votes
1 answer
766 views

Unity AudioSource.PlayClipAtPoint - controlling attenuation

New developer here, looking to do some raycasting and controlling audio positioning in 3D space based on the raycasts interactions with other objects. I've got the raycast 'casting' and able to report ...
2 votes
2 answers
626 views

UI Button OnClick not playing AudioClip on gameObject

Basically, I am loading an Audio Clip onto a game object's Audio Source in the Awake function when the game starts. When I click on the game object a UI comes up that basically has a Play button ...
0 votes
1 answer
56 views

Calculating stereo sound levels from 3d sound source?

When a sound is emitted in a (first person) game world at some source position relative to the player - based on its distance away we can calculate the factor to multiply the amplitude of the wave ...
0 votes
0 answers
51 views

Control sound volume in Java

I'm trying to control the volume of a file with keyinput. But all I get is a null error: Exception in thread "AWT-EventQueue-0" java.lang....
10 votes
1 answer
185 views

Why Can't I duck reverb on the mix bus in Unity?

i'm surprised there is so little documentation on this issue. But i'm trying to duck the audio on all the mix buses in Unity so that you can clearly hear the VO of the game. Now it works great except ...
1 vote
1 answer
480 views

Godot - How to set the AudioStreamPlayer to switch between tracks

Conditional Music Playback What's important here is that I know how to switch the track that's being played back to another if some condition is met in the scene. If possible I also want to know ...
0 votes
1 answer
116 views

How can I come up with unintelligible spoken speech like what can be heard in The Sims?

When I search for "Voice Samples" and "Unintelligible Voice Samples" I can only find vocals of singers or just background noise of people talking at the distance, like a crowded ...
1 vote
0 answers
30 views

Blending sword motion with sword swing sound in VR

At first, this may seem like an easy problem to solve. I also thought so. (This was a one tick task in my Trello board). But in VR the players' weapon (Sword) swings are unpredictable. The direction ...
0 votes
0 answers
20 views

Audio class values don't load on event begin play

I'm trying to have it so all of the audio values (that are stored in an array in a savegame) load on event begin play in my first-person character blueprint but it doesn't load. It already works as ...
1 vote
1 answer
152 views

How to get consecutive voice clips to sound natural

In the game I'm working on I have to play several short consecutive voice-clips to form a complete sentence. Example (each [] bracket is a different voice clip): [Bob here,] [we're at] [some town] [...
0 votes
1 answer
43 views

Audio Plays A Second Time When Going Back To Menu Unity

I am trying to have my background music keep playing in between scenes, but the music just plays another copy of itself instead of destroying itself to let only one copy play at a time. This is my ...
1 vote
1 answer
430 views

Unity Profiler - How do I correct Audio (WASAPI) Feeder issues?

I've got the following data after running the Unity Profiler: If I'm reading this correctly, the thing that's driving me down to ~1 FPS is the CPU Audio. I can't understand what's going on here, ...
1 vote
0 answers
26 views

How to implement a big audio source and a cluster of audio sources?

I have a 3D game. The sound engine supports: playing ambient music to the player (two channels always the same) playing static sounds from a single position in space playing mobile sounds from a ...
0 votes
2 answers
59 views

Having an Audio Atlas?

Problem I have 100 textures and I want to easily load them all without writing 100 lines of code loading them all. Solution Use a texture atlas. Use this to pack them. Use pixijs or something like ...
4 votes
3 answers
1k views

Optimal Compression for Speech

I'm designing a game that depends heavily on audio; I will have some 300+ speech files (most of them just a word or two long). This can very quickly escalate the size of my final game. What's the ...
0 votes
1 answer
981 views

How to play sound in WebGL build in Unity?

I have a project that works fine when I build for windows, but doesn't work when I switch platform to WebGL. The [SerializeField] AudioClip variables in the ...
0 votes
0 answers
21 views

CloneNode or Audio Pool?

I have a game, but I have to make a decision about audio. Should I preload an audio pool, or create cloneNode when played? Which is better in terms of best loading and better performance?
2 votes
2 answers
1k views

Is it a bad idea to have several audio sources on the same object in unity?

The title is actually self-explanatory. I would like to know if there are any drawbacks (performance-wise, good-practice wise, etc.) for having multiple audio sources on the same GameObject. My ...
0 votes
1 answer
659 views

Serialization/Deserialization Solutions for Loading & Playing Audio Files

I'm creating a music game in unity, and the first issue I encountered was that I had no way to load music into the game from a file. I tried using a WWW to load the mp3 files, but in my research I ...
1 vote
0 answers
67 views

How to play multiple sounds at once without reloading data?

I am making an HTML5 game, which involves one audio being played multiple times at once. I searched this issue up and found this: https://stackoverflow.com/questions/25654558/html5-js-play-same-sound-...
5 votes
1 answer
747 views

How to get current Microphone Frequency in Godot

Let us say I want to create a singing game similar to SingStar, and for this purpose I want to get the audio pitch the microphone is getting, in real time, or as close as possible. I know I can get ...
0 votes
1 answer
48 views

stop previous audio from playing when starting a new one

I created a dialogue system with audio it works perfectly fine unless you start skipping the voice lines so then it all becomes a mess with all of the voice lines overlapping is there a way to make it ...
2 votes
1 answer
60 views

Can I have an Area affect the audio input of a Listener rather than the audio output of a speaker

Simple 3D use case: I have a Listener attached to my 3P character and a speaker attached to the environment, providing general background ambience (no attenuation). When the character goes underwater, ...
0 votes
0 answers
396 views

Can not play a disabled audio source?

I have 5 cubes and all 5 cubes have an audiosource. When my player jumps into those cubes, the audiosource is playing just once. ...
0 votes
1 answer
636 views

How do I check if there is already an object in this scene with the same name upon reloading the scene?

If the title wasn't clear enough (I don't really know how to explain it), basically I have an Audio Manager that is DontDestroyOnLoad. I also have a pause menu, that takes me back to the main menu, ...
8 votes
4 answers
4k views

Using modified copyrighted music in non-commercial games

Background: I'm making a retro style game for both fun, and an unofficial contest. I have bought a song, song X. However, I then found notation for song X, and all the instruments. So basically, it'...
4 votes
2 answers
4k views

Recording equipment for game sounds [closed]

I was wondering if anybody knows about any good pieces of equipment fit for recording sound effects for games. If you can, also tell please me the price range for professional equipment.
0 votes
2 answers
123 views

Can I legally use movie sounds for game production?

Can I legally use short sounds from movies, like a door closing, in my game? Is there a way for others know from where the sounds came from originally? Does it matter if I apply audio editing to the ...
-1 votes
1 answer
53 views

List<T>.Contains(T) Method seems to return true for substrings? I don't want that

so I need to check a List of strings belonging to an AudioManager script, from another script, to see if it contains a specific string. Accessing that List wasn't hard. What's surprising me is that ...
0 votes
1 answer
2k views

Unity 5.1 audio issues (no sound in back channels)

I've trying to bring in surround sound audio into my project. I've set my computer up to run in 5.1 and when I play a 6 channel audio through windows media player (it's a test audio that does left ...
0 votes
1 answer
82 views

Audio Clip not working on Collision when destroying an object

So I made a game where you shoot a laser and if it hits the enemy it makes an explosion sound and destroys the enemy. The only thing is whenever I try to get the audio to play it doesn't which I ...
11 votes
3 answers
20k views

What is a fair price to pay for music licensing for a commercial game? [closed]

What is a fair price range for already existing (not custom-made) music if it's intended for a commercial game? The music I have in mind is relatively unknown (independent music) and I'm already in ...
0 votes
0 answers
276 views

How to set an exact pitch in Minecraft Java 1.16.1 Resource Pack

I'm trying to make a resource pack in Minecraft Java 1.16.1. The pack will replace all of the Minecraft sounds with LoZ BotW sounds. The first thing I did was put the BotW pickup sound in place of the ...
0 votes
0 answers
54 views

SDL Audio/Mixer cannot initialize with 2 channels only

From the documentation using SDL2 Mixer to init the soundcard with 2 channels. It will return 8 channels (7.1) and seems there is no way have just 2 channels. here the snippet that i used simple as ...
1 vote
1 answer
102 views

AudioSource.Play() outputs only noise from the sound clip

I'm trying to reproduce a sound clip on the AudioSource of a game object by using the .Play method. What i'm trying to do is a card game of sorts, but with each card being a different section of a ...
1 vote
0 answers
14 views

Long occluding geometries in Resonance Audio for Unity

I'm currently looking into using resonance audio (https://resonance-audio.github.io/resonance-audio/) for accurately modelling the audio for an environment that approximates to a long corridor with a ...
8 votes
1 answer
25k views

Play vs. PlayOneShot

For Unity AudioSource objects, what is the difference between the Play and PlayOneShot ...
1 vote
0 answers
47 views

Low Level Audio Engine Sample Rate Conversion

First off, there seems to be a sparse number of audio programming tutorials out there so if anyone knows of some good resources I would be very appreciative. Now on to the topic at hand! I am using ...
5 votes
2 answers
67k views

HTML5 games: play() failed because the user didn't interact with the document first

I'm creating an HTML5 game using MelonJS game engine. Before I load the game, I have a simple pre-login page with a Splash and background music. This page has no need to load the game engine or game ...
2 votes
1 answer
3k views

How to use Audio Profiles in Cocos2d Ver 3.3 AudioEngine

I have 2 audio files that I want to play at different times: background.wav a sneeze.wav. I believe that I have to convert both wav files into mp3, caf and ogg files. Then I do this: ...

1
2 3 4 5