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
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
9 views

Unity AudioMixer sets AudioSources to 0 regardless of decibel value

My code for the decibel and volume/linear conversion is good already. I just can't figure out why my AudioMixer keeps on setting my AudioSources to 0. I've double checked to see if my decibel value on ...
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 ...
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 ...
1
vote
1answer
59 views

How to properly manage game music and sounds?

I'm developing a WinForms customized version of Pac-Man for a Software Engineering project and I reached the point where I have to implement music and sound effects. I used the MVC architectural ...
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 ...
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 ...
1
vote
1answer
44 views

Why does the volume not decrease when I move away from the AudioSource?

I created a simple scene with an audio source and a player that can move. The main camera is a child object of the player. I set the audio source volume rolloff to "logarithmic rolloff". As far as I ...
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 ...
1
vote
1answer
68 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, ...
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 ...
1
vote
1answer
65 views

Managing audio in a RTS - when do I play sounds?

Building an RTS I have several hundred units on screen at one time. Whenever a Unit attacks/gathers something, I want to play a sound (if camera is close enough). My question is, how do most RTS ...
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 ...
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 ...
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
2answers
35 views

Unity3D playing sound when Player collides with an object with a specific tag

I using Unity 2019.2.14f1 to create a simple 3D game. In that game, I want to play a sound anytime my Player collides with a gameObject with a specific tag. The MainCamera has an Audio Listener and ...
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
2answers
51 views

Can I sample audio sources from others without asking?

As the title says, would it be considered legal if I take a part of an audio source (any media like music, dialog, video, etc.) to use in a project, whether it is for commercial or non-commercial ...
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
1answer
54 views

Public domain piece found on You Tube but recorded by someone else

I want to use a public domain piece found on YouTube but it was recorded in midi form by someone else. I only want sections of it, not the whole thing. Do I need permission?
0
votes
1answer
46 views

PlayClipAtPoint() playing multiple times on enemy death

I am having problems with PLayClipAtPoint(). I want to play a given sound as soon as a gameObject is destroyed. Here is my code (the concerned parts): ...
0
votes
1answer
104 views

How to change music from room to room?

In Unity 2019.3.0a2 I have a labyrinth with multiple rooms. I want the music to change when I get from one room into another. How can I do it so that music from room 1 is only hearable in room 1, and ...
0
votes
1answer
68 views

How can I create a reverb zone depending on audio source location instead of the listener's position?

Is there a way to make a reverb zone act on an audio source not on the audio listener? Or in other words: Is there a way to apply an audio filter gradually depending on a position in space? Let's say ...
-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 ...
1
vote
0answers
252 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 ...
0
votes
0answers
155 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
311 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
1answer
126 views

Where's the line between homage and copyright infringement?

My current WIP game contains a music note collectible mechanic which allows players to play short tunes if collected in the right order (usually very obvious by the layout of the collectibles). So far,...
1
vote
1answer
226 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
1answer
58 views

Is there a word that describes when too much audio is being play simultaneously?

In Unity, before I managed sounds properly, if too many accumulated at the same it would become this loud drowned out mega sound (like the speakers got blown out). With proper audio management this is ...
1
vote
4answers
375 views

How to improve load times of audio files without loosing too much quality for HTML5 game?

I'm creating an HTML5 game. We have high fidelity composed music, in the format of wavs and mp3s— some ...
0
votes
1answer
322 views

Standard decibel range for sound effects/music?

Is there a standard for a decibel range of sound effects and music in games? I've been getting sound effects from various sources and some are much louder than others so I've had to adjust them with ...
0
votes
1answer
431 views

Is this bad design to have a static class which plays sound effects?

I am trying to make a audio manager. I want this audio manager to setup itself and be accessible from everywhere. So I made a static class that creates the audio sources when you need them. Is this ...
0
votes
1answer
74 views

Unity - Duck volume of audio source inside a boxed area

I'm trying to lower the volume of an outside ambient wind sound while the player is inside a building or room. Is there any way in Unity to do this without scripting? Or would I have to script this to ...
2
votes
2answers
24k 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 ...
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. ...
0
votes
2answers
33 views

I'm not hearing any sound even though its picked up by audioSource?

I have two sound clips that I am feeding to an audioSource via script, it seems to be working as I can see the audio clips populating the audioSource component. But the problem is that I dont hear ...
0
votes
1answer
896 views

How do I find the name of the current audio clip being played?

I have a title scene and a credits scene that use the same music. When I start my game the title scene music plays, and I have my game set up so the audio manager is not destroyed on load. When I ...
0
votes
1answer
379 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 ...
0
votes
1answer
329 views

Unity WebGL audio not looping when started with playdelayed()

I have an audioSource in which loop is set to true. I am starting it playing by calling playdelayed() In the editor its plays fine. In a webgl build it does not loop. It just plays once. Also in ...
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
1answer
144 views

Why some audio files are not working in Unity?

I am making a 2D game in which I wanted to attach audio file to a button. I was able to do this successfully. But later I felt like changing that sound. So I simply replaced it with another audio file....
3
votes
1answer
493 views

How to add the sound effect of a ball rolling, based on his velocity?

I have a ball which roll (like all ball does :) ) ... My ball can roll on different type of surfaces (2 or 3) and at different velocity. I don't know how to approach to reproduce in my game the ...

1
2 3 4 5