aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.cpp
AgeCommit message (Collapse)Author
2005-01-09cleanupMax Horn
svn-id: r16500
2005-01-09Moving AppendableAudioStream into SCUMM engine, as it is only used thereMax Horn
svn-id: r16494
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-11-27Removed the (highly SCUMM specific) 'appendable stream' API from SoundMixer; ↵Max Horn
SCUMM now uses the appendable stream directly svn-id: r15919
2004-11-27AudioStream::read() has been removed quite some time ago, now making sure ↵Max Horn
that change is reflected everywhere svn-id: r15911
2004-10-11Implement premix proc via an AudioStream / Channel (eventually we'll remove ↵Max Horn
the setupPremix method which takes a proc pointer) svn-id: r15522
2004-10-09Make AppendableAudioStream endianness-aware.Eugene Sandulenko
svn-id: r15491
2004-09-25Remove obsolete path paramMax Horn
svn-id: r15278
2004-07-11Use extrapath in Sword1 engine (from 0.6.0 branch). More verbose errors to ↵James Brown
go with the forthcoming new manual. Sword1 CD swapping doesn't work as expected HERE, either :) svn-id: r14188
2004-07-01getFreeSpace() is not longer usedPaweł Kołodziejski
svn-id: r14136
2004-06-28Make use of new File refcount code; also fixed long standing bug in vorbis ↵Max Horn
code (ov_clear was not being called, resulting in a file not being closed) svn-id: r14107
2004-06-09Fixed a typo in a comment.Torbjörn Andersson
svn-id: r13948
2004-04-26synced code free space with buffer changesPaweł Kołodziejski
svn-id: r13646
2004-04-25delete CustomProcInputStream and add getFreeSpace for appendable audiostreamPaweł Kołodziejski
svn-id: r13629
2004-04-13added CustomProcInputStreamPaweł Kołodziejski
svn-id: r13570
2004-02-22Patch #885904 (Flac Support) with some tweaks by meMax Horn
svn-id: r12984
2004-02-08Change AppendableMemoryStream overflows to debug messages, so people stop ↵James Brown
believing them to be the cause of errors in bug reports :P svn-id: r12775
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2004-01-03renamed AudioInputStream -> AudioStreamMax Horn
svn-id: r12110
2004-01-03simplification (possible since read() doesn't have to be efficient anymore)Max Horn
svn-id: r12103
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-21Rewrote make*Stream factory functions to work around bug in MSVC6 (see bug ↵Max Horn
report #860067); added some comments; LinearMemoryStream now can auto-dispose the data passed to it svn-id: r11798
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-19fix for recent audio stream regressionMax Horn
svn-id: r11752
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-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-16added mixer flag for little endian samplesRobert Göffringmann
svn-id: r11665
2003-12-09small tweak/fix (?)Max Horn
svn-id: r11541
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11221
2003-09-18moved engine.* to base; this fixes some linking issues when building a ↵Max Horn
barebone ScummVM (or maybe I just want to increase our CVS stats? <g>) svn-id: r10287
2003-09-09Up debug level of this warning, since it floods output in loomTravis Howell
svn-id: r10131
2003-08-24small cleanup for the Ogg playback codeMax Horn
svn-id: r9852
2003-08-07my code was actually right. Rather the calling code is evil, it passes us ↵Max Horn
odd buffer sizes for 16 bit audio data, which of course made no sense -> I added some asserts against this svn-id: r9590
2003-08-07replace code in readBuffer by slightly less efficient but hopefully working ↵Max Horn
code (at least it fixes an endless loop in COMI for me). I did fix the originaly bug in my optimization, and right now I clueless as to why that code isn't working as it should <sigh>. Need sleep svn-id: r9588
2003-08-06Added comment to new macroJamieson Christian
svn-id: r9581
2003-08-06Changed readSample template functionJamieson Christian
to Fingolfin's new READSAMPLE macro. Circumvents buggy template function handling in MSVC6. Props to Fingolfin for tracking this bug down by remote. svn-id: r9580
2003-08-06Fixed type mismatch error compiling palmos portChris Apers
svn-id: r9552
2003-08-05more cleanupMax Horn
svn-id: r9513
2003-08-05cleanupMax Horn
svn-id: r9512
2003-08-05fix bug #783423Max Horn
svn-id: r9484
2003-08-05and finally VorbisInputStream::readBuffer. Once we verified the new ↵Max Horn
readBuffer methods all work, we can get rid of readIntern again and merge those back into the regular read() methods svn-id: r9476
2003-08-05optimized MP3InputStream::readBuffer (once more, I won't gurantee for ↵Max Horn
correctness although it seems to work fine over here) svn-id: r9475
2003-08-05simplified code a bitMax Horn
svn-id: r9474
2003-08-05optimized WrappedMemoryStream::readBuffer (It's almost 3 AM, so I don't ↵Max Horn
trust myself, hence I'll leave this as an #ifdef for now :-) svn-id: r9473
2003-08-05catch one potential problem, namely if eos is already reached when ↵Max Horn
readBuffer is called ('This should never happen anyway', famous last words) svn-id: r9472
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-04fixed EOF handling of MP3 streams (subtract time from duration timer, ↵Max Horn
instead of adding it...) svn-id: r9464