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
Max Horn
e0eab01e63
Make use of new File refcount code; also fixed long standing bug in vorbis code (ov_clear was not being called, resulting in a file not being closed)
...
svn-id: r14107
2004-06-28 22:35:22 +00:00
Torbjörn Andersson
51b373eb6f
Fixed a typo in a comment.
...
svn-id: r13948
2004-06-09 06:30:49 +00:00
Paweł Kołodziejski
d2fa7bbcc7
synced code free space with buffer changes
...
svn-id: r13646
2004-04-26 20:48:09 +00:00
Paweł Kołodziejski
43979c9012
delete CustomProcInputStream and add getFreeSpace for appendable audiostream
...
svn-id: r13629
2004-04-25 18:43:46 +00:00
Paweł Kołodziejski
6680c5368d
added CustomProcInputStream
...
svn-id: r13570
2004-04-13 05:57:52 +00:00
Max Horn
aa6ec62e9d
Patch #885904 (Flac Support) with some tweaks by me
...
svn-id: r12984
2004-02-22 14:11:16 +00:00
James Brown
9301f0b0ff
Change AppendableMemoryStream overflows to debug messages, so people stop believing them to be the cause of errors in bug reports :P
...
svn-id: r12775
2004-02-08 17:19:09 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
bfea71b0c4
renamed AudioInputStream -> AudioStream
...
svn-id: r12110
2004-01-03 14:10:13 +00:00
Max Horn
1805b07a48
simplification (possible since read() doesn't have to be efficient anymore)
...
svn-id: r12103
2004-01-03 02:30:34 +00:00
Max Horn
91f5f1687c
logic fix: we must do wrap around *before* read, not after. otherwise eosIntern will in some border cases return wrong results; some cleanup
...
svn-id: r11932
2003-12-26 01:32:29 +00:00
Max Horn
859a9c0129
o Added SoundMixer::isReady()
...
o Removed SoundMixer::bindToSystem()
o In scumm, replaced _silentMixer, _silentDigitalImuse and _noDigitalSamples by SoundMixer::isReady()
svn-id: r11893
2003-12-24 17:42:22 +00:00
Max Horn
c55652d4a6
Rewrote make*Stream factory functions to work around bug in MSVC6 (see bug report #860067 ); added some comments; LinearMemoryStream now can auto-dispose the data passed to it
...
svn-id: r11798
2003-12-21 00:26:36 +00:00