Function: Implement an executable program
that plays .wav files through the C54x
DSK Plus
Location: ftp://ftp.ti.com/pub/tms320bbs/c5xxdskfiles/wavp.exe
By:
Thomas Millikan
Wave Player Application Code: c54xwavp.exe
Starting off:
The file "c54xwavp.exe" can be downloaded from the ftp site listed above to provide a demonstration of the real-time audio capabilities of the C54x DSK Plus. First save "c54xwavp.exe" into it’s own directory. Then run the executable (in DOS or Windows) allowing it to explode into the following files:
c54xwavp.exe - The original file that was downloaded waveplay.exe - PC host executable used to stream data down to the DSP waveplay.cpp - Source code for compiling the waveplay executable wav_ac01.asm - DSP code used to initialize the AC01 analog interface wav_vecs.asm - C54x DSP code used for interrupt vectoring wave.asm - Main dsp program that unpacks and plays data wave.obj - DSP object file (This is imbedded in waveplay.exe) hello.wav - Example .wav file. Play It!! wave.txt - Explanation of the assembly code
By downloading "c54xwavp.exe" and running "waveplay.exe" you can begin to understand the capabilities of the C54 in audio applications. "Waveplay.exe" can also act as a PC sound-card and play .wav files that you download off of the Internet. By imbedding "waveplay.exe" into the "helpers" section of your Web Browser, you can spool .wav files off of the Internet to "waveplay.exe" without having to download them (See the hints section for more details)
To play a .wav file, open an MS-DOS window, and go to the directory you created for "C54xwavp.exe." Then type: "waveplay filename.wav." For example, to play "hello.wav" you would type: "waveplay hello.wav." If the .wav file is not in the same directory as "waveplay.exe" then you need to include the path in the following manner: "waveplay [drive:] \path\filename.wav." "Waveplay.exe" takes the encoded audio information from the .wav file and streams it down to the DSP where it is decoded and played through the output mini-jack. (see the TMS320C54x DSKPlus User’s Guide page 1-4 for jack locations)
Hints:
To spool .wav files from the Internet while using Microsoft Internet Explorer,-Open Internet Explorer. -Select "View" from the top tool bar." -Scroll down and select "Options.." -Notice the tabs on the top of the Options dialog box, now select the "Programs" tab -Under the box labeled "Viewers" Click on the "File Types.." button. -Click on the "New Type" button. -Fill out the dialog box using the following information: Description of type: (leave blank) Associated extension: wav Content Type(MIME): audio/x-wav Default Extension for Content Type: .wav -Then click on the "New" button under the "Actions" section. -Fill out the dialog box using the following information: Action: open Application used to perform action:(Enter the path to waveplay.exe) -Then click on the "Okay" button. -Then click on the "Close" button.Now whenever you try to open a .wav file, waveplay will play the sound through your DSK Plus for you.
To spool .wav files from the Internet while using Netscape Navigator:
-Open Netscape Navigator. -Select "Options" from the top tool bar." -Scroll down and select "General Preferences…" -Notice the tabs on the top of the Preferences dialog box, now select the "Helpers" tab. -Now look for the file type: "audio/wav" -(If there isn’t one listed, hit the "Create New Type" button and fill out the dialog box using the following information:) Mime Type: audio Mime Sub Type: wav -Then fill out the main dialog box with: File Extensions: wav Actions: Launch the Application Then in the remaining box, put in the path to "waveplay.exe" or hit "Browse" and select it. -Then click on the "Okay" button.Now whenever you try to open a .wav file, waveplay will play the sound through your DSK Plus for you.