FRDM-K66 Audio Playback

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FRDM-K66 Audio Playback

635件の閲覧回数
dkh
NXP Employee
NXP Employee

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

0 件の賞賛
返信
3 返答(返信)

458件の閲覧回数
carlos_neri
NXP Employee
NXP Employee

The tool used was Segger bin2c:

SEGGER - The Embedded Experts - Bin2C 

0 件の賞賛
返信

458件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

458件の閲覧回数
mjbcswitzerland
Specialist V

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

0 件の賞賛
返信