aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
AgeCommit message (Collapse)Author
2004-09-28Rename remaining OSystem methods to match our coding guidelinesMax Horn
svn-id: r15332
2004-09-19Fix potential race conditionMax Horn
svn-id: r15191
2004-09-19Actually check if a sound is active, if the sound is outside music engine.Travis Howell
Add some more HE differences svn-id: r15188
2004-09-18smush tracks are not music channel, removed outdated dimuse commentPaweł Kołodziejski
svn-id: r15167
2004-09-04fixde bug IMUSE+DEBUGPaweł Kołodziejski
svn-id: r14892
2004-07-16Applied patch #957544 to make output sample rate configurable at runtime.Torbjörn Andersson
svn-id: r14225
2004-02-28renamed more OSystem methods to follow our naming scheme; renamed ↵Max Horn
NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend svn-id: r13087
2004-02-24the OSystem changes we discussed on the ML (note: renaming of the existing ↵Max Horn
OSystem API is not yet finished); porters will have to fix their ports to get them to compile again svn-id: r13036
2004-02-22Patch #885904 (Flac Support) with some tweaks by meMax Horn
svn-id: r12984
2004-02-12With no comments from fingolfin, and a go-ahead from ender, I've committedTorbjörn Andersson
patch #892455 ("getElapsedTime() for sounds") despite its current shortcomings. It should be good enough for the Broken Sword cutscenes anyway, which is what I'll be looking at next. svn-id: r12829
2004-01-29Renamed the 'pan' effect of the mixer to 'balance', since that is what we ↵Max Horn
actually do; applied patch #886786 which corrects a bug in the balance code svn-id: r12665
2004-01-20No more neededChris Apers
svn-id: r12559
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2004-01-03renamed AudioInputStream -> AudioStreamMax Horn
svn-id: r12110
2004-01-03more MAD MP3 / Ogg Vorbis cleanup: try not to expose anything about the libs ↵Max Horn
used for MP3/Vorbis support -> this eases changing the implementations, and reduces header dependencies (and thus compile time) :-) svn-id: r12097
2004-01-03removed SoundMixer::playMP3CDTrack; simplified makeMP3Stream (special ↵Max Horn
variant with mad_timer_t was really only needed for MP3TrackInfo class) svn-id: r12095
2003-12-27paranoiaMax Horn
svn-id: r11980
2003-12-26add param to playInputStream which makes it possible to retain an input ↵Max Horn
stream even after it has been given to the mixer for playback svn-id: r11933
2003-12-26logic fix: we must do wrap around *before* read, not after. otherwise ↵Max Horn
eosIntern will in some border cases return wrong results; some cleanup svn-id: r11932
2003-12-24o Added SoundMixer::isReady()Max Horn
o Removed SoundMixer::bindToSystem() o In scumm, replaced _silentMixer, _silentDigitalImuse and _noDigitalSamples by SoundMixer::isReady() svn-id: r11893
2003-12-24turned PlayingSoundHandle into an 'opaque' (well not really :-) data type, ↵Max Horn
mainly because people kept (accidentally and sometimes on purpose :-) misusing them svn-id: r11881
2003-12-23Allow sound ID for MP3/Vorbis sounds, too; cleaned up Vorbis playback code a bitMax Horn
svn-id: r11879
2003-12-22Fix warning generated by the incomprehensibly picky MinGW GCC compiler.Torbjörn Andersson
svn-id: r11858
2003-12-22o Got rid of Channel::destroy() method (no more evil 'delete this', plusMax Horn
slightly more efficient) o Fixed potential memory leak in SoundMixer::playRaw o Channel not anymore friend class of SoundMixer o misc cleanup svn-id: r11857
2003-12-21added convenience SoundMixer::playVorbis variant which calls through to ↵Max Horn
playSfxSound_Vorbis; made scumm/queen engines use it svn-id: r11812
2003-12-21Cleaned up SoundMixer::newStream() a bit (I plan to replace all usages of ↵Max Horn
this by playInputStream(), this cleanup eases this a bit) svn-id: r11803
2003-12-21o Make use of the new LinearMemoryStream feature which allows auto-disposing ↵Max Horn
the sound data o This allows us to get rid of the ChannelRaw class o Removed the sound index return value from several methods o Removed all methods dealing with sound indices (i.e. stopChannel and pauseChannel) svn-id: r11801
2003-12-19distinguish between end of stream and end of dataMax Horn
svn-id: r11756
2003-12-19o Moved MP3 and Vorbis input streams to mp3.* resp. vorbis.*Max Horn
o Added SoundMixer::playInputStream and made some of the other play* methods use it o Added ProcInputStream stub (not working yet) which one day may allow us to replace the premix code, and allow other fancy stuff o Remove AudioInputStream::readBuffer default implementation (subclasses should always provide it for max. performance) o Some minor cleanup svn-id: r11754
2003-12-18PalmOS sound API cannot access globals data, StackLock constructor use g_systemChris Apers
svn-id: r11742
2003-12-17Made sure that *all* AudioInputStream 'know' their sample rate; removed ↵Max Horn
pointless MusicStream class; removed various specific Channel subclasses and instead generalized the base class some more svn-id: r11699
2003-12-17cleanupMax Horn
svn-id: r11697
2003-12-17changed the way 'streams' are handled: the finalization logic is now in the ↵Max Horn
WrappedAudioInputStream; this allows further streamlining of the channel/mixer code (can you already guess what I am working towards? :-) svn-id: r11696
2003-12-17some cleanupMax Horn
svn-id: r11694
2003-12-16cleanupMax Horn
svn-id: r11686
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11221
2003-10-25whateverJoost Peters
svn-id: r10959
2003-10-24added extra flag to mixer so we don't use free() on new'd pointersJoost Peters
svn-id: r10958
2003-10-04use namespace Common a bit more; don't zero the RNG in scumm (else the seed ↵Max Horn
gets reset); remove obsolete 256 color blending code svn-id: r10592
2003-09-18changed & documented the premixer semanticsMax Horn
svn-id: r10294
2003-09-16Don't call the premix function when the mixer is paused. (This isTorbjörn Andersson
particularly noticeable in games with PC speaker emulation, but I could hear faint noises in AdLib music as well.) svn-id: r10262
2003-09-10moved declaration of error/warning/debug from engine.h to util.h; added voc.cppMax Horn
svn-id: r10150
2003-09-06removed pauseMixer method from mixer, and renamed stop to stopChannelMax Horn
svn-id: r10042
2003-09-05optimized channel volume/pan handlingMax Horn
svn-id: r10028
2003-09-05moved the sound ID param in playRaw before volume/panMax Horn
svn-id: r10023
2003-09-05oopsMax Horn
svn-id: r10021
2003-09-05cleaned up sound/mixer.h a bit; renamed some mixer methods for consistencyMax Horn
svn-id: r10018
2003-09-05fixes for uninitialized pan and volumePaweł Kołodziejski
svn-id: r9998
2003-09-02remove shadow'd var by using variable name from prototypeJonathan Gray
svn-id: r9979
2003-09-02moved volume and pan control into flow funcPaweł Kołodziejski
svn-id: r9976