This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x WEC7 Audio Playback Issue

I'm having some problems with wav files playing using the AM335x BSP.  I'm hoping someone else has run into this before.  I'm trying to add audio to my application by playing some built in sounds from windows.  the longer sounds like startup.wav play just fine.  But shorter ones like menusel.wav (only 20ms long) don't play at all or sometimes play twice.  I found that if I edit the file and add a delay at the beginning of the file to delay the sound by about 75ms, it will play every time, but it still plays twice sometimes. 

I have run the OS in debug mode and there aren't any error messages.  the debug output shows these messages when I use soundplayer:

PID:00400002 TID:06EA0072 HardwareContext::StartAudioOutput
PID:00400002 TID:06EA0072 McASP::StartAudioTX: Starting McASP
PID:00400002 TID:06EA0072 McASP::StartAudioTX: McASP started
PID:00400002 TID:02560002 HardwareContext::StopAudioOutput
PID:00400002 TID:02560002 McASP::StopAudio: Stopping McASP

I get these debug messages when using waveplay.exe:

PID:0645017A TID:078B016A CePerf.dll is absent - performance data will not be recorded
PID:06F70186 TID:06870196 OSAXST1: >>> Loading Module 'coredll.dll' (0x9E8134E8) at address 0x40010000-0x40165000 in Process 'wavplay.exe' (0x9E8D7908)
PID:06F70186 TID:06870196 OSAXST1: >>> Loading Module 'wavplay.exe' (0x9E8D7908) at address 0x00010000-0x00016000 in Process 'wavplay.exe' (0x9E8D7908)
PID:06F70186 TID:06870196 OSAXST1: >>> Loading Module 'locale.dll' (0x9E818E0C) at address 0x40170000-0x401B1000 in Process 'wavplay.exe' (0x9E8D7908)
PID:06F70186 TID:06870196 OSAXST1: >>> Loading Module 'normalize.dll' (0x9E8192E0) at address 0x401E0000-0x401FF000 in Process 'wavplay.exe' (0x9E8D7908)
PID:06F70186 TID:06870196 OSAXST1: >>> Loading Module 'waveapic.dll' (0x9E891904) at address 0x41340000-0x4136F000 in Process 'wavplay.exe' (0x9E8D7908)
PID:06F70186 TID:06870196 CePerf.dll is absent - performance data will not be recorded
PID:06F70186 TID:06870196 Chunk: "fmt " size=0x00000010
PID:06F70186 TID:06870196 Chunk: "data" size=0x00000884
PID:06F70186 TID:06870196 "\windows\menusel.wav" M16 11025Hz 2180 bytes 98 ms
PID:00400002 TID:06870196 HardwareContext::StartAudioOutput
PID:00400002 TID:06870196 McASP::StartAudioTX: Starting McASP
PID:00400002 TID:06870196 McASP::StartAudioTX: McASP started
PID:06F70186 TID:06870196 Dll list:
PID:06F70186 TID:06870196 OSAXST1: <<< Unloading Module 'waveapic.dll' (0x9E891904) at address 0x41340000-0x4136F000 in Process 'wavplay.exe' (0x9E8D7908)
PID:06F70186 TID:06870196 OSAXST1: <<< Unloading Module 'coredll.dll' (0x9E8134E8) at address 0x40010000-0x40165000 in Process 'wavplay.exe' (0x9E8D7908)
PID:06F70186 TID:06870196 OSAXST1: <<< Unloading Module 'normalize.dll' (0x9E8192E0) at address 0x401E0000-0x401FF000 in Process 'wavplay.exe' (0x9E8D7908)
PID:06F70186 TID:06870196 OSAXST1: <<< Unloading Module 'locale.dll' (0x9E818E0C) at address 0x40170000-0x401B1000 in Process 'wavplay.exe' (0x9E8D7908)
PID:06F70186 TID:06870196 OSAXST1: <<< Unloading Module 'wavplay.exe' (0x9E8D7908) at address 0x00010000-0x00016000 in Process 'wavplay.exe' (0x9E8D7908)
PID:00400002 TID:02560002 HardwareContext::StopAudioOutput
PID:00400002 TID:02560002 McASP::StopAudio: Stopping McASP