1514 Commits

Author SHA1 Message Date
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
Max Horn
dc5e08e623 Move raw audio flags from sound/mixer.h to sound/raw.h
svn-id: r47395
2010-01-19 22:30:33 +00:00
Max Horn
68826c27da Get rid of Mixer::playRaw for good
svn-id: r47394
2010-01-19 22:19:43 +00:00
Torbjörn Andersson
428f8d6955 Fixed some cppcheck warnings.
svn-id: r47393
2010-01-19 20:41:51 +00:00
Max Horn
b227c660c6 Remove loop start/end params from Mixer::playRaw; convert some code from Mixer::playRaw to Mixer::playInputStream
svn-id: r47375
2010-01-19 11:20:58 +00:00
Max Horn
f0a0ed8f9e Get rid of Mixer::FLAG_REVERSE_STEREO; also change SCUMM's iMuse Digital emulation to reverse stereo again, as it once seems to have been intended
svn-id: r47374
2010-01-19 11:19:53 +00:00
Max Horn
557bb394de Get rid of Mixer::FLAG_AUTOFREE.
Also fix several recently introduced new/delete vs. malloc/free mismatches.

svn-id: r47369
2010-01-19 00:56:29 +00:00
Max Horn
69be747621 Move raw audio streams to new header sound/raw.h
svn-id: r47368
2010-01-19 00:54:06 +00:00
Max Horn
349fcd1d71 Rename 'Linear' audio streams to 'raw'
svn-id: r47367
2010-01-19 00:52:41 +00:00
Johannes Schickel
9593b72483 Fix SubSeekableAudioStream for stereo streams.
svn-id: r47352
2010-01-17 23:10:38 +00:00
Johannes Schickel
9458b8a81d Update debug message.
svn-id: r47351
2010-01-17 23:09:40 +00:00
Johannes Schickel
62a2ede60b Fix SubSeekableAudioStream regression from r47226 (i.e. length was calculated as start - end instead of end - start).
svn-id: r47350
2010-01-17 22:52:21 +00:00
Max Horn
7ec2da968c Switch most AudioStream factories to use DisposeAfterUse::Flag
svn-id: r47334
2010-01-16 21:36:08 +00:00
Johannes Schickel
f1439b4fa7 Fix QueuingAudioStreamImpl::endOfStream implementation. This fixes cut off speech in COMI for me.
svn-id: r47316
2010-01-15 23:16:43 +00:00
Johannes Schickel
0d995c5920 Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc.
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)

This commit does not touch "adlib" and "ADLIB" uses!

Also it does not update all the SCUMM detection entries, which still use "Adlib".

svn-id: r47279
2010-01-12 21:07:56 +00:00
Willem Jan Palenstijn
e4aed638b0 Fix loop alignment check
svn-id: r47264
2010-01-12 12:58:48 +00:00
Max Horn
590481b12d Improve support for negative Timestamps, and add + and - operators
svn-id: r47244
2010-01-11 10:17:55 +00:00
Johannes Schickel
27957570bf Typo.
svn-id: r47230
2010-01-10 15:43:42 +00:00
Johannes Schickel
bfed78a5db Add some more comments.
svn-id: r47229
2010-01-10 15:42:22 +00:00
Johannes Schickel
59471e3f43 Fix missing type forward declaration in voc.h.
svn-id: r47228
2010-01-10 15:30:31 +00:00
Johannes Schickel
6ca0570fe3 - Add a SubLoopingAudioStream, which loops a nested part of a stream and 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-10 15:20:14 +00:00
Max Horn
a44c6e4323 Add Mixer::getElapsedTime() method returning a Timestamp, thus offering a higher precision than Mixer::getSoundElapsedTime(). Convert some video code to use it.
svn-id: r47213
2010-01-09 22:37:10 +00:00
Max Horn
4a832ceb01 Fix Timestamp::addMsecs; some cleanup
svn-id: r47212
2010-01-09 22:36:32 +00:00
Johannes Schickel
9c2fa534d1 Implement some safer handling of the "Extended" block in VOC files.
svn-id: r47203
2010-01-09 18:51:25 +00:00
Max Horn
be8371fb07 Replace AppendableAudioStream by QueuingAudioStream
svn-id: r47189
2010-01-09 00:19:13 +00:00
Willem Jan Palenstijn
229c53d485 Use DisposeAfterUse::Flag
svn-id: r47187
2010-01-08 23:05:00 +00:00
Johannes Schickel
b8727aefcc Fix LinearMemoryStream::seek, when the stream was created without request to dispose the memory itself.
svn-id: r47184
2010-01-08 22:14:55 +00:00
Max Horn
f720d99b0a Switch Mixer::playInputStream to use DisposeAfterUse::Flag
svn-id: r47182
2010-01-08 22:09:43 +00:00
Max Horn
474d49946f Rename QueuedAudioStream to QueuingAudioStream
svn-id: r47179
2010-01-08 22:06:04 +00:00