Questions tagged [audio]

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

46 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
132 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 ...
3
votes
0answers
850 views

5.1 sound in Unity3d 3.5

I'm trying to implement 5.1 surround sound in my game. I've set Unity's AudioManager to a default of 5.1 surround and loaded in a 6 channel audio clip that should play a sound in each of the different ...
2
votes
0answers
21 views

Deleting OpenAL Effects

When calling alDeleteEffects to destroy an effect, is it necessary to first remove it from any auxiliary slots that it may be active in? I know first removing a ...
2
votes
1answer
71 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. ...
2
votes
2answers
248 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
1answer
3k views

Need Help with 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: ...
2
votes
0answers
302 views

Difference between multiple AudioUnits and one AudioGraph with a MultiChannelMixer

I'm porting my game to iOS using MonoTouch, and I'm having some trouble getting sound output to work. SystemSound/AVAudioPlayer ...
1
vote
0answers
31 views

How can I realistically simulate audio for multi-sensor processing?

I am performing audio simulations in Unreal Engine 4. Ideally, I need realistic audio propagations. So microphones at multiple locations will experience propagation delays related to their distance ...
1
vote
0answers
39 views

Where can I find sources on how many people play on silent etc.]

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 ...
1
vote
0answers
248 views

How to load an AudioClip at runtime without the WWW class?

I am currently pulling a .wav file from an API. I would like to play it at run-time. Currently I need to save the .wav file to ...
1
vote
1answer
225 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 ...
1
vote
0answers
88 views

OpenAL listener position for isometric camera

I have an isometric camera for an RTS that looks like this: Basically, I don't know how to set the listener's position in OpenAL because I represent the camera's position with only two coordinates. ...
1
vote
0answers
143 views

Unity - unable to play audio clips simultaneously from within a coroutine

I am using Unity 2017.3.1f1. I have created a co-routine for a car engine controller which would play a car start sound once, and while it is fading, it would start a looping sound that would ...
1
vote
0answers
297 views

How can I use spectrum data to calculate energy values of certain frequency bands?

I'm working on a rhythm game, and need to detect beats in a piece of music. After all the research and reading through old posts in unity forum/reddit etc., as far as I understood, I need to ...
1
vote
0answers
354 views

How can I implement audio stop/pause/resume in Java?

In Java, we can play audio like this: ...
1
vote
2answers
369 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 ...
1
vote
0answers
34 views

Adding more effects to a Unity3d mixer

I recently started exploring the wonderfull world of audio in unity. I noticed that you can add a bunch of effect modules to a mixer. Now I'm wondering if you can add your own custom effects( for ...
1
vote
0answers
179 views

Loading WAV and MP3 files with LWJGL 3?

Whenever I research audio in LWJGL 3, they always use STB which can only load Ogg files. All of my audio files are in either WAV or MP3 format, and it would be annoying to have to convert all of them. ...
1
vote
0answers
92 views

How to play a sound for a Game Jam Menu Template button in Unity

I'm using the "Game Jam Menu Template" plugin from the asset store in a project of mine and I'm having a bit of a problem with it. See, I'd like it so that a particular button in the menu plays a ...
1
vote
0answers
148 views

Unity 5.3.4: Controlling multiple audio sources at once?

Is there a way to control the max distance of a group of audio sources at once? I want to implement all my sounds, then be able to play with some of the audiosource settings of all of them..
1
vote
0answers
108 views

Avoiding audio transcoding in Unity?

I'm working on a project where I only have access to MP3s versions of audio tracks I'd like to use. Unity is trying to be helpful and recompressing everything as Vorbis, which is not ideal due to ...
1
vote
0answers
1k views

Play streaming sound in OpenTK?

What's the simplest way to make a sound stream from disk and play in OpenTK?
1
vote
0answers
138 views

How should I adjust starting sample position of audio track to match next buffer fill?

I've written my own audio mixer. For Linux/Windows, my game uses SDL. On a small handful of Linux machines (including my laptop), SDL has a bug where it allocates a ridiculously large (about 120 ...
0
votes
0answers
22 views

Record from microphone and playback audio in the next scene in Unity

I am making a simple interactive video in which I need to trigger the microphone to start recording automatically in the beginning of the scene and stop recording after 15 seconds. And then, I need ...
0
votes
0answers
23 views

How to pause audio playback when a breakpoint is hit or resume afterward?

When my code hits a breakpoint, audio that was previously started (via an AudioSource) continues to play while the threads are paused. I'm using a coroutine to ...
0
votes
1answer
25 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
0answers
26 views

Why do characters interrupting each other during conversations never sound right?

Is there a technical reason why the audio of one character interrupting another in a video game usually sounds wrong? I can't give a concrete example but what happens in general is that the ...
0
votes
1answer
22 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 ...
0
votes
1answer
17 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 ...
0
votes
1answer
33 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, ...
0
votes
0answers
22 views

Work With Sounds in Unity

I have a script in which I defined different functions for each button and assign them their appropriate functions. I defined if statements for them and now I want every button to play it's music when ...
0
votes
0answers
9 views

Microphone channel not detected in Unity

This is very specific to Unity. A few testers are reporting that their microphone output isn't being detected. The code below works for the vast majority of users, but certain microphones seem to be ...
0
votes
0answers
8 views

Ad callback issue

Hi I have a callback in my ads manager that says that when the scene loads, then automatically play the ad, mute the background audio and then once ad has finished or skipped then play background ...
0
votes
0answers
17 views

How to play runtime-generated LPCM audio from a third-party API in Unreal?

I've got an UE project, and I need to play audio coming from a third-party API. The Audio is in LPCM format, each frame is two bytes signed integer with little-endian byte order. How I can play audio ...
0
votes
0answers
42 views

Implementing beat detection algorithm on mobile

So, I've been looking for a way to detect beats on a streamed song on mobile(like listening on Spotify or Youtube etc.) I've found the most used methods are either using already known songs or using ...
0
votes
0answers
19 views

Preview Clip of AudioSource, with audioSource settings in editor

I have a custom editor script wich permit me to add some behavior to a unity components: Here you see the extra extensions with the "test" label. I would like to add in that audio source editor, the ...
0
votes
0answers
9 views
0
votes
1answer
74 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
0answers
47 views

How to make a CD with audio and data at the same time

I made a homebrew game and want to distribute it to my friends using CD's. The game uses CD Audio music and I already made a quick program to check if the disc is in the drive, but I don't know how to ...
0
votes
0answers
154 views

Is it more efficient detect when audio clip ends with AudioSource.isPlaying or with AudioClip.length?

In Unity, I want to trigger an event when an audio clip finishes playing. Would it be more CPU efficient to keep checking if the audio clip is playing with ...
0
votes
1answer
306 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 ...
0
votes
0answers
39 views

Best form of audio compression / packing

Currently in my game I have a large amount of sounds and am getting to the point where I need to find a way to reduce the overall size of the sounds to save space when I deploy. I was wondering if ...
0
votes
0answers
208 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 ...
0
votes
0answers
538 views

alBufferData() sets AL_INVALID_OPERATION when using buffer ID obtained from alSourceUnqueueBuffers()

I am trying to stream audio data from disk using OpenAL's buffer queueing mechanism. I load and enqueue 4 buffers, start the source playing, and check in a regular intervals to refresh the queue. ...
-1
votes
1answer
3k views

Unity Ui slider volume control

I have the ui slider to control my volume, I have my slider to control all the volume of the game. I have make it so when the main slider change value all the other slider change with it but when I ...
-1
votes
1answer
57 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 ...