1392 Commits

Author SHA1 Message Date
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
Max Horn
56dea320e2 Fix (?) looping in IFF FORM-8SVX data
svn-id: r47469
2010-01-23 13:33:08 +00:00
Max Horn
2c71e7b76d cleanup
svn-id: r47468
2010-01-23 13:32:45 +00:00
Max Horn
90d503c74a Clarify that all blocks of raw audio data are assumed to come from malloc()
svn-id: r47438
2010-01-22 14:14:28 +00:00
Max Horn
a8c8763da5 cleanup, typos
svn-id: r47437
2010-01-22 14:13:10 +00:00
Filippos Karapetis
6bbca6ee24 Fixed typos (thanks to salty-horse)
svn-id: r47435
2010-01-22 12:37:06 +00:00
Johannes Schickel
57a4c0b910 Mark Audio::FLAG_LOOP as deprecated.
svn-id: r47432
2010-01-22 08:38:53 +00:00
Max Horn
31e39d221b cleanup
svn-id: r47406
2010-01-20 12:44:37 +00:00
Max Horn
7ea3f6e3ed The Shorten audio decoder doesn't seem to use looping, so use the non-deprecated version of makeRawMemoryStream
svn-id: r47398
2010-01-19 23:51:38 +00:00