aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.cpp
AgeCommit message (Collapse)Author
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-23Add assert(!_finished) to QueuingAudioStreamImpl::queueAudioStreamMax Horn
svn-id: r48122
2010-02-09Formatting.Johannes Schickel
svn-id: r48023
2010-02-09Be a bit more forgiveful in case the SeekableAudioStream passed to ↵Johannes Schickel
SubLoopingAudioStream does not allow reading the requested sample count at once (i.e. do not tread that as error, unless endOfData() is set). svn-id: r48022
2010-02-09Stop SubLoopingAudioStream playback, in case reading from the parent stream ↵Johannes Schickel
fails. svn-id: r48021
2010-02-09Make Audio::convertTimeToStreamPos return a frame-precision based result ↵Johannes Schickel
instead of a sub-frame-precision based result. This fixes the SubLoopingAudioStream tests. svn-id: r48020
2010-02-09Fix SubLoopingAudioStream's readBuffer implementation.Johannes Schickel
svn-id: r48018
2010-02-06Fix bug in LoopingAudioStream::readBuffer, this makes the unit tests ↵Johannes Schickel
complete without any error. svn-id: r47935
2010-02-03- Rename FlacStream to FLACStream.Johannes Schickel
- Rename makeFlacStream to makeFLACStream. svn-id: r47846
2010-01-30Remove RawMemoryStream.Johannes Schickel
svn-id: r47717
2010-01-27Fix invalid sample position on Timestamp to sample conversion for Stereo ↵Johannes Schickel
streams. svn-id: r47591
2010-01-26Moved audio stream implementations (for MP3, FLAC, etc.) to new dir ↵Max Horn
sound/decoders/ svn-id: r47579
2010-01-25Formatting.Johannes Schickel
svn-id: r47540
2010-01-23Reorder params to Audio::makeRawMemoryStreamMax Horn
svn-id: r47492
2010-01-23Get rid of FLAG_LOOPMax Horn
svn-id: r47473
2010-01-23Get rid of deprecated makeRawDiskStream variants; rename deprecated ↵Max Horn
makeRawMemoryStream variant to makeRawMemoryStream_OLD; adapt some code to this change svn-id: r47472
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-17Fix SubSeekableAudioStream for stereo streams.Johannes Schickel
svn-id: r47352
2010-01-17Update debug message.Johannes Schickel
svn-id: r47351
2010-01-17Fix SubSeekableAudioStream regression from r47226 (i.e. length was ↵Johannes Schickel
calculated as start - end instead of end - start). svn-id: r47350
2010-01-16Switch most AudioStream factories to use DisposeAfterUse::FlagMax Horn
svn-id: r47334
2010-01-15Fix QueuingAudioStreamImpl::endOfStream implementation. This fixes cut off ↵Johannes Schickel
speech in COMI for me. svn-id: r47316
2010-01-12Fix loop alignment checkWillem Jan Palenstijn
svn-id: r47264
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