- Home /
Help on "Cannot get data on compressed samples for audio clip"
I have a voice that is not playing in my deployed WebGL game.
The developer tools console shows-
"Cannot get data on compressed samples for audio clip "__Keys". Changing the load type to DecompressOnLoad on the audio clip will fix this"
I assume this is occurring when I use AudioClip.Create as that is the only place where that particular clip is used. I am using AudioClip.Create to combine clips, and the message is appearing on every clip that is being used in AudioClip.Create. The message also appears at the moment in the game when the clip combining should occur. ---I believe it is dying on .GetData(buffer,0).
The game is working fine in the editor. It is failing in the build I put on my server and access with a browser (both Edge and Firefox give the same problem).
DecompressOnLoad is the default load type for the clips in question. I have also set DecompressOnLoad specifically on the WebGL override and tried building it that way with the same result. (2021.1.7f1 personal). The files enter the project as .mp3 files. The only thing they have in common is that they all have double underscores in their names- surely that can't be an issue.?
appears to be a possible Unity Bug- https://answers.unity.com/questions/1362431/audioclipgetdata-not-working-in-weggl-build.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613052202im_/https://answers.unity.com/themes/thub/images/avi.jpg)