Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - use wave play sound. wave in deadloop: (2 Items)
   
use wave play sound. wave in deadloop  
Dear sir.

I use wave to play a .wav file. I found the wave is deadloop. the information is:
# wave start.wav 
SampleRate = 44100, Channels = 2, SampleBits = 16
Format Signed 16-bit Little Endian 
Frag Size 3760 
Total Frags 64 
Rate 44100 
Voices 2 
Mixer Pcm Group [Wave playback channel]

When I trace the code I found the program will deadloop in while (N < mSamples && n > 0)
I don't know why.  the mSamples = 1361076, After N > 240000 the program deadloop, but key still can use.

By the way, I can not get any data from DMA. I check the I2S, it does not send any data.
Re: use wave play sound. wave in deadloop  
I check again. It will deadloop in select() function.