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
1
vote
0answers
82 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 ...
1
vote
0answers
238 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. ...
1
vote
0answers
94 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 ...
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 ...
1
vote
0answers
10 views

Why can't I duck reverb in the mix bus? [duplicate]

i'm surprised there is so little documentation on this issue. But i'm trying to duck the audio on all the mix buses in Unity so that you can clearly hear the VO of the game. Now it works great except ...
1
vote
0answers
149 views

Unity 5.3.4: Controlling multiple audio sources at once?

Is there a way to control the max distance of a group of audio sources at once? I want to implement all my sounds, then be able to play with some of the audiosource settings of all of them..
1
vote
0answers
114 views

Avoiding audio transcoding in Unity?

I'm working on a project where I only have access to MP3s versions of audio tracks I'd like to use. Unity is trying to be helpful and recompressing everything as Vorbis, which is not ideal due to ...
1
vote
0answers
1k views

Play streaming sound in OpenTK?

What's the simplest way to make a sound stream from disk and play in OpenTK?
1
vote
1answer
335 views

IrrKlang with Ogre

I'm trying to set up sound in my Ogre3D project. I have installed irrKlang 1.4.0 and added it's include and lib directories to my projects VC++ Include and Library directories, but I'm still getting a ...
1
vote
0answers
140 views

How should I adjust starting sample position of audio track to match next buffer fill?

I've written my own audio mixer. For Linux/Windows, my game uses SDL. On a small handful of Linux machines (including my laptop), SDL has a bug where it allocates a ridiculously large (about 120 ...
0
votes
2answers
114 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
2answers
48 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 ...
0
votes
1answer
228 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
3answers
84 views

What is the term for collectibles which enhance storytelling (i.e. audio logs, bestiary entries, etc.)?

For example, Borderlands uses ECHO logs, there are audio entries in BioShock, RPGs often have "books" that you can collect pages to read a mini bonus story. Is there a term more specific than "...
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
571 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
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. ...
0
votes
3answers
7k views

Play two different audio sources depended on code behind

How can I play two different audio clips in Unity depended on the code behind? Into my object I've added two audio sources namely 'Player GunShot' and 'outOfAmmo'. Into the same object I've also ...
0
votes
1answer
20 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 ...
0
votes
1answer
37 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
576 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
2answers
39 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
340 views

How can I play audio instantly in Java?

I know JavaSound API like this: ...
0
votes
1answer
108 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: ...
0
votes
3answers
655 views

Trying to use yield to wait for a few seconds to avoid the sounds from Interfering with each other

Ok so when my player hits a wall (Enemy tag). My player is destroyed after a certain amount of time. During this time, I disabled the mesh renderer on impact so it "appears" as if the player is ...
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
1answer
311 views

Can I include PCM audio data in a commercial application?

For certain reasons, I need raw audio data in my application. I would convert certain sounds to a PCM format (at development time), and store & load these PCM files in my game. PCM stands for ...
0
votes
1answer
592 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
1answer
24 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 ...
0
votes
1answer
424 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
2answers
56 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
75 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 ...
0
votes
1answer
76 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 ...
0
votes
1answer
763 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
102 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 ...
0
votes
1answer
2k 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
450 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 ...
0
votes
2answers
772 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 ...
0
votes
1answer
141 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 ...
0
votes
2answers
9k 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. ...
0
votes
1answer
126 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 ...
0
votes
2answers
78 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
2k views

How to save slider button positon on saved value.?

I am new to game dev. I have below code and it`s work good. I can change volume using this code and with AudioSource slider script. I also saving this volume state using playerprefs from 0-1. My ...
0
votes
1answer
130 views

Slaving OpenSceneGraph to an external time base?

I'm working on an OpenSceneGraph animation, and I want events in the animation to be synchronized to a time reference provided by my audio player (BASS or FMod). Yes, this is a demo :) . Which time ...
0
votes
1answer
2k views

How do I make one ui slider control all of the game audio?

I use the ui slider to control how loud is the game, what I want to know is how to make one ui slider control all of the game audio?
0
votes
1answer
257 views

Unity 5 - Error with code to make pitch changes based on distance

I really need help. It's 2:00 AM here and my brain is half dead so I can't, for the life of me, find out what's wrong with this code anymore. It's supposed to find the distance between the game ...
0
votes
1answer
152 views

XNA SoundEffect won't stop playing

For my HND I've got to re-create Frogger, and everything was going swell until I tried adding some collision detection and sound. Whenever my player intersects a vehicle, the sound file just starts ...
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
0answers
19 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 ...
0
votes
1answer
42 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 ...