0
0

Hello there,

With FSOUND_Sample_GetLength(sample) you get the length of the sample expressed in number of “SAMPLES”. But how can I get the size of this sample (FSOUND_SAMPLE) in “bytes” ?

Merry Christmas to eveyrone,
Caroline

  • You must to post comments
0
0

Happy Holidays…

At some point in your app (i.e., after opening an audio source), you should set the value of the block alignment:
[code:3jlzvs17]m_blockAlign = nChannels * bitDepth / 8[/code:3jlzvs17]
The block alignment is typically 1, 2 or 4 bytes.

It is then a simple matter to determine how many bytes are comprised in a segment of audio:
[code:3jlzvs17]nBytes = nSamples * m_blockAlign[/code:3jlzvs17]

Regards,

  • SD
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.