aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.cpp
AgeCommit message (Collapse)Author
2010-01-11Improve support for negative Timestamps, and add + and - operatorsMax Horn
svn-id: r47244
2010-01-10- Add a SubLoopingAudioStream, which loops a nested part of a stream and ↵Johannes Schickel
thus features the same looping capabilites as LinearMemoryStream and LinearDiskStream. - Remove custom looping code from LinearMemoryStream and LinearDiskStream. - Adapt various client code to the changes. svn-id: r47226
2010-01-09Replace AppendableAudioStream by QueuingAudioStreamMax Horn
svn-id: r47189
2010-01-08Fix LinearMemoryStream::seek, when the stream was created without request to ↵Johannes Schickel
dispose the memory itself. svn-id: r47184
2010-01-08Rename QueuedAudioStream to QueuingAudioStreamMax Horn
svn-id: r47179
2010-01-08Move Mohawk's QueuedAudioStream to sound/ (with some tweaks)Max Horn
svn-id: r47177
2010-01-08Add some warning inside makeLoopingAudioStream, in case the give start time ↵Johannes Schickel
is after the given end time. svn-id: r47162
2010-01-08Add another makeLoopingAudioStream factory for transparently looping a ↵Johannes Schickel
certain interval of a SeekableAudioStream. svn-id: r47159
2010-01-07Cleanup.Johannes Schickel
svn-id: r47139
2010-01-07Fix a little bug in LoopingAudioStream::readBuffer.Johannes Schickel
svn-id: r47138
2010-01-07Remove setNumLoops and getNumPlayedLoops from AudioStream.Johannes Schickel
svn-id: r47137
2010-01-07Create a wrapper makeLoopingAudioStream to reduce code duplcation.Johannes Schickel
svn-id: r47128
2010-01-07Get rid of calculatePlayTime, instead store playtimes as TimestampsMax Horn
svn-id: r47122
2010-01-07Add Timestamp::totalNumberOfFrames() method, clarify some commentsMax Horn
svn-id: r47120
2010-01-07First step of a slight revision of the new AudioStream looping API:Johannes Schickel
- Create a RewinadableAudioStream, for streams which can only be reset to the start - Create a LoopableAudioStream, which loops a whole RewindableAudioStream - Make SeekableAudioStream a subclass of RewindableAudioStream - Create a SubSeekableAudioStream, which allows of limiting the range of an SeekableAudioStream to be played. - Adapt AudioCD code. svn-id: r47109
2010-01-06Rename some Timestamp methods: getNumberOfFrames -> numberOfFrames and ↵Max Horn
getFramerate -> framerate svn-id: r47083
2010-01-06- Simplify Audio::calculateSampleOffset.Johannes Schickel
- Made Audio::calculateSampleOffset accessable from outside audiostream.cpp. - Adapt KYRA's AUDStream to use Audio::calculateSampleOffset. svn-id: r47082
2010-01-06- Move openStreamFile from AudioStream to SeekableAudioStream.Johannes Schickel
- Fix documentation of openStreamFile. svn-id: r47080
2010-01-06Change the AudioStream::openStreamFile API to return SeekableAudioStreams ↵Johannes Schickel
and remove parameter for depreacted loop support. (We could consider moving this to SeekableAudioStream). svn-id: r47065
2010-01-05Remove unsafe getTotalPlayTime from AudioStream.Johannes Schickel
svn-id: r47037
2010-01-05Add a "getLength" function to SeekableAudioStream.Johannes Schickel
svn-id: r47036
2010-01-05- Add a new SeekableAudioStream interface. Soon to be used to replace audio ↵Johannes Schickel
stream specific looping code by generic code in Mixer... - Adapted some existing AudioStreams to implement that interface (not tested!) svn-id: r47013
2010-01-01Properly reset _numPlayedLoops in setNumLoops in all AudioStream ↵Johannes Schickel
implementations implementing setNumLoops. svn-id: r46861
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