• 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
..
.cvsignore Loading commit data...
Makefile.in Loading commit data...
audio.c Loading commit data...
dplay.c Loading commit data...
dsound.c Loading commit data...
init.c Loading commit data...
joystick.c Loading commit data...
mcianim.c Loading commit data...
mcicda.c Loading commit data...
mcimidi.c Loading commit data...
mcistring.c Loading commit data...
mciwave.c Loading commit data...
midi.c Loading commit data...
midipatch.c Loading commit data...
mixer.c Loading commit data...
mmaux.c Loading commit data...
mmio.c Loading commit data...
mmsystem.c Loading commit data...
msvideo.c Loading commit data...
time.c Loading commit data...