summaryrefslogtreecommitdiff
path: root/src/i_sound.c
AgeCommit message (Collapse)Author
2009-11-21Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1737
2009-06-10Fix build with FEATURE_SOUND disabled.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1589
2008-10-08Switch configuration file code to common configuration file code, andSimon Howard
remove old code. Subversion-branch: /branches/raven-branch Subversion-revision: 1338
2008-10-05Perform bounds checking on separation and volume values passed to theSimon Howard
low-level sound code, as the Heretic s_sound.c code generates values that are out of range. Subversion-branch: /branches/raven-branch Subversion-revision: 1337
2008-09-25Add option to low-level sound API to disable the DS prefix for soundSimon Howard
effects, for Heretic. Fix sound links. Subversion-branch: /branches/raven-branch Subversion-revision: 1281
2008-09-14Remove i_sdlsound.c dependency on doom/Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1229
2008-09-11Refactor configuration file system to allow configuration file variablesSimon Howard
to be bound in a distributed fashion around the program. Remove dependency of m_config.c on doom/. Subversion-branch: /branches/raven-branch Subversion-revision: 1222
2008-09-08Move s_sound.[ch] to doom/Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1213
2008-09-08Split off some of the s_sound.c code into i_sound.c and reimplement theSimon Howard
old low-level sound API as a thin wrapper around the module system. Decouple the low-level code from the high-level code. Subversion-branch: /branches/raven-branch Subversion-revision: 1212
2007-06-17Split i_sound.c into i_sdlsound.c, i_sdlmusic.c, with generic "soundSimon Howard
driver" modules, one for PC speaker and one for digital output. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 913
2007-06-16Clean up sound codeSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 911
2007-06-14Add configuration file variable to change the sound sample rateSimon Howard
(snd_samplerate) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 906
2007-05-20Fix crash when converting audio down to a lower sample rate.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 883
2007-05-20Stop music on sound shutdown so music isn't left playing at the ENDOOMSimon Howard
screen. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 882
2007-05-16Add FEATURE_SOUND.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 877
2007-03-15Use SDL for endianness byte swapping. m_swap.c removed; m_swap.h renamedSimon Howard
to i_swap.h. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 857
2007-03-14Use SDL's built-in audio conversion routines to convert sound effects toSimon Howard
the output mixer device's sample rate. Simplistic (naive) resampling in cases where SDL's routines can't do a conversion. This needs a bit more work to filter out the high frequency artifacts at 48khz output rate. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 856
2007-03-10Lots of changes/additions:Russell Rice
* Add libpcsound codeblocks project * Use libraries that are built and project dependencies inside main chocolate-doom/setup project and remove source files. * libraries are now built in the "lib" top level directory * Fix some warnings Subversion-branch: /trunk/chocolate-doom Subversion-revision: 852
2007-03-07Use native endianness for sound output, rather than always LSB. Add PCSimon Howard
speaker code! Subversion-branch: /trunk/chocolate-doom Subversion-revision: 844
2007-02-14Read sound length as a 32 bit field, not 16 bit. Fixes death sound inSimon Howard
marina.wad. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 834
2007-01-08More helpful SDL_mixer error messages.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 827
2007-01-06Choose the locations for temporary files more intelligently.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 821
2006-12-26On OSX, make MIDI music disabled by default. There are problems with theSimon Howard
native MIDI code in SDL_mixer. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 811
2006-12-24Javadoc-style self-documenting system for command line options.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 806
2006-12-24Include "SDL.h", not <SDL.h>, as per http://www.libsdl.org/faq.phpSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 805
2006-11-14Support running as a screensaver under X!Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 750
2006-10-18Strip out CVS logs, RCS Id tags.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 704
2006-09-21Set default sound devices to SNDDEVICE_SB, so that sfx and music are on by Simon Howard
default. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 649
2006-09-15Interpret the snd_sfxdevice and snd_musicdevice values in the configurationSimon Howard
file and act the same as Vanilla Doom. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 606
2006-09-09Fix the -nomusic parameter.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 603
2006-07-28Try to convert MUS even if the MUS header is not present. The new codeSimon Howard
plays the deca.wad titlescreen music properly! Subversion-branch: /trunk/chocolate-doom Subversion-revision: 568
2006-07-22New mus -> mid conversion code thanks to Ben Ryves <benryves@benryves.com>Simon Howard
This plays back a lot of music closer to Vanilla Doom - eg. tnt.wad map02 Subversion-branch: /trunk/chocolate-doom Subversion-revision: 566
2006-05-03Allow .mid files in PWADs (via including a MID inside a music lump).Simon Howard
This actually seems to work in Vanilla, as long as the MID is less than ~96k. This isn't perfect. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 473
2006-03-23Separate variables for config file volume levels and sound API internalSimon Howard
volume levels (this is how the Vanilla code behaves). Fixes sound behavior on level 8! Subversion-branch: /trunk/chocolate-doom Subversion-revision: 429
2006-03-18Fix music startup/shutdownSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 426
2006-03-18Catch failures to initialise SDL_mixer properly, and fail gracefullySimon Howard
rather than crashing the game. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 425
2006-01-23Fix bug when expanding large sound effects with odd sample ratesSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 338
2006-01-22Dehacked string replacements for sound and music lump namesSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 318
2006-01-10Shut up compiler warningsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 280
2006-01-08Add S_MusicPlaying function to query if music is still playing.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 271
2006-01-07Fix the behavior when expanding sound effects (again). Doom actuallySimon Howard
does play sounds of any sample rate, but the sound effects in Scientist 2 are corrupted. Add some tests to check that the sound effect header is correct, and generic sound rate conversion code. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 257
2005-10-23Reproduce the behavior when playing a sound at a sample rate whichSimon Howard
is not 11025 or 22050Hz. This is to "fix" a bug in Scientist 2: however, it does not fix the playing of sounds, only silence them. I tested Vanilla Doom and this is how it behaves when it receives sound effects with odd sample rates. The bug here is actually in the Scientist 2 WAD, which has sound effects that have the wrong sample rate. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 221
2005-10-15Fix MIDI music not pausing when using SDL_mixer's native MIDI playback.Simon Howard
The SDL_mixer native MIDI code does not pause music properly - use a workaround of setting the volume to 0. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 196
2005-10-02Guard against music lumps containing non-MUS data, document in bugs listSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 152
2005-09-11Remove temporary MIDI files generated by sound code.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 102
2005-09-11Fix sounds playing at the wrong volume (too quiet)Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 101
2005-09-07Modify the sound effect caching behaviour: sounds which are not playingSimon Howard
are now marked as PU_CACHE; it is otherwise possible to run out of memory. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 87
2005-09-06Restore -nosound, -nosfx, -nomusicSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 80
2005-09-06Setting music volumeSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 79
2005-09-06Working music!Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 77