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
109 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
330 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
138 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
1answer
106 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
78 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
391 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
6k 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
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
280 views

How can I play audio instantly in Java?

I know JavaSound API like this: ...
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: ...
0
votes
3answers
557 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
309 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
9 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
2answers
51 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
59 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
351 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
438 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
1answer
75 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
941 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
338 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
665 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
119 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
6k 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
108 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
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
1k 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
121 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
246 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
142 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
1answer
2k views

Where can I find audio instrument samples? [duplicate]

Possible Duplicate: Where can I find free sounds for my game? I need some sample audio (for my case, i need do, re, mi, fa, sol, la, si, do, preferably piano). Where is the best source for ...
0
votes
0answers
23 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
25 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
25 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
0answers
26 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 ...
0
votes
1answer
22 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
18 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
39 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
0answers
22 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
10 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 ...
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 ...
0
votes
0answers
18 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
42 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 ...
0
votes
0answers
19 views

Preview Clip of AudioSource, with audioSource settings in editor

I have a custom editor script wich permit me to add some behavior to a unity components: Here you see the extra extensions with the "test" label. I would like to add in that audio source editor, the ...
0
votes
2answers
36 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 ...