Skip to main content
amarjeetxc
Participant
November 17, 2017
Question

Unable to play sound from ArrayBuffer (6048 length ) of 16 bit raw PCM Audio data ( stream from the server in Websocket )

  • November 17, 2017
  • 1 reply
  • 221 views

Operating System : Windows 10

Browser : Internet Explorer

Flash : 9.0

I am getting Audio data from the server in WebSocket. I am using ArrayBuffer of length to read the data and then converting to Int16Array. From Int16Array to Float32Array but it is playing noise instead of sound.

Do I have to decode audio data of raw 16 bit PCM ?

How to decode the data into Floating samples which range from -1 to 1.

Is there any sample code or tutorials you have provided anywhere which I can use for help.

This topic has been closed for replies.

1 reply

_maria_
Legend
November 17, 2017

moved to Animate CC forums (Flash CS was rebranded Animate CC last year)