Smpl_AudioSynEx

所属分类:多媒体编程
开发工具:C/C++
文件大小:1096KB
下载次数:4
上传日期:2014-04-04 17:19:18
上 传 者化升
说明:  新唐nuvoice系列 n572 音频播放
(Nuvoton nuvoice series n572)

文件列表:
Smpl_AudioSynEx (0, 2014-03-25)
Smpl_AudioSynEx\Application_Keil.ld (1120, 2013-09-13)
Smpl_AudioSynEx\AudioRes (0, 2014-03-25)
Smpl_AudioSynEx\AudioRes\AudioRes.uid (534, 2013-09-13)
Smpl_AudioSynEx\AudioRes\AudioRes.wba (17309, 2013-09-13)
Smpl_AudioSynEx\AudioRes\IDT.ini (311, 2013-09-13)
Smpl_AudioSynEx\AudioRes\Output (0, 2014-03-25)
Smpl_AudioSynEx\AudioRes\Output\AudioRes_AudioInfo.h (306, 2013-09-13)
Smpl_AudioSynEx\AudioRes\Output\AudioRes_AudioInfoMerge.ROM (162424, 2013-09-13)
Smpl_AudioSynEx\AudioRes\UID.ini (861, 2013-09-13)
Smpl_AudioSynEx\AudioRes\WAVTable_Middle.idt (27703, 2013-09-13)
Smpl_AudioSynEx\AudioSynthEx.c (17627, 2013-09-13)
Smpl_AudioSynEx\ConfigApp.h (13393, 2013-09-13)
Smpl_AudioSynEx\ConfigIP.h (4466, 2013-09-13)
Smpl_AudioSynEx\F064 (0, 2014-03-25)
Smpl_AudioSynEx\F064\Debug (0, 2014-03-25)
Smpl_AudioSynEx\F064\Debug\ExtDll.iex (19, 2014-03-15)
Smpl_AudioSynEx\F064\Debug\Smpl_AudioSynExD_Keil.axf (536748, 2014-03-15)
Smpl_AudioSynEx\F064\Debug\Smpl_AudioSynExD_Keil.bin (65536, 2014-03-15)
Smpl_AudioSynEx\F064\Debug\Smpl_AudioSynExD_Keil.htm (154321, 2014-03-15)
Smpl_AudioSynEx\F064\Debug\Smpl_AudioSynExD_Keil.lnp (1594, 2014-03-15)
Smpl_AudioSynEx\F064\Debug\Smpl_AudioSynExD_Keil.map (300130, 2014-03-15)
Smpl_AudioSynEx\F064\Debug\Smpl_AudioSynExD_Keil.plg (1057, 2014-03-15)
Smpl_AudioSynEx\F064\Debug\Smpl_AudioSynExD_Keil.tra (3568, 2014-03-15)
Smpl_AudioSynEx\F064\Debug\audiosynthex.crf (103433, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\audiosynthex.d (2360, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\audiosynthex.o (118220, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\core_cm0.crf (3552, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\core_cm0.d (129, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\core_cm0.o (10304, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\main.__i (349, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\main.crf (154845, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\main.d (3230, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\main.o (155200, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\micspk.crf (137988, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\micspk.d (2643, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\micspk.o (150304, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\midisynthexconfig.crf (102237, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\midisynthexconfig.d (2715, 2014-03-14)
Smpl_AudioSynEx\F064\Debug\midisynthexconfig.o (93160, 2014-03-14)
... ...

/*---------------------------------------------------------------------------------------------------------*/ /* */ /* Copyright(c) Nuvoton Technology Corp. All rights reserved. */ /* */ /*---------------------------------------------------------------------------------------------------------*/ purpose of this sample code: 1. Demo how to playback an audio file from SPI flash 2. Demo how to playback an equation which represents a group of audio files from SPI flash 3. For N572, these audio files can be one of NuOne or NuLite or NuSound, NuVox53, NuVox63, LP8, MD4, MIDI data 4. For N571, these audio files can be one of NuLite or NuSound, NuVox53, NuVox63, LP8, MD4, MIDI data Operation: LED: 1. DB8: show system standby 2. DB10: use firmware PWM to show UltraIo first curve 3. DB11: use hardware PWM to show UltraIo second curve Key: 1. SWB14: start or stop playback 2. SWB12: select playing an audio file or an equation 3. SWB13: play the next audio file or the next equation 4. SWB15: play the previous audio file or the previous equation Note I: 1. Before playing, there must be written the "AudioRes_AudioInfoMerge.ROM" file into SPI flash. The "AudioRes_AudioInfoMerge.ROM" is storted in ".\AudioRes\Output\" 2. The encoded data can be generated by AudioTool.exe under WindowsPlatform\tool\audioTool\. There is an audio tool project "AudioRes.wba" located in ".\AudioRes\". the "AudioRes_AudioInfoMerge.ROM" file is created by this project 3. The playback sampling rate is read from audio file or equation 4. Playback can be with/without N-times up-sampling to reduce "metal sound" which is controlled by APU_UPSAMPLE defined in "ConfigApp.h" 5. If you want to create new curve, please use "UltraIO tool" to create "ConfigUltraIO.h" and replace current file in folder ".\UltraIO\". Note II: 1. Steps to add or delete decodec a. Modiy the strcut "U_CH0_WORKBUF", "U_CH0_PCMBUF" and "U_CH_TEMPBUF" in ConfigApp.h to add or delete codec' RAM b. Modify the struct "g_sAudioSynthExDecoder" in "Variable.h" to add or delete codec's functions 2. The read callback function is "ReadDataCallback()" in "Playback.c" 3. The event callback function is "UserEventCallback()" in "Playback.c" Must Know: 1. The stack size is defined by "Stack_Size" in "startup_N572_keil.s". Can change the stack size by modifing the content of "Stack_Size". 2. The chip ROM size and SRAM size is specified by "ROM_SIZE" and "SRAM_SIZE"in linker settings Open the linker setting and find the --pd="-DSRAM_SIZE=0xNNNN" --pd="-DROM_SIZE=0xMMMMM" in "misc controls" 3. When the error happen: "L6388E: ScatterAssert expression (ImageLimit(_SRAM) < (0xNNNNNNNN + 0xMMMM)) failed on line xx" It means the size of variables+stack is over chip SRAM size. Please open map file to see the overed SRAM size and reduce variables or stack size to fit chip SRAM size. 4. When the error happen: "L6220E: Load region _ROM size (NNNNN bytes) exceeds limit (MMM bytes)." It means the size of programs is over chip ROM size. Please open map file to see the overed programs size and reduce programs size to fit chip ROM size.

近期下载者

相关文件


收藏者