More general code cleanup for readability.
commitf0fa9563845c14798d31e6af4029fb3b5942c380
authorRobert Riggs <rriggs@tesser.com>
Mon, 7 Dec 1998 12:13:01 +0000 (7 12:13 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 Dec 1998 12:13:01 +0000 (7 12:13 +0000)
tree814a0a3bd53bbdefd1160440e8773bd13f1a0cad
parenteee1ddc809fa3377105fe226d9af05647674e0b4
More general code cleanup for readability.
A few more parameter validation checks.
Return DS_OK rather than 0 in a number of functions.
Fixed primary buffer ref count bug in CreateSoundBuffer().
Handle 1-3 byte sound fragments that would cause buffer overruns.
Clear primary buffer with a neutral value instead of always 0
(because 128 is neutral for 8-bit sound).
Fix bug with mixing 8-bit sound into the primary buffer.
Broke out the main block in DSOUND_thread() to another function for
readability.
Handle "no audio" and "audio busy" cases properly when initializing
dsound. Rename DllCanUnloadNow() to DSOUND_DllCanUnloadNow().
multimedia/dsound.c
relay32/dsound.spec