[pywin32-checkins] pywin32/com/win32comext/directsound/test ds_test.py,1.2,1.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Lars I. <lar...@us...> - 2004-12-06 20:08:13
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/directsound/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10187 Modified Files: ds_test.py Log Message: Removed primary buffer from testPlay() - was not necessary. Index: ds_test.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/directsound/test/ds_test.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ds_test.py 2 Dec 2004 09:52:52 -0000 1.2 --- ds_test.py 6 Dec 2004 20:08:00 -0000 1.3 *************** *** 191,215 **** sdesc = ds.DSBUFFERDESC() - sdesc.dwFlags = ds.DSBCAPS_PRIMARYBUFFER - sdesc.dwBufferBytes = 0 - sdesc.lpwfxFormat = None - - # create primary buffer - primary = d.CreateSoundBuffer(sdesc, None) - sdesc.dwFlags = ds.DSBCAPS_STICKYFOCUS | ds.DSBCAPS_CTRLPOSITIONNOTIFY sdesc.dwBufferBytes = size sdesc.lpwfxFormat = wfx ! secondary = d.CreateSoundBuffer(sdesc, None) event = win32event.CreateEvent(None, 0, 0, None) ! notify = secondary.QueryInterface(ds.IID_IDirectSoundNotify) notify.SetNotificationPositions((ds.DSBPN_OFFSETSTOP, event)) ! secondary.Update(0, f.read(size)) ! secondary.Play(0) win32event.WaitForSingleObject(event, -1) --- 191,208 ---- sdesc = ds.DSBUFFERDESC() sdesc.dwFlags = ds.DSBCAPS_STICKYFOCUS | ds.DSBCAPS_CTRLPOSITIONNOTIFY sdesc.dwBufferBytes = size sdesc.lpwfxFormat = wfx ! buffer = d.CreateSoundBuffer(sdesc, None) event = win32event.CreateEvent(None, 0, 0, None) ! notify = buffer.QueryInterface(ds.IID_IDirectSoundNotify) notify.SetNotificationPositions((ds.DSBPN_OFFSETSTOP, event)) ! buffer.Update(0, f.read(size)) ! buffer.Play(0) win32event.WaitForSingleObject(event, -1) |