Search Issue Tracker

By Design

Votes

0

Found in

5.3.1f1

Issue ID

756384

Regression

No

[AudioClip] GetData() returns only zeroes if no AudioSource is found

Audio

-

Repro steps:
1) Open the project
2) Add the Foo script to any object
3) Click Play and notice that console throws an error that says all 0's (That's because AudioClip.GetData() only received 0)\
4) Drag and drop Resources -> 01 to any object
5) Play and notice the console shows Success (Means GetData works as supposed, because of AudioSource)

Workaround: Add an AudioSource component and attach the clip, whose data you want to get

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.