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
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
1k 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
426 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
365 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
145 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
150 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
525 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
vote
0answers
307 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 ...
0
votes
1answer
292 views

How can I play audio instantly in Java?

I know JavaSound API like this: ...
1
vote
0answers
375 views

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

In Java, we can play audio like this: ...
1
vote
2answers
392 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 ...
5
votes
1answer
436 views

Precision timing in Unity3d

I am trying to implement a method which should be called each 10ms with a precision not less than 0.1ms (better 0.05ms). This method is very complex and it is generating sound samples which are placed ...
0
votes
2answers
694 views

AudioClip is empty saving recording from Microphone

EDIT: I updated the code to what I have currently. I'm not sure why but, the editor and my platform complained when I put the WWW in a co-routine, it seems to load the audio clips to the object but I ...
1
vote
1answer
488 views

SDL Mixer Strange Error Message

I have a Visual Studio C++ project. I've just started out with SDL, and I've already rendered images, text, and now I'm trying to play audio. This will be done with the SDL_Mixer extension library. ...
-2
votes
2answers
1k views

Play a sound when moving cursor on a button?

How to play a sound when moving a cursor on a button ?
2
votes
0answers
87 views

Where to purchase multitrack music loops? [closed]

I've seen other questions about where to find royalty-free music available for purchase. But most of these tend to provide a single audio file with every instrument track already blended and mixed ...
0
votes
2answers
2k views

Unity3d - AudioSource is not playing if gameObject is removed after play was started

I am not able to play my audio source if I deactivate the panel where the AudioSource is attached to AFTER it. ...
1
vote
0answers
39 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 ...
2
votes
1answer
457 views

What is the default audio bitrate in Unreal 4?

Maybe I'm just googling the wrong thing but what's Unreal's default audio sample rate? 44.1kHz or 48kHz? Silly simple question but thanks for helping out!
1
vote
1answer
117 views

What audio method works across all web browsers and mobile for HTML5/JavaScript?

I have looked at a number of ways to trigger audio in HTML5/JavaScript, but each time I find something that might be workable, I find web browsers and mobile devices it doesn't work on at all. What ...
1
vote
1answer
2k views

How do I setup positional audio in Unity?

I'm trying to make an audio game where by players can tell the position of an object listening to whether the right or left speaker is playing the audio. The idea is: If the object is on the left ...
1
vote
0answers
188 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. ...
3
votes
0answers
49 views

How to calculate the sound volume for the left ear and right ear based on the object position & velocity, player position & forward vector? (3D sound) [closed]

Please assume: Minimum distance for 3D volume = 1.0; Maximum distance for 3D volume = 100.0; This is the declaration of the function: An object can be a ball moving closer to the player. ...
1
vote
1answer
1k views

Playing a Song in MonoGame

I'm trying to play a song in a MonoGame project, but it always gives me a weird error. Here is the (Very simple) code: ...
2
votes
1answer
159 views

What direction does directional audio come from for a 2D view?

In a 3D game, it makes sense that stereo balance is based on the angle between your camera direction and the directionto the audio source. Is 2D audio just "fudge the left-right balance until it ...
1
vote
1answer
65 views

Why does AudioSource not initializes itself?

Why does AudioSource not initializes itself? Here is my code: ...
2
votes
0answers
107 views

Audio Engines , do they work on CPU, GPU or DSP [closed]

I have been reading design specifications of the audio engines. What I am trying to achieve requires performance and I want to parallelize. Only and only while reading openAL specification it was ...
1
vote
1answer
35 views

Dialogue Audio: Forming sentences using different recordings

I am working on a game where the exact dialogue to be spoken out depends on context. The most common use case is for scoring - The game keeps player score and I want the game to tell the player her ...
1
vote
1answer
2k views

Wait for AudioClip finish before destroy Object

If I Play the gun sound on my "bullet" object, how can I prevent the end of Audio sound if the bullet hit something so it destroy. To clarify: Bullet prefab -> Audio Source -> Audio Clip = ...
2
votes
2answers
816 views

How to get SDL2 to play 32bit WAV files

I have WAV files of this format: ...
1
vote
1answer
470 views

Two headphones for two players

We're looking to create a split screen game using Unity that is highly reliant on audio. We would need each player to have their own headphones and use positional audio to navigate through the map. ...
2
votes
1answer
73 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
131 views

Cocosdenshion and Android not working

I'm trying to play sounds and music with cocos2d. When I run on iPhone and .caf files the audio is perfect, but on Android it is not playing the background music and is only playing 2 sounds of 10 ...
10
votes
1answer
2k views

Determining how loud an AudioClip is

I have some code that uses GetSpectrumData from an AudioSource playing a song to create a level layout for the player to play. I want to add a functionality where ...
1
vote
2answers
661 views

Unity: How to keep the music muted on reloading the scene?

I am giving the user a UI button to mute and unmute the ingame sounds but the problem is when I mute the sounds and then when the game ends and the game scene reloads the sounds comes back up which is ...
0
votes
0answers
40 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 ...
-2
votes
1answer
2k views

Audio Source object reference not set to instance of an object in Unity.

I have the following script: ...
0
votes
2answers
7k views

Unity - AudioClip lags when played

My AudioClip is lagging when I play it in Unity3d. The AudioClip is supposed to play when you left-click inside the game window. Steps I've tried for fixing it: Uncompressing the .wav sound file. ...
1
vote
2answers
773 views

In a HTML/JavaScript game, what audio should I use for Internet Explorer?

I'm planning some HTML5/Javascript games. They will be casual games for the most part, but would still benefit from music and sound effects. I would really like to use the ...
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 ...
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
1answer
109 views

AudioSource not working. Empty Exception

I'm trying to load and play an wav file that exists in my Application.dataPath but when the game gets to the line ...
1
vote
1answer
35 views

What are the best practices when colaborating with an audio engineer?

I am talking with various audio engineers and each has pretty much their own rates and way of colaborating. Since I am pretty foreign to their world and work process, I want to have a healthy ...
1
vote
0answers
30 views

Vehicle audio recording [closed]

So I red an article on "The sound effect" website about recording the audio of a vehicle. I'm planning on making a race game in the future and I'm having a little concern about the sound of the ...
0
votes
2answers
75 views

Unity2D: Pressing my mute button twice in order for it to set music back to 1

So far my mute button works, its just that I have to press my button twice (when game is restarted) in order for it to put my volume back to 1. Does anyone knows the problem. Anyway this is my script: ...
0
votes
1answer
104 views

Unity2D: Muting audio Clip problems

I'm trying to create a mute button (that goes both way, e.g mute and un-mute) using button onclick So far I'm not having the greatest luck. I made this: ...
2
votes
1answer
220 views

Configurable Dice Cup Sound Effect for HTML5 Game

I am developing an HTML5/javascript based game, where the players will have to roll virtual dice. I am working on a 3d model of a dice Cup and plan on having the users shake it and turn it upside down ...
1
vote
2answers
593 views

Unity 5 - Audio Source - 3D rolloff without stereo pan effects

Somebody know if it is possible to use 3D rolloff of of an Audio Source without having stereo effects (You get a stereo pan effect depending on the position of your audio listener). I know that I can ...
1
vote
1answer
2k views

Unity Wwise. No audio in my game build

I'm building a game in Unity using Wwise as the audio engine. I'm on a Mac and whenever I build the game, there is no audio. Apparently this is because the sound banks are not in the correct folder. ...
2
votes
1answer
771 views

How do engine sounds for vehicles work?

How does the engine sound for a car (or whatever has an engine) work? When you increase the throttle the engine sound changes but it's never quite the same. When programming such a system what is the ...