Questions tagged [audio]
The audio component of a game, representing what the player will hear. Comprised of dialogue, music, and sound effects.
265
questions
1
vote
0
answers
15
views
How to use Steam Audio in Unity via scripting?
Has anyone worked with Steam Audio? I'm trying to rewrite my game from .NET to Unity and I want to use sound surround effects there using acoustic ray tracing, where everything should be calculated in ...
0
votes
1
answer
32
views
How to combine multiple audio volume setting into one
I have a audio system where I want to be able to control the playback volume of sound effects, music, dialouge etc.
Currently my set up has three Volume settings [0-...
1
vote
0
answers
10
views
Audio stutter in macOS when switching from SDL app to any other app
I'm using SDL to write a program that plays arcade game-style music (i.e. chip tune music generated by an emulator core) and I have a timing loop in my code that restricts the application to 30fps. ...
0
votes
0
answers
30
views
Replacing verbal cues with some other method of relaying info to the player?
I really like an obscure game with an odd mechanic in it. I want to make a clone of it so I can keep playing it, even if its graphics and audio are inferior to the original!
This game has a highly ...
0
votes
0
answers
79
views
How to play audio in sequence in the reverse mode?
I’ve added audio to sequence and it works fine, but when I play it in the reverse mode, audio doesn’t play. I don’t need it to play in reverse too, to play it the opposite order - audio 2 and then ...
0
votes
0
answers
34
views
How is sound and microphone sampling supposed to work?
I've started using miniaudio sound library written in C, which is an impressive single-header roughly 100k lines of code library for playing audio and reading microphone in a cross_platform way. I'm ...
0
votes
0
answers
59
views
Unity Audio plays with 5-10 second delay
I have wanted to make something like a rhythm game for Android in Unity, and for that I needed to write an audio manager to play my songs and sound effects in-game. I have followed Brackeys' tutorial ...
0
votes
0
answers
43
views
custom metronome is not consistent
In Unity 2022.3.12f1, I made a metronome. Here is a minimal working example:
...
2
votes
2
answers
73
views
Audio Cue for Accuracy game
I'm really not sure if this is the appropriate community to ask in. I want to use some sort of audio cue that provides feedback for a player's accuracy in a task. They perform some action in real time ...
1
vote
0
answers
39
views
How to equalize volumes of lines by different voice actors using different setups?
I have 500 voice lines as .wav files, coming from 20 different voice actors who spoke each in their home studios with different voice volume. In the game, the different volume of each line comes ...
1
vote
1
answer
123
views
Rhythm game, Sync music start with the start of the level in fixedUpdate
I'm working on a rhythm based android game similar to Guitar Hero.
I have a kinematic rigidbody moving downwards with tapobjects (colliders) inside which need to be pressed when moved above the button....
0
votes
1
answer
40
views
How to meet quality standard for audio files to upload to the Unity Store?
I have some 8-bit classical music that I want to release on the Unity store, for the most part the Unity Store Submission Guidelines make sense, but for this one part that goes.
2.7.b Audio files are ...
0
votes
0
answers
27
views
In LibGdx, how to add another music format?
I would like to add multiple music formats to the LibGdx library, like .vgm, .mod, .s3m, .xm and so on. I already have the Java code to do so, but it's hard to integrate it with LibGdx code.
I know ...
0
votes
1
answer
133
views
Unity Mirror Networking Audio Behaves Differently on Host and WebGL Client
I am creating a system in Unity using Mirror Networking which will only require one host/server and one client. It is a WebGL build so the client will connect on a browser. I want to send commands ...
0
votes
1
answer
110
views
How to Code Rhythm Sync
I'm trying to make an object's movement automatically sync to the music in Unity. I want a way to get the "key points" (when there is a loud beat) and make the object dash at those moments.
...
1
vote
1
answer
113
views
Is there a PBR-like material system for audio?
With visual/rendering materials, a very popular system for this is PBR. Materials made using PBR may define properties like albedo color, normal maps, emission, roughness, metallic, specular, etc. ...
0
votes
0
answers
96
views
How to mute system audio from microphone in Unity?
How to mute system audio from microphone in Unity?
Or is there some way to have the microphone not capture audio from the game?
1
vote
1
answer
135
views
Audio won't pause in coroutine
I am making a system where I have one long audio clip made up of voice lines which I want to be able to play one after the other with a variable pause in between.
I press the space key to start the ...
0
votes
2
answers
173
views
Audio source with multiple sound files
I am limited in the number of audio sources I can add. Is it possible to use a single audio source and then rotate between a collection of audio files. This is for an avatar for VRChat so scripting is ...
0
votes
1
answer
47
views
Score count-up speed based on music
I'm trying to implement a score count-up that is synced with the tempo of some short music jingle, but I'm failing on calculating the math for it.
Let's say I have a total score of 2000 that I want to ...
2
votes
0
answers
2k
views
How do I speed up/slow down audio without changing the pitch, and vice versa?
Using Unity's own default AudioSource, there is a pitch slider. However, that pitch slider affects both the speed and the pitch.
Short of doing the speed up/slow ...
1
vote
2
answers
556
views
Best file format for short audio clips in a video game
I am writing a video game to teach kids how to read, and as part of that I have to play short audio clips that make basic sounds. For example, the /t/ sound (the first sound in "Tiger").
I ...
0
votes
0
answers
79
views
Analyzing audio in C++ / Unreal Engine 5 without plugins
This project is done in Unreal Engine 5. I would prefer doing this in C++ instead of Blueprints, but I'm open to any ideas.
I am trying to take an audio file and create the data needed to make an ...
0
votes
2
answers
488
views
3D audio performance cost in Unity
I can't find any information about Unity's performance difference between 3D and 2D audio.
If I'm targeting low-performance mobile devices, should I avoid using 3D audio?
How expensive (performance ...
0
votes
1
answer
942
views
How do you upload an AudioClip to a server in Unity?
My current approach is to take an AudioClip, turn it into a byte array, then put it into an UploadHandler, attached to a UnityWebRequest, to send a POST request to a server.
Right now, when I pass ...
0
votes
1
answer
62
views
Give the Volume of a Sound a Character is currently making
I'm looking to have a sound file drive the location of a bone or morph target, to create a basic form of lip syncing. Specifically, I'm looking for help getting the volume of the sound file as a float....
0
votes
0
answers
522
views
AudioSource.isPlaying is not working in Unity WebGL Build
I am passing a clip to play on the audio source. Next, I wait for the audio to finish to invoke the next action.
But the waiting loop never ends. Once the audio clip ends, the time I read from ...
1
vote
0
answers
421
views
Audio popping and cracking when looping sinusoid
I'm trying to play a "simple" generated looped sinusoidal wave with raylib and Go but, although it plays I also get audible cracks.
Checking some online examples, I see that a common problem ...
0
votes
0
answers
68
views
Reverse Fourier transform in Unity
I was wondering if unity has any methods to convert frequency domain to time domain.
2
votes
0
answers
61
views
Audio emission from a polygon instead of a point
I'm developing a 2D game in Godot. The engine doesn't matter in this case.
Given a polygon, convex or concave, and a listener (camera) location, what 2D position should an audio emitter be placed at ...
0
votes
0
answers
62
views
Godot 3.4 issue with AudioStream3D playing random sounds
I got this problem with an AudioStream3D, it's supposed to play randomly from a list of 3 possible sounds when the player fire a gun, but no sound is being played when the event happens.
What i'm ...
0
votes
0
answers
40
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).
...
0
votes
0
answers
1k
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....
0
votes
1
answer
1k
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 ...
0
votes
1
answer
985
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 ...
1
vote
0
answers
136
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 ...
1
vote
0
answers
53
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 ...
1
vote
2
answers
136
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 ...
1
vote
1
answer
178
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
28
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
7k
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 ...
1
vote
0
answers
823
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-...
6
votes
1
answer
3k
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
2k
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
1
answer
829
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
197
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, ...
1
vote
0
answers
905
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
2
answers
188
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
vote
1
answer
498
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 ...
0
votes
0
answers
731
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 ...