aboutsummaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2003-07-07#include scummsys.h so that our custome free() gets usedMax Horn
svn-id: r8849
2003-07-06mix() is really a private method, only to be called by the audio thread; ↵Max Horn
cover setupPremix by the mutex, too (that helps preventing race conditions upon exit) svn-id: r8809
2003-07-06now that we mutex-protect everything properly, we can get rid of ↵Max Horn
_toBeDestroyed; also, instead of keeping a global _handles array in the mixer, let each Channel manage its own handle svn-id: r8808
2003-07-06the mutex must be locked by everything which might access _channels while ↵Max Horn
the mixer thread is running, because the mixer thread may modify _channels svn-id: r8805
2003-07-06More fixes from HibernatusTravis Howell
svn-id: r8792
2003-07-06cleanup to the mixer helper proc interface and to ChannelStreamMax Horn
svn-id: r8785
2003-07-05protect calls to insertChannel with mutex, too (and switch to using StackLock)Max Horn
svn-id: r8782
2003-07-05updated code to use type MutexRef; added class StackLock (from sdl backend, ↵Max Horn
now in util.*) svn-id: r8777
2003-07-05hack for proper compile for vc6, why I need this ?Paweł Kołodziejski
svn-id: r8763
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-21make gcc happyJonathan Gray
svn-id: r8583
2003-06-18Fix for bug [756555] ALL: With '-ewindows' notes don't stop at quitJamieson Christian
and bug [755176] SIMON2: Hanging notes More cleanup of the thread issues associated with iMuse and MidiParser shutdown. Untested. svn-id: r8546
2003-06-18Use stdafx.h instead of manually including system headers.Marcus Comstedt
svn-id: r8541
2003-06-15more cleanupMax Horn
svn-id: r8497
2003-06-11fixed cast warningsMax Horn
svn-id: r8435
2003-06-11Fixed post-mortem attempts to transmit MIDI dataJamieson Christian
svn-id: r8433
2003-06-11Fixed race condition in MPU401 shutdownJamieson Christian
svn-id: r8432
2003-06-09use clear_sound_proc to properly deinit the mixer (this fixes a crash-on-exit)Max Horn
svn-id: r8410
2003-06-01Made some conversions explicit to prevent VC.NET 2003 from complainingBertrand Augereau
svn-id: r8254
2003-06-01Fixed hanging notes on Smart Jump when Note Off event cannot be found.Jamieson Christian
(I'm not sure why the Note Off would not be found, but at least we're properly dealing with such notes now.) svn-id: r8250
2003-06-01Documentation correctionsJamieson Christian
svn-id: r8224
2003-06-01Some last SysEx cleanup.Jamieson Christian
svn-id: r8223
2003-05-31Some Doxygen documentation. Just to test.Jamieson Christian
svn-id: r8195
2003-05-29more OSystem docs & cleanupMax Horn
svn-id: r8118
2003-05-29added TODO: get rid of create_threadMax Horn
svn-id: r8115
2003-05-25Fixed occassional music crashes when loading games.Jamieson Christian
Thanks to eriktorbjorn for finding this issue. svn-id: r7959
2003-05-24allNotesOff() now sends to all 16 channels, not just the first 15. Duh.Jamieson Christian
svn-id: r7899
2003-05-23fixed nasty deadlock I recently introducedMax Horn
svn-id: r7867
2003-05-23Fixed problem with hanging notes on some synth modules.Jamieson Christian
Various little MidiParser fixes. svn-id: r7863
2003-05-23Fixed tempo problems in Simon gamesJamieson Christian
svn-id: r7853
2003-05-23Removed annoying warningJamieson Christian
svn-id: r7851
2003-05-23Fixed gcc warningJamieson Christian
svn-id: r7850