Commit Graph

1400 Commits

Author SHA1 Message Date
Johannes Schickel
2ddfdd960c Hopefully fixing bug #2948858 "MP3 (CD Audio) Broken under SVN".
svn-id: r48032
2010-02-10 16:34:32 +00:00
Johannes Schickel
52af1b3884 Formatting.
svn-id: r48023
2010-02-09 22:03:59 +00:00
Johannes Schickel
e7d6d44e86 Be a bit more forgiveful in case the SeekableAudioStream passed to 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-09 22:03:02 +00:00
Johannes Schickel
b097e8635c Stop SubLoopingAudioStream playback, in case reading from the parent stream fails.
svn-id: r48021
2010-02-09 21:52:46 +00:00
Johannes Schickel
6a624df560 Make Audio::convertTimeToStreamPos return a frame-precision based result instead of a sub-frame-precision based result. This fixes the SubLoopingAudioStream tests.
svn-id: r48020
2010-02-09 21:52:27 +00:00
Johannes Schickel
f6aa8d0068 Fix SubLoopingAudioStream's readBuffer implementation.
svn-id: r48018
2010-02-09 21:51:47 +00:00
Johannes Schickel
18f6ac4776 Fix RawStream::seek implementation.
svn-id: r48007
2010-02-08 21:24:47 +00:00
Johannes Schickel
b431e700d8 Fix bug in LoopingAudioStream::readBuffer, this makes the unit tests complete without any error.
svn-id: r47935
2010-02-06 16:42:15 +00:00
Sven Hesse
51d0365818 Loosening the 2 samples per channel requirement of Apple_ADPCMStream to 1 sample per channel
svn-id: r47864
2010-02-03 19:55:14 +00:00
Johannes Schickel
6312b690de Fix bug in RawStream::getLength for 16bit streams. (Uncovered by our new unit tests yay!)
svn-id: r47859
2010-02-03 15:45:54 +00:00
Johannes Schickel
d32dfa3bb3 Make makeMP3Stream return 0 on failure too.
svn-id: r47848
2010-02-03 09:47:29 +00:00
Johannes Schickel
8ae24a27b3 Yet more Flac -> FLAC changes for consistency.
svn-id: r47847
2010-02-03 09:42:40 +00:00
Johannes Schickel
fe35d372da - Rename FlacStream to FLACStream.
- Rename makeFlacStream to makeFLACStream.

svn-id: r47846
2010-02-03 09:42:11 +00:00
Johannes Schickel
e7d5849ac8 Rename RawAudioStream to RawStream for consistency.
svn-id: r47844
2010-02-03 09:19:16 +00:00
Johannes Schickel
286786b6af Cleanup.
svn-id: r47843
2010-02-03 09:11:55 +00:00
Johannes Schickel
9c1a42f9f5 Rename:
- FlacInputStream -> FlacStream
 - VorbisInputStream -> VorbisStream
 - MP3InputStream -> MP3Stream

svn-id: r47842
2010-02-03 08:59:10 +00:00
Johannes Schickel
c040eeca44 - Return 0 in makeVorbisStream and makeFlacStream, in case creating the stream failed.
- Add a TODO in the MP3 code for the same behavior.

svn-id: r47841
2010-02-03 08:58:52 +00:00
Max Horn
20f8503c23 Further OOify the ADPCM code
svn-id: r47740
2010-01-31 02:14:11 +00:00
Max Horn
7f2f9a8117 Rearrange code of ADPCMStream subclasses
svn-id: r47739
2010-01-31 02:13:38 +00:00
Max Horn
f3322bb1c8 Split ADPCMStream into several classes
svn-id: r47738
2010-01-31 02:12:59 +00:00
Max Horn
17ec0a8402 Rename ADPCMInputStream to ADPCMStream; make some members const
svn-id: r47737
2010-01-31 02:12:33 +00:00
Max Horn
21e1cc4cf8 Switch makeADPCMStream to DisposeAfterUse::Flag
svn-id: r47736
2010-01-31 02:11:41 +00:00
Johannes Schickel
5539f0d358 Add some TODO item.
svn-id: r47721
2010-01-30 15:38:31 +00:00
Johannes Schickel
3125dfe66e Add some asserts to the RawAudioStream code.
svn-id: r47720
2010-01-30 15:37:20 +00:00
Johannes Schickel
75ba7ee0f8 Rename RawDiskStream to RawAudioStream.
svn-id: r47718
2010-01-30 15:29:48 +00:00
Johannes Schickel
3cc0ef6c1c Remove RawMemoryStream.
svn-id: r47717
2010-01-30 15:28:07 +00:00
Johannes Schickel
8e3646e062 Get rid of Audio::makeRawMemoryStream_OLD.
svn-id: r47715
2010-01-30 15:19:15 +00:00
Johannes Schickel
523181d719 Add a factory which plays audio from a buffer via RawDiskStream.
svn-id: r47714
2010-01-30 15:18:25 +00:00
Johannes Schickel
ec3f58e626 - Mark makeRawDiskStream factory as deprecated.
- Introduce two new makeRawStream factories, one is using RawStreamBlockList instead of an RawDiskStreamAudioBlock array.

svn-id: r47713
2010-01-30 15:17:57 +00:00
Johannes Schickel
17cebab354 Change RawDiskStream to use a Common::List to store its blocks internally.
svn-id: r47712
2010-01-30 15:16:55 +00:00
Johannes Schickel
347a974609 Add some paranaoia assert (and a related TODO) to the MSIMA2 implementation.
svn-id: r47652
2010-01-28 21:05:10 +00:00
Johannes Schickel
0417c0ab88 Fix seek implementation of our Vorbis stream.
svn-id: r47635
2010-01-28 09:44:21 +00:00
Max Horn
1c906a1f08 Hide VagStream implementation, only expose it via a factory method
svn-id: r47634
2010-01-28 09:38:21 +00:00
Johannes Schickel
23f9891749 Fix MP3 playback speed.
svn-id: r47632
2010-01-28 09:15:58 +00:00
Johannes Schickel
7e1051d8ec Fix seeking in FLAC implementation (FLAC's API uses the number of sample pairs, not the number of samples).
svn-id: r47593
2010-01-27 08:41:08 +00:00
Filippos Karapetis
8606982590 Moved the Shorten decoder inside the SAGA engine, as it's the only one using it (and it's still unfinished, too)
svn-id: r47592
2010-01-27 08:40:48 +00:00
Johannes Schickel
812603e29e Fix invalid sample position on Timestamp to sample conversion for Stereo streams.
svn-id: r47591
2010-01-27 08:08:33 +00:00
Max Horn
77fe0215cd Remove outdated comments
svn-id: r47582
2010-01-26 22:52:08 +00:00
Max Horn
1565f14bc1 Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
svn-id: r47579
2010-01-26 22:48:45 +00:00
Johannes Schickel
98fb67ed20 - Remove "(experimental)" mark from DOSBox OPL emulator description in GUI
- Merge in some small OPL emulator changes from DOSBox's trunk

svn-id: r47546
2010-01-25 02:48:35 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Johannes Schickel
ec14cd6e6a Formatting.
svn-id: r47540
2010-01-25 01:27:14 +00:00
Johannes Schickel
bfcdbae648 Change some comments to use "AdLib" instead of "adlib".
svn-id: r47534
2010-01-25 00:39:46 +00:00
Johannes Schickel
69071078b3 Replace some more Adlib uses by AdLib.
svn-id: r47530
2010-01-25 00:13:32 +00:00
Max Horn
4b996e7de7 Reorder params to Audio::makeRawMemoryStream
svn-id: r47492
2010-01-23 23:55:35 +00:00
Arnaud Boutonné
1f79fd5788 Some more header modifications ("Graphic Adventure Engine" and the legal property paragraph)
svn-id: r47489
2010-01-23 22:50:24 +00:00
Max Horn
f189cc39fc Get rid of FLAG_LOOP
svn-id: r47473
2010-01-23 13:34:59 +00:00
Max Horn
b036392a7b Get rid of deprecated makeRawDiskStream variants; rename deprecated makeRawMemoryStream variant to makeRawMemoryStream_OLD; adapt some code to this change
svn-id: r47472
2010-01-23 13:34:29 +00:00
Max Horn
7eb407be80 Cleanup raw looping code
svn-id: r47471
2010-01-23 13:33:45 +00:00
Max Horn
af536542ed Let the 8SVX code directly instantiate a SubLoopingAudioStream
svn-id: r47470
2010-01-23 13:33:27 +00:00