Audio stored on eeprom
JasonLights
Posts: 8
Is there any sample projects out there that have audio clips (mp3, wav, or other format) on a eeprom on ether I2C or SPI bus?
Comments
I don't think anybody made one to play from eeprom already.
This is a fanfare from a game I did.· The first long in the file is the data length and the second represents the sample rate.· I always use 32KHz, so the value is always $FFFFFFFE.· The rest of the file is the ADPCM.· B6 and B7 of each byte represents the magnitude of change and the other 6 bits represent the direction.· $EA is a value that should never appear as data, so I use that as an EOF·terminator.· By using a terminator I can simply stream the audio with no regard to the file size.· If you like I have a simple tool that will convert 8 bit, 32KHz .WAV files into 32KHz ADPCM.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
Need a part? Got spare electronics? - The Electronics Exchange
One trick when decoding delta modulation type signals is to output the average of the last two samples. This gets rid of the sawtooth wave that happens when trying to represent a flat waveform.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lonesock
Piranha are people too.