• Robert Riggs's avatar
    More general code cleanup for readability. · f0fa9563
    Robert Riggs authored
    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().
    f0fa9563
Name
Last commit
Last update
console Loading commit data...
controls Loading commit data...
debugger Loading commit data...
dlls Loading commit data...
documentation Loading commit data...
files Loading commit data...
graphics Loading commit data...
if1632 Loading commit data...
include Loading commit data...
ipc Loading commit data...
library Loading commit data...
libtest Loading commit data...
loader Loading commit data...
memory Loading commit data...
misc Loading commit data...
miscemu Loading commit data...
msdos Loading commit data...
multimedia Loading commit data...
objects Loading commit data...
ole Loading commit data...
programs Loading commit data...
rc Loading commit data...
relay32 Loading commit data...
resources Loading commit data...
scheduler Loading commit data...
server Loading commit data...
tools Loading commit data...
tsx11 Loading commit data...
win32 Loading commit data...
windows Loading commit data...
.cvsignore Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
BUGS Loading commit data...
ChangeLog Loading commit data...
DEVELOPERS-HINTS Loading commit data...
LICENSE Loading commit data...
Make.rules.in Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
WARRANTY Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
wine.ini Loading commit data...