Build 9218
GIT-
Add FX_StartDemandFeedPlayback3D
Mostra dettagli
Backported from Rednukem.
Nickname SVN e nomi Git sono unificati per persona.
Add FX_StartDemandFeedPlayback3D
Backported from Rednukem.
fix warning
calculate RateScale using 64-bit math
fix DemandFeed playback
Broken in 09dc0cc9489d33e86ddd5f1605014b63cb612139.
#if 0 out some dead code in XA and XMP support
This doesn't look like it's intended to be dead code, but nothing sets Loop.Size anywhere.
non-MIDI music is no longer affected by reverb
cleanups and consolidations
Zeroing of fields when starting playback moved to common functions, revised allocation of memory for FLAC, Vorbis, XA, and XMP, addition of "snd_lazyalloc" cvar to control reusal of memory blocks allocated for Vorbis, XA, and XMP playback, other misc code cleanup.
less nasty looking MV_Voices[] allocation
This removes the +2 bytes at the end of the allocation--I checked out the valgrind_errors.log referenced by the deleted comment and it looks like the issue fixed by 2e2e0e3af3378734c4f0b890c6b4d10253628416. This is the commit to revert if weird audio crashes start happening.
fix buffer overflow crash
revert Vorbis handling to standard memory allocation instead of cache1d
minor XMP support cleanup
Ditches the struct full of unused members.
minor cleanup to the dummy playback functions used when missing support for a format
bring MV_ReleaseVorbisVoice() in line with the other MV_Release<fmt>Voice() functions
factor common code from MV_AllocVoice() and MV_VoiceAvailable() into new MV_GetLowestPriorityVoice() function
add nullptr checks to MV_ReleaseXMPVoice(), MV_ReleaseFLACVoice(), and MV_ReleaseXAVoice()
disable mus_xmp_interpolation cvar and hard-code XMP interpolation to XMP_INTERP_NEAREST
Both linear and spline interpolation seem to be broken with some of the .xm tracks in Ion Fury.
slightly clean up fix16 usage for volume
fix crash when a configuration file contains mus_xmp_interpolation but multivoc isn't initialized when the cfg is parsed
reset rawdataptr to nullptr in MV_ReleaseVorbisVoice()
This also resets wavetype to FMT_UNKNOWN in MV_CleanupVoice(), and moves the resetting of a few structure members common to different voice types there.
work around crash when ov_read fails
call ov_clear before telling cache1d the block of memory can be reused!
Add bit depth and channel settings to DemandFeed
Backported from Rednukem.
Fix -Wheader-guard warning