Figure 2-11 PCM data file example
file name | sound | stereo | bit | pitch | comment |
---|---|---|---|---|---|
stereo.8 | “It’s 10 years early.” | stereo | 8 | 7800 | It is shifted left and right |
mono.16 | "Yes." | monaural | 16 | 7180 | |
stereo.16 | "Aww" | stereo | 16 | 7F00 | Voices flow from right to left |
Script file name [binary file name] [array name]> [Output file name]
#!/bin/csh -f echo "char$2[]={" od -hv$1|cut -s -d ""-f2-|gsed's/\(..\)\(..\)*/0x\1,0x\2,/g' echo"};"