Synopsis:
This change fixes the audio disappearing issue when seek is issued for wm 5.0.
Overview:
m_bPausedAtReset is set in CAudioOutWindows::_Imp_Reset(), under the define
DONT_WRITE_WHILE_PAUSE_AT_RESET
and there is no code for resetting this variable so after seek when the flow
reaches CAudioOutWindows::_Imp_Write(), it returns
without writing the data to the device.
This change, resets the variable m_bPausedAtReset in
CAudioOutWindows::_Imp_Resume() and so fixes the issue.
Files Added:
none
Files Modified:
audio/device/platform/win/winaudio.cpp
Image Size and Heap Use impact (Client -Only):
None.
Platforms and Profiles Affected:
platform : wince-500-ppc-arm
profile : helix-client-wince-wm50
Distribution Libraries Affected:
None
Distribution library impact and planned action:
None
Platforms and Profiles Build Verified:
BIF branch -> helix_restricted
Target(s) -> wince_wm50_play
Profile -> helix-client-wince-wm50
System ID -> wince-500-ppc-arm
Branch:
HEAD, hxclient_310_atlas.
Files Attached
audio_device_diff.txt
Thanks & Regards
Anshuman
Index: winaudio.cpp
===================================================================
RCS file: /cvsroot/audio/device/platform/win/winaudio.cpp,v
retrieving revision 1.11
diff -u -r1.11 winaudio.cpp
--- winaudio.cpp 21 Aug 2007 04:49:42 -0000 1.11
+++ winaudio.cpp 1 Oct 2007 11:37:22 -0000
@@ -690,6 +690,9 @@
res = waveOutRestart(m_hWave);
//OutputDebugString("AFTER CALL TO:waveOutRestart\r\n");
}
+#ifdef DONT_WRITE_WHILE_PAUSE_AT_RESET
+ m_bPausedAtReset = FALSE;
+#endif //DONT_WRITE_WHILE_PAUSE_AT_RESET
OnTimeSync();
_______________________________________________
Audio-dev mailing list
[email protected]
http://lists.helixcommunity.org/mailman/listinfo/audio-dev