aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.cpp
AgeCommit message (Collapse)Author
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
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