ref: 166fe91d0645728370f7ba85f5732baf5d851f8f
parent: 7e8a91f56b3a8a94a4523891a450094a6f52db36
author: robs <robs>
date: Wed Sep 9 14:10:48 EDT 2009
fix warnings
--- a/src/waveaudio.c
+++ b/src/waveaudio.c
@@ -91,12 +91,14 @@
while(WAVERR_STILLPLAYING == waveOutClose(priv->waveout))
{
-/* // terminate
+#if 0
+ /* terminate */
if( priv->is_cancelled() )
{
waveOutReset(priv->waveout);
}
- else priv->update_pos();*/
+ else priv->update_pos();
+#endif
Sleep(50);
}
@@ -123,7 +125,7 @@
while(header == NULL)
{
- // find first free header
+ /* find first free header */
for(i=0; i<num_buffers; i++)
{
if(priv->ptr_wavheader[i].dwFlags == 0 || priv->ptr_wavheader[i].dwFlags & WHDR_DONE )
@@ -133,7 +135,7 @@
}
}
- if(header == NULL) // not found free data blocks
+ if(header == NULL) /* not found free data blocks */
{
while(WAIT_TIMEOUT == WaitForSingleObject(priv->need_more_data_blocks, 50))
{