Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / sound memblock format

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th Jul 2006 23:56 Edited at: 27th Jul 2006 23:57






In the above example, I used a 16-bit audio file.

16-bit audio
Each sample is 2 bytes long, so the value is a "word".
Value range is -32768 to 32767 (signed 2^16)

8-bit audio
Each sample is 1 byte long.
Value range is 0-255 (unsigned 2^8)

I've only tested 16-bit, but the 8-bit info should be accurate.


sources:http://ccrma.stanford.edu/courses/422/projects/WaveFormat/

"Using Unix is the computing equivalent of listening only to music by David Cassidy" - Rob Pike

Login to post a reply

Server time is: 2024-11-23 03:36:52
Your offset time is: 2024-11-23 03:36:52