I've got this storage problem, I have 6 mono .wav sound files in a simple scene, walking swinging a weapon and impact sounds, but wen playing the scene and moving the character around the sounds slowly play slower and slower like someone talking in slow-motion, everything else in the scene move ok no slowdown in the graphics.
My audio setting are
Volume - 1
Roll of scale - 1
Speed of sound - 347
Doppler factor - 1
Default speaker mode - mono
DSP Buffer size - default
Anyone know what can be causing this? Is there a command to reset the audio file before playing it?
pls post your script, we cant help you without it...
I fixed it by creating a soundController.js script, putting it on the camera that follows the model, then putting all my sound files on there and then doing a
var SoundCntrl : soundController; and dragging the camera into it in the inspector window.
soundCntrl.RunSound(); when I need the sounds and it's working fine now.
but next time pls just post your code
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
4 People are following this question.
how do i crossfade sound loops in unity?
What is the script code on how to trigger a song for the player to Listen to?
Play Audio-Clip On Ray Casting Collision
How can I play a sound once another has finished?