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
21 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
1answer
142 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
4answers
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
2answers
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.
1
vote
1answer
308 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
93 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
86 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 ...
0
votes
1answer
27 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
40 views

Best practice for play location of projectile sound effects?

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 ...
-1
votes
1answer
51 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
1answer
28 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
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
1answer
70 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 ...
2
votes
2answers
252 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
75 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
1answer
18 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
1answer
428 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 ...
1
vote
2answers
423 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
0answers
20 views

Change AudioClipLoadType at runtime - Unity3D

Can I change AudioClipLoadType of audio clips at runtime? Runtime in the sense while running in a device. I was able to adjust the import settings, in the editor, by an Editor script that overrides ...
11
votes
3answers
19k 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
0answers
17 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
0answers
23 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
1answer
34 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
0answers
7 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 ...
0
votes
0answers
19 views

How I randomise a list of audio clips in Unity and remove it from the list once the clip is finished?

I have 4 audio clips. When I play a press a certain button in Unity, the data is sent to MAX/MSP and the audio is played. I created a list a signals (As shown below in the code). What I want is that, ...
7
votes
1answer
22k views

Play vs. PlayOneShot

For Unity AudioSource objects, what is the difference between the Play and PlayOneShot ...
1
vote
0answers
26 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 ...
3
votes
2answers
37k 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
1answer
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: ...
0
votes
0answers
32 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
29 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
17 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
33 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
1answer
66 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
42 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
27 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 ...
1
vote
1answer
48 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
0answers
26 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
15 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
155 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
112 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 ...
5
votes
1answer
7k views

How can I do something after an audio has finished

How can I enable the SetActive() property of a game object after the audio has finished?
0
votes
0answers
19 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
45 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
2answers
58 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
1answer
7k views

Issues loading in AudioSource at runtime using WWW class

I am having an issue with loading in an OGG audio file to my project. Basically I want to set my game up so that players can drop audio files into a folder called Playlist in the game directory then ...
0
votes
2answers
54 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
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?

1
2 3 4 5