ScriptReference/AudioClip.GetData #293
Replies: 2 comments
-
|
this was kind of non obvious to me, but the sample count you get from a clip is for one channel. |
Beta Was this translation helpful? Give feedback.
-
|
Sometimes I find (maybe only with ogg format?) that the number of samples available to GetData() is actually 1 sample less than would be calculated via
See how in that example the number of samples copied is an odd number, even though there are 2 channels. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/AudioClip.GetData
https://docs.unity3d.com/ScriptReference/AudioClip.GetData.html
Beta Was this translation helpful? Give feedback.
All reactions