aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.cpp
AgeCommit message (Collapse)Author
2010-01-01init _numPlayedLoops inside LinearMemoryStreamMartin Kiewitz
svn-id: r46857
2010-01-01Fix getTotalPlayTime for MP3, FLAC, Vorbis and LinearMemoryStream after the ↵Johannes Schickel
latest loop related changes. svn-id: r46838
2010-01-01Implemented setNumLoops() for common audio streams.Eugene Sandulenko
Implemented getNumPlayedLoops() for common audio streams. Requested by m_kriewitz. svn-id: r46836
2010-01-01Added setNumLoops() for linear memory streams, enables looping of samples in sciMartin Kiewitz
svn-id: r46821
2009-11-03Fix for bug #2890038 (FT: Crashes when entering inventory)Max Horn
svn-id: r45638
2009-08-17Slight cleanup to makeLinearDiskStream interface.Johannes Schickel
svn-id: r43481
2009-08-17Added looping support to LinearDiskStream, needed by SAGA and perhaps other ↵Filippos Karapetis
engines. Note that the loop end parameter is still not implemented svn-id: r43479
2009-08-16Fix for bug #2838568 "AMIGAOS4: Compiler error in audiostream.cpp"Johannes Schickel
svn-id: r43447
2009-08-13Allow VOCs to stream from disk. Disabled by default, use symbol ↵Neil Millstone
STREAM_AUDIO_FROM_DISK to enable. See patch #2834001. svn-id: r43357
2009-05-23Add support for "getTotalPlayTime" in LinearMemoryStream again.Johannes Schickel
svn-id: r40840
2009-01-30do not include common/debug.h from common/util.hMax Horn
svn-id: r36143
2008-12-12Okay, removing my implementation of AppandableAudioStream::getTotalPlayTime ↵Sven Hesse
(I've apparently misunderstood its intent) and using Mixer::getSoundElapsedTime() instead svn-id: r35317
2008-11-17Factoring shared code of template classes into a shared base class saves ↵Max Horn
another 4-7kb code size svn-id: r35104
2008-11-16Implementing getTotalPlayTime() for AppendableMemoryStreamSven Hesse
svn-id: r35098
2008-11-12Verify sanity of LinearMemoryStream params in the factory function instead ↵Max Horn
of the constructor (which is replicated for each instantiation of the LinearMemoryStream template class) -> saves some bytes svn-id: r35014
2008-05-31Avoid some warnings when compiling in non-DEBUG mode (i.e. with assert() ↵Max Horn
disabled) svn-id: r32435
2008-05-24Patch #1970427: AudioStream play length queryingMax Horn
svn-id: r32258
2008-05-07Changed all delete [] usages to delete[].Johannes Schickel
svn-id: r31927
2007-12-21Fix memory leak in audiostream (I think)Neil Millstone
svn-id: r29940
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-06-25Fix for a stupid typo in yesterdays sound fill tweak.Robin Watts
This fixes bug 1743016. Thanks to erictorbjorn and md5 for pointing me at it. svn-id: r27718
2007-06-24Small tweak to the readBuffer routines of sound/audiostream.cpp; by counting aRobin Watts
variable down we save 1 cycle per sample copied (at least) on most architectures. svn-id: r27693
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-04-14Extended Audio::openStreamFile function with startTime, duration and ↵Max Horn
numLoops parameters, and slightly cleaned up its code svn-id: r26471
2007-04-09When the appendable audiostream is done with a queued buffer, delete it asTorbjörn Andersson
documented. svn-id: r26444
2007-03-02Changed the order of the parameters of makeLinearInputStream to resemble ↵Max Horn
Mixer::playRaw; also made makeLinearInputStream honor FLAG_LOOP (and for this, changed its loop related params slightly) svn-id: r25926
2007-03-01Rephrased a comment a bitMax Horn
svn-id: r25914
2007-02-28Changed the AppendableAudioStream code to use a queue of buffers, instead of ↵Max Horn
a fixed size wrap-around memory buffer (this reduces memory usage in some cases by 500-700k, while actually being more flexible) svn-id: r25909
2007-02-28cleanupMax Horn
svn-id: r25906
2007-02-24Changed AudioStream::openStreamFile to use the modern variant of the audio ↵Max Horn
stream factories (thus, the FLAC/Ogg/MP3 files it opens are not read completely into memory anymore) svn-id: r25839
2006-06-19Added assert to audiostream allocation since failure causes serious problemsLars Persson
svn-id: r23184
2006-05-18Added player for the Kyra 3 VQA cutscenes, based on my earlier prototype. ItTorbjörn Andersson
could use some cleanup, and there are a couple of TODOs sprinkled throughout the code, but it seems to work reasonably well. Until the Kyra 3 main menu is implemented, it won't actually be used though. It uses the appendable audio stream class, which I have moved out of the SCUMM engine. svn-id: r22526
2006-04-29Moved the AudioCDManager as well as class AudioStream and its (standard) ↵Max Horn
subclasses to namespace Audio svn-id: r22231
2006-03-29Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 ↵Max Horn
to ~250). Many greetings to eriktorbjorn, and have fun recompiling. svn-id: r21500
2006-03-03It's really 'MPEG', not 'Mpeg'Max Horn
svn-id: r21042
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20515
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-08-10Don't explicity check for tremor and vorbis everywhere andJonathan Gray
require both USE_TREMOR and USE_VORBIS to be defined when using tremor. svn-id: r18642
2005-08-10Rest of the changes required for tremor to actually work.Jonathan Gray
Based on patches against 0.7.1 by Jolan Luff. svn-id: r18641
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-05-10Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' ↵Max Horn
because we already have many classes with that name) svn-id: r18039
2005-05-10Moved class File and the MD5 stuff to namespace CommonMax Horn
svn-id: r18037
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