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
The LoadAudioStream function has a parameter sampleSize which determines the bit depth of the samples. What I couldn't initially figure out however, is the exact datatype of the samples (whether it's signed, unsigned, a float, etc.), or what options you even have.
I eventually figured out, that setting sampleSize to 8 makes them an unsigned char, setting it to 16 makes them a signed short, and any other value makes them a (32 bit) float. It would perhaps be nice if this was in the cheatsheet.
I apologize if this sort of thing should be obvious of if it's mentioned elsewhere (I already checked the "raw stream" example and couldn't find it there).
The text was updated successfully, but these errors were encountered:
The
LoadAudioStream
function has a parametersampleSize
which determines the bit depth of the samples. What I couldn't initially figure out however, is the exact datatype of the samples (whether it's signed, unsigned, a float, etc.), or what options you even have.I eventually figured out, that setting
sampleSize
to 8 makes them anunsigned char
, setting it to 16 makes them asigned short
, and any other value makes them a (32 bit)float
. It would perhaps be nice if this was in the cheatsheet.I apologize if this sort of thing should be obvious of if it's mentioned elsewhere (I already checked the "raw stream" example and couldn't find it there).
The text was updated successfully, but these errors were encountered: