c - audio to 8-bit text sample conversion -


I have an interesting question today.

I need to change some Pokemon audio files. The list of 8-bit samples (0-255 values) I am writing the regularity of an assembly on the MC6800 chipset For which these sounds will be required. I am planning to include an array with 8-bit samples, when a function is called during the program loop.

Does any audio files (wav / mp3) differ from a comma-list 8-bit text sample values? Or anything from this relative method?

Thanks in advance!

You can use a command-line to convert files to raw, unsigned 8-bit Can use "socks" device or audacity audio editor mono audio file.

In Audacity 1.3 or higher, open the audio, then select Export, select "Wave, AIFF, and other uncompressed type formats", then click Options ... - then "Other. .. "for the format, for" Raw "header, and 8-bit PCM as encoding. (Sorry, unsigned is not available.)

Try sock with command-1 for 1 channel, -t for raw, unsigned line-for-no and top Samples per 1 byte for 1.

Then you can delete the file bytes as numbers by using a tool like "hexdump" and paste them into your code.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -