This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
# example 1: 1 second of sound at 48000 Hz stereo 16 bit integer: | |
| ////////////////////////////// 1 Second = 48000 frames = 48k Hz ////////////////////////////////// | | |
| 48k * 4 bytes = 192k bytes per second = 1536 kbps bitrate | | |
| ///////////// FRAME ///////////// | ///////////// FRAME ///////////// | FRAME | FRAME | | | | | | |
| 4 bytes = 32 bits | 4 bytes = 32 bits | ... | ... | | | | | | |
| //// SAMPLE L//// | //// SAMPLE R//// | //// SAMPLE L//// | //// SAMPLE R//// | ... | ... | | | | | | |
| u16 = 2 bytes | u16 = 2 bytes | u16 = 2 bytes | u16 = 2 bytes | ... | ... | | | | | |