Hello,
I am looking at SAI driver is SDK 2.1 for FRDM-K66. The readme file discussing how to play the audio demo,
but there is no information on how to create my own audio file.
It appears the WAV file has been converted and inserted into music.h
Can you please provide information on what tool to use to make this insertion and the steps ?
Regards,
Dennis
Hi,
Regarding the tools to generate the PCM stream, I remeber that user can use wavelab tools to generate the PCM. the tools can generate single tone PCM, PCM frpm PC mic..
Hope it can help you
BR
Xiangjun Rong
Dennis
If you don't find a special tool to do it you can use uTaskerFileCreate from http://www.utasker.com/forum/index.php?topic=1445.0
Assuming you have a wave file (music.wav) that you want to convert to an array
uTaskerFileCreate music.wav music.h music
This will create a file called music.h, which you can link into a project, with an array - giving something like
unsigned char music[] = {
0xXX, 0xXX, 0xXX,...
....
};
By using
uTaskerFileCreate -fb my_music.txt music.h
you can also have a text file "my_music.txt" with a list of multiple input files that should be converted into arrays in the output header.
There are more details about using this on page 25 of http://www.utasker.com/docs/uTasker/uTaskerLCD.PDF since it is useful also for adding embedded images or web pages (with options to strip out white space for example) or embedding into an internal file system.
Regards
Mark
Kinetis for Professionals: http://www.utasker.com/kinetis.html