aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.h
AgeCommit message (Collapse)Author
2010-11-05AUDIO: Remove obsolete comment.Johannes Schickel
svn-id: r54098
2010-06-15Some documentation cleanup to ease readability.Johannes Schickel
svn-id: r49867
2010-06-09Rewind the underlying audio stream on LoopingAudioStream creation.Johannes Schickel
Also mention in the documentation that both LoopingAudioStream and SubLoopingAudioStream do rewind the underlying in their constructor. svn-id: r49539
2010-03-22Fix for bug #2969211 "NIPPON: Crash in Intro".Johannes Schickel
It is not a good idea to supply an SubLoopingAudioStream with the start and end time to be exactly the same time. Clarify that in the SubLoopingAudioStream documentation, add an assert in the SubLoopingAudioStream constructor for that case and also prevent make8SVXStream from doing so. svn-id: r48356
2010-02-23Tweak QueuingAudioStream commentsMax Horn
svn-id: r48121
2010-01-27Fix invalid sample position on Timestamp to sample conversion for Stereo ↵Johannes Schickel
streams. svn-id: r47591
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-22Clarify that all blocks of raw audio data are assumed to come from malloc()Max Horn
svn-id: r47438
2010-01-22cleanup, typosMax Horn
svn-id: r47437
2010-01-22Fixed typos (thanks to salty-horse)Filippos Karapetis
svn-id: r47435
2010-01-19Get rid of Mixer::FLAG_AUTOFREE.Max Horn
Also fix several recently introduced new/delete vs. malloc/free mismatches. svn-id: r47369
2010-01-19Move raw audio streams to new header sound/raw.hMax Horn
svn-id: r47368
2010-01-19Rename 'Linear' audio streams to 'raw'Max Horn
svn-id: r47367
2010-01-16Switch most AudioStream factories to use DisposeAfterUse::FlagMax Horn
svn-id: r47334
2010-01-11Improve support for negative Timestamps, and add + and - operatorsMax Horn
svn-id: r47244
2010-01-10Add some more comments.Johannes Schickel
svn-id: r47229
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-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 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-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-07Add Timestamp::totalNumberOfFrames() method, clarify some commentsMax Horn
svn-id: r47120
2010-01-07Add important note for engine authors about SubSeekableAudioStream.Johannes Schickel
svn-id: r47114
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-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-01Mention in documentation of AudioStream::setNumLoops, that this function ↵Johannes Schickel
also resets the number of loops played counter. svn-id: r46862
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-01Extend doxygen comment for setNumLoops()Eugene Sandulenko
svn-id: r46832
2010-01-01Adding setNumLoops() to AudioStream classMartin Kiewitz
svn-id: r46819
2009-10-18cleanupMax Horn
svn-id: r45236
2009-08-17Slight cleanup to makeLinearDiskStream interface.Johannes Schickel
svn-id: r43481
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-03-04Added Audio::Timestamp class, based on SCI's sfx_timestamp_t; also provide a ↵Max Horn
unit test for it, based on the old (and very outdated) timetest.cpp. To be used by Audio::Mixer one day... svn-id: r39112
2008-05-24Made AudioStream::getTotalPlayTime virtual (Ooops :-)Johannes Schickel
svn-id: r32261
2008-05-24Patch #1970427: AudioStream play length queryingMax Horn
svn-id: r32258
2008-04-20Fixed comments.Torbjörn Andersson
svn-id: r31625
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
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-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-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