Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Freaking-Pingo · Apr 08, 2013 at 07:10 PM · audioaudioclipwav

Sound creation using WAV. files

Hi there Uniteers. For a student project, we are attempting to utilize a new audio creation system instead of unity's FMOD. Though we are having trouble with certain .wav files.

  • For this we are using an Audioclip to "store" our sound file imported into unity, in which we later extract the raw PCM data from.

  • After the sound creation is done, we uses "OnAudioRead" to feed the output-buffer with our manipulated PCM data, which is then played back using FMOD.

Lets just presume, that the audio creation system is not the cause of error here:

All .wav files can be played through minimum once (1. iteration), but certain .wav files, when played a second time (2.iteration), the signal becomes full noise. When the loop continues (3. iteration) the signal turns back to normal, but on the 4. iteration it turns back to noise, and it continues so forth.

alt text

I know the graph is ugly as .... but I couldn't find other ways to illustrate 300.000 samples. The y-axis is amplitude, and x-axis is samples.

As I mentioned, this problem only occurs to certain .wav files.

Sound 1: 8 bit, 44100 hz, Mono: No Noise
Sound 2: 44100 hz, Stereo: Noise
Sound 3: 44100 hz, Stereo: Noise
Sound 4: 44100 hz, Mono: Noise
Sound 5: 11000 hz, Stereo: Noise
Sound 6: 44100 hz, Stereo: No Noise

As you can see, there is no consistency between Noise and No-Noise.

The question is, what could possibly cause this noise? Is there something we are missing about the Audioclip we extract the PCM data from or the playback of FMOD? Or is there something about .wav format/codec (something) we doesn't know?

All suggestions and ideas are welcome!

graph.png (61.2 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Freaking-Pingo · Apr 09, 2013 at 06:13 AM

Okay, I actually managed to figure out the issue myself. Apparently, .wav files can also be compressed with different codecs, such as ADPCM. Sadly I can't give you a detailed technical description on ADPCM, but the problem was that our .wav file wasn't PCM but ADPCM. The main difference is that ADPCM have some sort of different structure, compared to standard PCM. (As far as I know) I found the solution, by looking through some of these replies to a thread: http://forums.winamp.com/showthread.php?t=148626

(If you play around with audio yourself, and you are having trouble, feel free to contact me)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lassade · Jan 27, 2016 at 08:35 PM 0
Share

While working with PC$$anonymous$$ callbacks in unity have you experienced editor crashes? calling Destroy(myClip) is enough to get rid of it?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Usage of DownloadHandlerAudioClip.streamAudio 1 Answer

Is There A way For unity to Determine If Audio Was Recorded Backwards 1 Answer

It is possible to start a streaming AudioClip not from the beginning ? 1 Answer

Audio loops too early 2 Answers

Play a multiple audio sources sequentially 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges