From d955b05c9d8d11b71a48c6423299179da682332a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 11 Aug 2011 04:14:39 -0700 Subject: [PATCH] Trace some playback notification information --- buffer.c | 2 ++ primary.c | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/buffer.c b/buffer.c index 26f4cdb..9e954b6 100644 --- a/buffer.c +++ b/buffer.c @@ -2723,6 +2723,8 @@ static HRESULT WINAPI DS8BufferNot_SetNotificationPositions(IDirectSoundNotify * DWORD state; HRESULT hr; + TRACE("(%p)->(%"LONGFMT"u, %p))\n", iface, count, notifications); + EnterCriticalSection(This->crst); hr = DSERR_INVALIDPARAM; if(count && !notifications) diff --git a/primary.c b/primary.c index 56ceabd..a6ab2b9 100644 --- a/primary.c +++ b/primary.c @@ -107,13 +107,19 @@ static void trigger_elapsed_notifies(DS8Buffer *buf, DWORD lastpos, DWORD curpos if(curpos < lastpos) { if(ofs < curpos || ofs >= lastpos) + { + TRACE("Triggering notification %"LONGFMT"u (%"LONGFMT"u) from buffer %p\n", i, ofs, buf); SetEvent(event); + } continue; } /* Normal case */ if(ofs >= lastpos && ofs < curpos) + { + TRACE("Triggering notification %"LONGFMT"u (%"LONGFMT"u) from buffer %p\n", i, ofs, buf); SetEvent(event); + } } } @@ -124,7 +130,10 @@ static void trigger_stop_notifies(DS8Buffer *buf) { DSBPOSITIONNOTIFY *not = &buf->notify[i]; if(not->dwOffset == (DWORD)DSBPN_OFFSETSTOP) + { + TRACE("Triggering notification %"LONGFMT"u from buffer %p\n", i, buf); SetEvent(not->hEventNotify); + } } } -- 2.11.4.GIT