About 198,000 results
Open links in new tab
  1. Unity: Difference between Audio Source, Audio Listener and Audio …

    Nov 7, 2018 · AudioClip contains the file you want to play back as either compressed ogg vorbis, or uncompressed. AudioClip also holds all information about that clip like the length and …

  2. How to play audioclips in unity from script? - Stack Overflow

    Jul 13, 2018 · Take a variable of AudioSource _aSource and AudioClip _aClip and assign the audio source game object to the _aSource and clip to the _aClip on the inspector and where …

  3. How to change the AudioClip of an AudioSource from script in …

    Jun 23, 2020 · What I'm trying to do is changing the AudioClip to be played from a script on the AudioSource GameObject depending on the text of an button (difficulty of the game) when the …

  4. Unity - AudioClip GetData - Stack Overflow

    Jun 29, 2024 · float[] samples = new float[audioClip.samples * audioClip.channels]; audioClip.GetData(samples, 0); What is the correspondance of samples ? Why is the array …

  5. How to create a .wav file using AudioClip.Create in Unity?

    May 13, 2023 · How to create a .wav file using AudioClip.Create in Unity? Asked 2 years, 8 months ago Modified 2 years, 8 months ago Viewed 577 times

  6. c# - Audio null in unity - Stack Overflow

    Jun 4, 2020 · c# unity-game-engine audio-source audioclip edited Jun 4, 2020 at 7:10 asked Jun 4, 2020 at 7:03 GraniteSOS

  7. AudioClip.Create () returns an AudioClip with no data

    Dec 11, 2022 · AudioClip audioClip = AudioClip.Create(fileName, f.Length, 1, 44100, false); I've checked f.Length (which is a byte array), and the value is not zero, so it should create a clip …

  8. c# - create AudioClip from byte [] - Stack Overflow

    If I was debugging this, I would create the inverse conversion, from audioClip.GetData to byte array. If you'll load up the exact same sample in Unity and use this reverse conversion, you …

  9. Unity3d how to play streamed audio via Audioclip?

    Oct 1, 2022 · Hi, my problem is I would like to change out NAudio for Audioclip, For compatibility with plugins like Oculus lipsync etc. So yes my question is how to a have an Audioclip receive …

  10. How to read the data from AudioClip using PCMReaderCallback …

    Nov 19, 2018 · How can I change the code below to use the PCMReaderCallback to read data from the audio clip created by Microphone.Start? using System.Collections; using …