winecoreaudio: Improve state tracking.
commit6a6aec72d3a63411cd5b1d831bd99c5735f461b8
authorKen Thomases <ken@codeweavers.com>
Wed, 24 May 2006 10:34:04 +0000 (24 05:34 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 1 Jun 2006 10:59:50 +0000 (1 12:59 +0200)
treef0b2429b8cb9300c472cbd0265f32af97c59306c
parentfb9f878849fd468cf418c5731fa5a75c42051267
winecoreaudio: Improve state tracking.

Improved tracking of device state (stopped, playing, or paused).
Also, tied starting and stopping the AudioUnit more directly to the
state.  No need to change the state when preparing or unpreparing
wavehdrs.  Pausing overrides both playing and stopped states; if
stopped, pausing prevents output from starting when the program
writes.  When, restarting from the paused state, the device starts
playing if there are queued wavehdrs.  Otherwise, it goes to stopped
state.
dlls/winmm/winecoreaudio/audio.c