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
0answers
6 views
0
votes
1answer
41 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] [...
0
votes
2answers
48 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
0answers
45 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 ...
0
votes
1answer
20 views

donwload audio and save in cache

I am developing a game in Unity3d 2019, the instructions of the game must be translated into several languages. Right now, they are part of the compilation, but this makes the compilation very large. ...
0
votes
1answer
53 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
21 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): ...
0
votes
1answer
100 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
1answer
43 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 ...
0
votes
1answer
41 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
0answers
10 views

Stop audio in all scenes using a slider in the main menu

I am using different sounds in different scenes, but problem is that I can't stop all sounds using slider in the menu. It stops only the menu sounds, or sounds for the current scene. When my game ...
0
votes
0answers
62 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 ...
0
votes
0answers
68 views

Is it more efficient detect when audio clip ends with AudioSource.isPlaying or with AudioClip.length?

In Unity, I want to trigger an event when an audio clip finishes playing. Would it be more CPU efficient to keep checking if the audio clip is playing with ...
0
votes
1answer
162 views

Unity AudioSource.PlayClipAtPoint - controlling attenuation

New developer here, looking to do some raycasting and controlling audio positioning in 3D space based on the raycasts interactions with other objects. I've got the raycast 'casting' and able to report ...
0
votes
1answer
82 views

Where's the line between homage and copyright infringement?

My current WIP game contains a music note collectible mechanic which allows players to play short tunes if collected in the right order (usually very obvious by the layout of the collectibles). So far,...
0
votes
1answer
115 views

Godot - How to set the AudioStreamPlayer to switch between tracks

Conditional Music Playback What's important here is that I know how to switch the track that's being played back to another if some condition is met in the scene. If possible I also want to know ...
0
votes
0answers
26 views

Audio architecture in Unity: a time vs space paradox

Assuming we have a well imported audio clips setup. For audio clips that are quite similar and just vary by some slight differences on the shape, would you rather have them as separate files (Space: ...
0
votes
1answer
54 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 ...
1
vote
4answers
175 views

How to improve load times of audio files without loosing too much quality for HTML5 game?

I'm creating an HTML5 game. We have high fidelity composed music, in the format of wavs and mp3s— some ...
0
votes
1answer
131 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
349 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
57 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 ...
2
votes
2answers
13k views

HTML5 games: play() failed because the user didn't interact with the document first

I'm creating an HTML5 game using MelonJS game engine. Before I load the game, I have a simple pre-login page with a Splash and background music. This page has no need to load the game engine or game ...
1
vote
0answers
58 views

OpenAL listener position for isometric camera

I have an isometric camera for an RTS that looks like this: Basically, I don't know how to set the listener's position in OpenAL because I represent the camera's position with only two coordinates. ...
0
votes
2answers
30 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
518 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
253 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
270 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
140 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
104 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
413 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
283 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
210 views

How can I play audio instantly in Java?

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

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

In Java, we can play audio like this: ...
1
vote
2answers
297 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
357 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
560 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
428 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
727 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
83 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
1k 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
30 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
243 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
109 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
971 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
137 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
48 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
802 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
108 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
63 views

Why does AudioSource not initializes itself?

Why does AudioSource not initializes itself? Here is my code: ...