You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not exactly posting an issue but more of an enquiry, how do you play the frames? I've tried using the getPayload function of the frames but all I get is static noise through the speaks. I have noticed that there's a getSamples function so maybe I should be using that instead but I don't know how to turn it into a single byte array.
The text was updated successfully, but these errors were encountered:
The payload still has to be decoded using the appropriate codec, for example MP3. This decoder only decodes the continuous bytestream into single frames of (still) encoded content. The thing is, that each frame is an independant piece of encoded audio that has to be decoded each for itself, because each frame can be encoded using different parameters. That's why it's important to decode the bytestream into these pieces/frames of encoded content, to get insight into the parameters necessary to decode it successfully into (then) playable audio content like PCM.
I'm not exactly posting an issue but more of an enquiry, how do you play the frames? I've tried using the getPayload function of the frames but all I get is static noise through the speaks. I have noticed that there's a getSamples function so maybe I should be using that instead but I don't know how to turn it into a single byte array.
The text was updated successfully, but these errors were encountered: