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
0 answers
25 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). ...
user avatar
0 votes
0 answers
44 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....
user avatar
  • 15
0 votes
1 answer
112 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 ...
user avatar
  • 115
0 votes
1 answer
40 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 1
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 ...
user avatar
  • 178
0 votes
2 answers
58 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 ...
user avatar
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 ...
user avatar
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?
user avatar
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 ...
user avatar
1 vote
0 answers
65 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-...
user avatar
5 votes
1 answer
737 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 ...
user avatar
  • 18k
0 votes
1 answer
968 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 ...
user avatar
  • 448
0 votes
1 answer
45 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 ...
user avatar
2 votes
1 answer
57 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, ...
user avatar
  • 23
0 votes
0 answers
388 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. ...
user avatar
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 ...
user avatar
1 vote
1 answer
114 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 ...
user avatar
0 votes
0 answers
272 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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 105
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 167
0 votes
1 answer
35 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 ...
user avatar
1 vote
0 answers
35 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 ...
user avatar
  • 111
-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 ...
user avatar
1 vote
1 answer
79 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 ...
user avatar
2 votes
2 answers
117 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 ...
user avatar
  • 172
0 votes
1 answer
42 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 ...
user avatar
1 vote
1 answer
97 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 ...
user avatar
0 votes
1 answer
49 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 ...
user avatar
0 votes
1 answer
633 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, ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
  • 19
0 votes
0 answers
31 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 ...
user avatar
  • 245
1 vote
1 answer
426 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, ...
user avatar
  • 249
1 vote
1 answer
204 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 ...
user avatar
  • 340
0 votes
0 answers
60 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 ...
user avatar
2 votes
0 answers
25 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 ...
user avatar
0 votes
2 answers
279 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 ...
user avatar
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] [...
user avatar
  • 245
0 votes
2 answers
57 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 ...
user avatar
0 votes
0 answers
48 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 ...
user avatar
0 votes
1 answer
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?
user avatar
  • 1
0 votes
1 answer
152 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): ...
user avatar
  • 176
0 votes
1 answer
331 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 ...
user avatar
0 votes
1 answer
404 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 ...
user avatar
0 votes
1 answer
81 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 ...
user avatar
1 vote
0 answers
703 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 ...
user avatar
  • 277

1
2 3 4 5