aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
AgeCommit message (Collapse)Author
2003-07-05protect calls to insertChannel with mutex, too (and switch to using StackLock)Max Horn
svn-id: r8782
2003-07-04make SoundMixer::playRaw only check sound IDs if you actually pass oneRobert Göffringmann
svn-id: r8746
2003-07-04Prevent apparantly possible race condition. I don't get this stuff, and I ↵James Brown
don't see why the next call to insertChannel is immune to the same theoretical problem :) svn-id: r8742
2003-07-04Insert preliminary Zak256 sound looping support. It's not perfect, as some ↵James Brown
Zak256 sounds only loop a part of the sample - which our mixer API doesn't yet support. svn-id: r8741
2003-07-03cleanup for -WundefMax Horn
svn-id: r8726
2003-07-02cleanup (code easier to read; slightly less rounding errors for the volume; ↵Max Horn
and on BE systems, READ_BE_UINT16 is actually faster ;-) svn-id: r8706
2003-06-27fixed warningPaweł Kołodziejski
svn-id: r8664
2003-06-24cleanupMax Horn
svn-id: r8645
2003-06-22fixed warningsPaweł Kołodziejski
svn-id: r8613
2003-06-22d'ohMax Horn
svn-id: r8611
2003-06-22fixed Vorbis CD track codeMax Horn
svn-id: r8610
2003-06-22don't memset the output buffer to 0 if _eof_flag is set; rather, we should ↵Max Horn
'add 0' to every byte in the output buffer, i.e.: do nothing svn-id: r8609
2003-06-22properly init member vars instead of using memsetMax Horn
svn-id: r8608
2003-06-22Change names of the stream API in the mixer; added endStream method (stop() ↵Max Horn
halts stream immediately; endStream() lets it first finish playing) svn-id: r8603
2003-06-22fix compile when vorbis is enabled, loomcd is now broken with vorbis after ↵Jonathan Gray
recent changes :/ svn-id: r8598
2003-06-22renamed SoundMixer::hasActiveChannel->hasActiveSFXChannel, and fixed the ↵Max Horn
regression in it caused by removing _beginSlots (I hope); added isActiveChannel method used by scumm/sound.cpp (this allowed me to move the Channel class from mixer.h into mixer.cpp); replaced Channel::soundFinished method by isActive svn-id: r8597
2003-06-22remove the realDestroy methods and instead use destructors; renamed insertAt ↵Max Horn
to insertChannel and simplified/unified its usage; delete the mutex when exiting; cleanup svn-id: r8596
2003-06-21lots of mixer cleanup / refactoring / reengineeringMax Horn
svn-id: r8594
2003-06-21modified & cleaned up the playStream/append code a bit; but this API really ↵Max Horn
could stand some refinement svn-id: r8592
2003-06-21cleanupMax Horn
svn-id: r8584
2003-06-15more cleanupMax Horn
svn-id: r8497
2003-06-09use clear_sound_proc to properly deinit the mixer (this fixes a crash-on-exit)Max Horn
svn-id: r8410
2003-05-29more OSystem docs & cleanupMax Horn
svn-id: r8118
2003-05-23fixed nasty deadlock I recently introducedMax Horn
svn-id: r7867
2003-05-22make sure that the mutex protects everything that affects the bufferMax Horn
svn-id: r7835
2003-05-21pedantic warning fixMax Horn
svn-id: r7792
2003-04-30PalmOS changesMax Horn
svn-id: r7222
2003-03-30changed messages from warning to debugPaweł Kołodziejski
svn-id: r6888
2003-03-18cleanup; add stopID method to stop a currently playing sound via its IDMax Horn
svn-id: r6835
2003-03-06updated copyrights headersPaweł Kołodziejski
svn-id: r6726
2003-03-06and more cleanup ....Paweł Kołodziejski
svn-id: r6719
2002-12-08Patch #641607: Louder MP3 sound effectsMax Horn
svn-id: r5882
2002-11-21Adapt MAD sampling rate to the real sampling rate for WinCENicolas Bacca
svn-id: r5657
2002-11-19Patch #639931: ALL: Fix for possible mixer distortionMax Horn
svn-id: r5602
2002-11-15637471: Hack to work-around 'bad sound in stream' problem.James Brown
svn-id: r5560
2002-11-10oopsOliver Kiehl
svn-id: r5504
2002-11-10added looping support to playRawOliver Kiehl
svn-id: r5501
2002-10-28Fix using MAD -without- Vorbis, and remove COMPRESSED_SOUND_FILE define.James Brown
Please keep in mind that if you put an 'else' statement in an if clause, keep in mind that if the code it's supposed to 'else' is in another define.... and that isn't set... the NEXT statement of code will be used as the 'if..else' condition. svn-id: r5344
2002-10-27don't put samples into stream SoundMixer if sound card is disabledPaweł Kołodziejski
svn-id: r5338
2002-10-27Add monster.sog support, patch #629362Travis Howell
Enable ogg support by default in mingw builds and link in ogg lib svn-id: r5333
2002-10-27patch #628997 support for ogg vorbis instead of cd tracks by Daniel ↵Jonathan Gray
Schepler. Uncomment the relevant lines in the makefile to use svn-id: r5320
2002-10-23changing warnings to debug level 2Paweł Kołodziejski
svn-id: r5273
2002-10-23fix -Wshadow warningsMax Horn
svn-id: r5270
2002-10-16compilation fixMax Horn
svn-id: r5158
2002-10-15changes to imusePaweł Kołodziejski
svn-id: r5157
2002-10-15fixPaweł Kołodziejski
svn-id: r5156
2002-10-15Sanity checking to fix crash caused by latest sound commitsJames Brown
svn-id: r5151
2002-10-15changes to soundmixer - added timeout param to streamPaweł Kołodziejski
svn-id: r5149
2002-10-02added panning control in imuse and reverse stereo supportPaweł Kołodziejski
svn-id: r5076
2002-10-02Fix 'isSoundRunning' for Creative samples (eg, Full Throttle)James Brown
svn-id: r5072