aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
AgeCommit message (Collapse)Author
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
2003-09-02Fixed compiler warning that I introduced earlier.Torbjörn Andersson
svn-id: r9974
2003-09-02Added per-channel pausing. Maybe I should have named the pauseChannel()Torbjörn Andersson
function simply pause() to be consistent with stop(), but there already is a pause() function and I don't want to have two functions with the same name doing different things. (The current pause() function pauses all channels.) svn-id: r9968
2003-09-01forgot thisPaweł Kołodziejski
svn-id: r9957
2003-09-01The channel could be destroyed so changeVolumeAndPan can't access it in that ↵Chris Apers
case svn-id: r9955
2003-08-31added mixer features: volume and pan control per channelPaweł Kołodziejski
svn-id: r9944
2003-08-30revert id handle stuffPaweł Kołodziejski
svn-id: r9927
2003-08-30added func isChannelActive for mixer, and fixed handling numbers of channel 0Paweł Kołodziejski
svn-id: r9924
2003-08-09added SoundMixer::pauseChannels for pausing SFX and keeping adlib music ↵Robert Göffringmann
running (needed by BASS when menu bar drops down) svn-id: r9607
2003-08-06some cleanupMax Horn
svn-id: r9575
2003-08-05some cleanup; added Channel::getVolume, once somebody tells me what exactly ↵Max Horn
is needed, I can add per-channel volume, and also per-channel panning svn-id: r9525
2003-08-05begone, old mixer codeMax Horn
svn-id: r9521
2003-08-05more cleanupMax Horn
svn-id: r9513
2003-08-05more cleanup (like the previous two, I just moved around code, to clearly ↵Max Horn
separate the old and the new mixer code) svn-id: r9479
2003-08-05some more cleanupMax Horn
svn-id: r9478
2003-08-05cleanup; removed some code duplicationMax Horn
svn-id: r9477
2003-08-04renamed eof -> eos (end of stream); hid MP3/Vorbis stream classes completly ↵Max Horn
(by providing factory methods); new readBuffer method for AudioInputStream for improved speed of the mixer; new MusicStream class (subclassed for MP3/Vorbis sound) which offers a getRate method; some other tweaks svn-id: r9467
2003-08-02some more tweaksMax Horn
svn-id: r9424
2003-08-02added FLAG_REVERSE_STEREO supportMax Horn
svn-id: r9416
2003-08-02obsoleteMax Horn
svn-id: r9410
2003-08-02oopsMax Horn
svn-id: r9396
2003-08-02converted ChannelMP3 to use new rate conversion scheme, too. Only thing ↵Max Horn
missing now is FLAG_REVERSE_STEREO support (and of course fixing regressions, and the long term goal is to make resample.cpp usable, too) svn-id: r9395
2003-08-02fix ChannelMP3CDMusic volume, too :-)Max Horn
svn-id: r9393
2003-08-02fix Vorbis music volumeMax Horn
svn-id: r9392
2003-08-02disable debug outputMax Horn
svn-id: r9390
2003-08-01let the input stream handle the looping (by pretending to be of infinite ↵Max Horn
size -> this fixes a problem which cause 'gaps' at loop turn-over points) svn-id: r9379
2003-08-01implemented raw sound looping; some debug output enabled temporarilyMax Horn
svn-id: r9360
2003-07-31get rid of BUGGY_NEW_MP3_PLAYERMax Horn
svn-id: r9347
2003-07-31revamped MP3/Vorbis CD 'emulation' code to use a PlayingSoundHandle -> this ↵Max Horn
allows to finally get rid of the hackish isChannelActive/isChannelUsed methods in SoundMixer svn-id: r9346
2003-07-31make use of the new MP3InputStream in ChannelMP3CDMusic - but disabled by ↵Max Horn
default, because it is still quite buggy (e.g. crashes at end of stream etc) svn-id: r9314
2003-07-31cleanupMax Horn
svn-id: r9312