Max Horn
45308a2bd5
Fix for bug #2890038 (FT: Crashes when entering inventory)
...
svn-id: r45638
2009-11-03 20:49:53 +00:00
Johannes Schickel
516dd5c9a4
Slight cleanup to makeLinearDiskStream interface.
...
svn-id: r43481
2009-08-17 13:49:56 +00:00
Filippos Karapetis
76a339ecd0
Added looping support to LinearDiskStream, needed by SAGA and perhaps other engines. Note that the loop end parameter is still not implemented
...
svn-id: r43479
2009-08-17 13:16:40 +00:00
Johannes Schickel
582eb13fa2
Fix for bug #2838568 "AMIGAOS4: Compiler error in audiostream.cpp"
...
svn-id: r43447
2009-08-16 17:38:09 +00:00
Neil Millstone
a135a7f938
Allow VOCs to stream from disk. Disabled by default, use symbol STREAM_AUDIO_FROM_DISK to enable. See patch #2834001 .
...
svn-id: r43357
2009-08-13 21:46:41 +00:00
Johannes Schickel
dfb6ca6bae
Add support for "getTotalPlayTime" in LinearMemoryStream again.
...
svn-id: r40840
2009-05-23 23:49:47 +00:00
Max Horn
341bc64aaf
do not include common/debug.h from common/util.h
...
svn-id: r36143
2009-01-30 05:25:17 +00:00
Sven Hesse
052e83cd24
Okay, removing my implementation of AppandableAudioStream::getTotalPlayTime (I've apparently misunderstood its intent) and using Mixer::getSoundElapsedTime() instead
...
svn-id: r35317
2008-12-12 17:12:05 +00:00
Max Horn
1067a2ec77
Factoring shared code of template classes into a shared base class saves another 4-7kb code size
...
svn-id: r35104
2008-11-17 11:09:23 +00:00
Sven Hesse
b1fa413ed4
Implementing getTotalPlayTime() for AppendableMemoryStream
...
svn-id: r35098
2008-11-16 20:34:31 +00:00
Max Horn
0c501d303f
Verify sanity of LinearMemoryStream params in the factory function instead of the constructor (which is replicated for each instantiation of the LinearMemoryStream template class) -> saves some bytes
...
svn-id: r35014
2008-11-12 12:25:26 +00:00
Max Horn
63cb8227d3
Avoid some warnings when compiling in non-DEBUG mode (i.e. with assert() disabled)
...
svn-id: r32435
2008-05-31 19:35:37 +00:00
Max Horn
68fd8b74b0
Patch #1970427 : AudioStream play length querying
...
svn-id: r32258
2008-05-24 22:41:15 +00:00
Johannes Schickel
600ab40bca
Changed all delete [] usages to delete[].
...
svn-id: r31927
2008-05-07 14:31:45 +00:00
Neil Millstone
df33fdd79e
Fix memory leak in audiostream (I think)
...
svn-id: r29940
2007-12-21 18:28:59 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Robin Watts
b53cebe62d
Fix for a stupid typo in yesterdays sound fill tweak.
...
This fixes bug 1743016. Thanks to erictorbjorn and md5 for pointing me at it.
svn-id: r27718
2007-06-25 21:09:08 +00:00
Robin Watts
997253fe6a
Small tweak to the readBuffer routines of sound/audiostream.cpp; by counting a
...
variable down we save 1 cycle per sample copied (at least) on most
architectures.
svn-id: r27693
2007-06-24 17:42:36 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
8f5abc1924
Extended Audio::openStreamFile function with startTime, duration and numLoops parameters, and slightly cleaned up its code
...
svn-id: r26471
2007-04-14 17:12:43 +00:00
Torbjörn Andersson
c51e87fdac
When the appendable audiostream is done with a queued buffer, delete it as
...
documented.
svn-id: r26444
2007-04-09 19:49:03 +00:00
Max Horn
029b8c4323
Changed the order of the parameters of makeLinearInputStream to resemble Mixer::playRaw; also made makeLinearInputStream honor FLAG_LOOP (and for this, changed its loop related params slightly)
...
svn-id: r25926
2007-03-02 15:26:22 +00:00
Max Horn
6ee03e91c7
Rephrased a comment a bit
...
svn-id: r25914
2007-03-01 13:51:04 +00:00
Max Horn
8c8abca6f8
Changed the AppendableAudioStream code to use a queue of buffers, instead of a fixed size wrap-around memory buffer (this reduces memory usage in some cases by 500-700k, while actually being more flexible)
...
svn-id: r25909
2007-02-28 14:48:26 +00:00
Max Horn
6be027afab
cleanup
...
svn-id: r25906
2007-02-28 12:54:59 +00:00
Max Horn
7f09562d08
Changed AudioStream::openStreamFile to use the modern variant of the audio stream factories (thus, the FLAC/Ogg/MP3 files it opens are not read completely into memory anymore)
...
svn-id: r25839
2007-02-24 23:53:35 +00:00
Lars Persson
67d58ec4bb
Added assert to audiostream allocation since failure causes serious problems
...
svn-id: r23184
2006-06-19 21:08:34 +00:00
Torbjörn Andersson
2531fd5873
Added player for the Kyra 3 VQA cutscenes, based on my earlier prototype. It
...
could use some cleanup, and there are a couple of TODOs sprinkled throughout
the code, but it seems to work reasonably well. Until the Kyra 3 main menu is
implemented, it won't actually be used though.
It uses the appendable audio stream class, which I have moved out of the SCUMM
engine.
svn-id: r22526
2006-05-18 21:46:07 +00:00
Max Horn
27307acd7c
Moved the AudioCDManager as well as class AudioStream and its (standard) subclasses to namespace Audio
...
svn-id: r22231
2006-04-29 22:33:31 +00:00
Max Horn
8cdee5a931
Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 to ~250). Many greetings to eriktorbjorn, and have fun recompiling.
...
svn-id: r21500
2006-03-29 15:59:37 +00:00
Max Horn
5833b3b0aa
It's really 'MPEG', not 'Mpeg'
...
svn-id: r21042
2006-03-03 15:46:39 +00:00
Max Horn
406703148f
Change CVS keywords to SVN keywords
...
svn-id: r20515
2006-02-11 10:05:31 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Jonathan Gray
603a5e4d6f
Don't explicity check for tremor and vorbis everywhere and
...
require both USE_TREMOR and USE_VORBIS to be defined when
using tremor.
svn-id: r18642
2005-08-10 12:42:56 +00:00
Jonathan Gray
3c1b5648ae
Rest of the changes required for tremor to actually work.
...
Based on patches against 0.7.1 by Jolan Luff.
svn-id: r18641
2005-08-10 06:16:26 +00:00
Eugene Sandulenko
6b4484472b
Remove trailing whitespaces.
...
svn-id: r18604
2005-07-30 21:11:48 +00:00
Max Horn
8b1d7b9166
When including files from common/, explicitly use the common/ prefix
...
svn-id: r18444
2005-06-24 15:23:51 +00:00
Max Horn
1a615346ab
Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' because we already have many classes with that name)
...
svn-id: r18039
2005-05-10 23:48:48 +00:00
Max Horn
b75c969e66
Moved class File and the MD5 stuff to namespace Common
...
svn-id: r18037
2005-05-10 22:56:25 +00:00
Max Horn
0fb2bd30f4
cleanup
...
svn-id: r16500
2005-01-09 15:48:27 +00:00
Max Horn
32f0dbdcb2
Moving AppendableAudioStream into SCUMM engine, as it is only used there
...
svn-id: r16494
2005-01-09 03:15:59 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
c51b1266c0
Removed the (highly SCUMM specific) 'appendable stream' API from SoundMixer; SCUMM now uses the appendable stream directly
...
svn-id: r15919
2004-11-27 17:09:05 +00:00
Max Horn
1a7ca2dc2a
AudioStream::read() has been removed quite some time ago, now making sure that change is reflected everywhere
...
svn-id: r15911
2004-11-27 13:54:09 +00:00
Max Horn
1036e88aa6
Implement premix proc via an AudioStream / Channel (eventually we'll remove the setupPremix method which takes a proc pointer)
...
svn-id: r15522
2004-10-11 22:01:21 +00:00
Eugene Sandulenko
ae7421ae2b
Make AppendableAudioStream endianness-aware.
...
svn-id: r15491
2004-10-09 22:51:00 +00:00
Max Horn
f66960c4b9
Remove obsolete path param
...
svn-id: r15278
2004-09-25 23:33:34 +00:00
James Brown
9756a420a3
Use extrapath in Sword1 engine (from 0.6.0 branch). More verbose errors to go with the forthcoming new manual. Sword1 CD swapping doesn't work as expected HERE, either :)
...
svn-id: r14188
2004-07-11 04:41:48 +00:00
Paweł Kołodziejski
c7133de879
getFreeSpace() is not longer used
...
svn-id: r14136
2004-07-01 04:43:32 +00:00