indexer = 4096*(playcount * WaveChannels * (WaveBits/16) * 2);
should sort the multi - bit - channel - rate issue.
Where 4096 is the maximum amount of frames the card will allow stacked.
Should handle most - normalish - rate wav files now - mono or stereo - 8 or 16 bit.
I changed the call to the thread - now with a NULL message Type.
(The thread warning about the messageType being of an inconsistent type still puzzles me, I have checked it against the parent method, NULL seems the least unhappy)
I'll post my silly test code here in a moment.
No more seggies through running off the end of the file or threads not ending together
while (4096*(playcount)< WaveSize)
Sorted that out.
Last edited by twobob; 07-18-2012 at 10:13 PM.
Reason: added support specifications
|