aboutsummaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2010-04-02Fix bug #2976353 - NIPPON: Sound looping fails (regression). By reverting ↵Travis Howell
47469, since the IFF sound code is only used by the Parallaction game engine. svn-id: r48467
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-03-18COMMON: Move Common::RandomSource to common/random.*Max Horn
svn-id: r48279
2010-03-13Fix our DECLARE_SINGLETON macro to conform to the C++ specs.Johannes Schickel
We need to use a namespace Common { } there to make strict C++ compilers like clang++ and comeau happy. I also added a slight comment about why that is needed to the macro definition and a note that you need to use it from the global namespace. svn-id: r48254
2010-03-12Fix bug #2969282: DW2: Weird "PC SPEAKER-like" sound distortion.Max Horn
svn-id: r48246
2010-03-12This hopefully fixes building on win64.Johannes Schickel
svn-id: r48245
2010-03-12Fix typosMax Horn
svn-id: r48242
2010-03-11MIXER: Change MixerImpl::playInputStream to error out when mixer is not readyMax Horn
My previous commit which tried to support this does not work correctly when using QueuingAudioStream; it then just leads to nasty crashes. Hence I am removing this again for now, until I get around to implement one of the better alternatives. svn-id: r48239
2010-03-11Replace Audio::MixerImpl::setOutputRate with a new 'sampleRate' param to the ↵Max Horn
MixerImpl constructor svn-id: r48238
2010-03-10Remove last traces of OSystem::getOutputSampleRate()Max Horn
svn-id: r48229
2010-03-09Initialise 'releaseAdd' to avoid a Valgrind warning in Write20() when theTorbjörn Andersson
emulator is initialised. svn-id: r48214
2010-03-08Fix bug #2872076 (MIXER: Division by 0 in rate conversion if w/o soundcd)Max Horn
svn-id: r48203
2010-03-08Tweak makeVOCDiskStreamMax Horn
* now takes a SeekableReadStream *pointer* like (almost) all other audiostream factories * fix potential memory leak in it * rename takeOwnershipOfStream to disposeAfterUse for consistency svn-id: r48184
2010-03-08Show an error message in case multiple OPL outputs are created instead of ↵Johannes Schickel
using an assert. The new DBOPL emulator we are using should support multiple instances though. We *might* consider allowing as many instances as the user wants. Of course since the original games only had one OPL chip available, that should not be required. Also just in case we might allow real hardware as playback device that would be out of the question again too. svn-id: r48183
2010-03-08Add a slight comment when the DBOPL sources where synched with DOSBox.Johannes Schickel
svn-id: r48182
2010-03-08Use memset instead of a custom loop for zeroing the sample buffer.Johannes Schickel
svn-id: r48181
2010-03-08Cleanup.Johannes Schickel
svn-id: r48180
2010-03-08Switch to the other DOSBox OPL emulator as suggested by the DOSBox developers.Johannes Schickel
svn-id: r48179
2010-02-26SID: Adding DISABLE_SID option, as SID player embiggens binary by a large ↵Neil Millstone
amount. This is a problem for the DS port. svn-id: r48137
2010-02-23Add assert(!_finished) to QueuingAudioStreamImpl::queueAudioStreamMax Horn
svn-id: r48122
2010-02-23Tweak QueuingAudioStream commentsMax Horn
svn-id: r48121
2010-02-17Fix gcc warning.Johannes Schickel
svn-id: r48077
2010-02-14Add support for samples > 32kb to Paula chip emulation code.Max Horn
In addition, the code got simplified considerably. Its behavior changed slightly due to this, but I think the old behavior was wrong. In any case, this may fix some bugs, or introduce regressions, or both. We'll see ;). svn-id: r48058
2010-02-10Hopefully fixing bug #2948858 "MP3 (CD Audio) Broken under SVN".Johannes Schickel
svn-id: r48032
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-08Fix RawStream::seek implementation.Johannes Schickel
svn-id: r48007
2010-02-06Fix bug in LoopingAudioStream::readBuffer, this makes the unit tests ↵Johannes Schickel
complete without any error. svn-id: r47935
2010-02-03Loosening the 2 samples per channel requirement of Apple_ADPCMStream to 1 ↵Sven Hesse
sample per channel svn-id: r47864
2010-02-03Fix bug in RawStream::getLength for 16bit streams. (Uncovered by our new ↵Johannes Schickel
unit tests yay!) svn-id: r47859
2010-02-03Make makeMP3Stream return 0 on failure too.Johannes Schickel
svn-id: r47848
2010-02-03Yet more Flac -> FLAC changes for consistency.Johannes Schickel
svn-id: r47847
2010-02-03- Rename FlacStream to FLACStream.Johannes Schickel
- Rename makeFlacStream to makeFLACStream. svn-id: r47846
2010-02-03Rename RawAudioStream to RawStream for consistency.Johannes Schickel
svn-id: r47844
2010-02-03Cleanup.Johannes Schickel
svn-id: r47843
2010-02-03Rename:Johannes Schickel
- FlacInputStream -> FlacStream - VorbisInputStream -> VorbisStream - MP3InputStream -> MP3Stream svn-id: r47842
2010-02-03- Return 0 in makeVorbisStream and makeFlacStream, in case creating the ↵Johannes Schickel
stream failed. - Add a TODO in the MP3 code for the same behavior. svn-id: r47841
2010-01-31Further OOify the ADPCM codeMax Horn
svn-id: r47740
2010-01-31Rearrange code of ADPCMStream subclassesMax Horn
svn-id: r47739
2010-01-31Split ADPCMStream into several classesMax Horn
svn-id: r47738
2010-01-31Rename ADPCMInputStream to ADPCMStream; make some members constMax Horn
svn-id: r47737
2010-01-31Switch makeADPCMStream to DisposeAfterUse::FlagMax Horn
svn-id: r47736
2010-01-30Add some TODO item.Johannes Schickel
svn-id: r47721
2010-01-30Add some asserts to the RawAudioStream code.Johannes Schickel
svn-id: r47720
2010-01-30Rename RawDiskStream to RawAudioStream.Johannes Schickel
svn-id: r47718
2010-01-30Remove RawMemoryStream.Johannes Schickel
svn-id: r47717
2010-01-30Get rid of Audio::makeRawMemoryStream_OLD.Johannes Schickel
svn-id: r47715