- Home /
 
 
               Question by 
               MakakWasTaken · Sep 27, 2015 at 05:02 PM · 
                audiooutput  
              
 
              AudioSource.GetOutputData obsolete
Why is it obsolete and what is the new replacement for it, if there is any.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by MakakWasTaken · Sep 27, 2015 at 06:31 PM
I found my problem, I was using the AudioSource.GetOutputData(int,int) which is obsolete. What I ended up doing was using it like this instead:
     float[] samples = new float[1024];
     GetComponent<AudioSource>().GetOutputData(samples, 0);
 
              Answer by slake_it · Feb 25, 2021 at 07:32 AM
GetOutputData has 2 versions, only 1 of the versions was deprecated
Your answer
 
             Follow this Question
Related Questions
AudioMixer output volume 1 Answer
Unity Audio Output Data 0 Answers
How can I set the audio on a Virtual Reality game? 0 Answers
Change AudioSource output via Script 1 Answer
Console not outputting from Debug.Log() 10 Answers