Max Horn
da76ac5890
Various changes to the build system which allow building ScummVM in an external directory (and as such, allow you to have a debug, a profiling, and a release build from the same set of source files in parallel). Work in progress
...
svn-id: r12680
2004-01-30 21:54:28 +00:00
Max Horn
176aa74827
Renamed the 'pan' effect of the mixer to 'balance', since that is what we actually do; applied patch #886786 which corrects a bug in the balance code
...
svn-id: r12665
2004-01-29 18:15:27 +00:00
Chris Apers
f05654662c
No more needed
...
svn-id: r12559
2004-01-20 14:39:38 +00:00
Chris Apers
65d2e4e718
Enable those drivers (still no sound on PalmOS)
...
svn-id: r12558
2004-01-20 14:38:15 +00:00
Max Horn
aa0ad9b491
Patch #878883 : Fix for Ogg Vorbis playback
...
svn-id: r12503
2004-01-18 20:57:45 +00:00
James Brown
04f2bc0276
Update BS2 cutscene player with changes from roever: overlay support (default, 8bit backends should define BACKEND_8BIT for fast colour remapping) and sound syncronisation.
...
svn-id: r12456
2004-01-17 14:20:32 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
e049e24a2c
no need to specify game data path here: File::setDefaultDirectory() took care of that
...
svn-id: r12135
2004-01-04 14:06:06 +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
d212b2c2e1
replace read() by readBuffer() in CopyRateConverter
...
svn-id: r12102
2004-01-03 02:29:48 +00:00
Max Horn
81481ad6da
more MAD MP3 / Ogg Vorbis cleanup: try not to expose anything about the libs used for MP3/Vorbis support -> this eases changing the implementations, and reduces header dependencies (and thus compile time) :-)
...
svn-id: r12097
2004-01-03 01:25:45 +00:00
Max Horn
96e2c239c4
removed SoundMixer::playMP3CDTrack; simplified makeMP3Stream (special variant with mad_timer_t was really only needed for MP3TrackInfo class)
...
svn-id: r12095
2004-01-03 00:55:28 +00:00
Max Horn
d335bce62d
added makeVOCStream() (convenience function)
...
svn-id: r12094
2004-01-03 00:33:14 +00:00
Paweł Kołodziejski
7bf0cc2a98
FT sounds have loops in voc data: 65536, that could be max loops or unfinite loops
...
svn-id: r11992
2003-12-28 09:14:00 +00:00
Max Horn
d52280ab01
cleanup
...
svn-id: r11981
2003-12-27 21:31:49 +00:00
Max Horn
fabcb25a68
paranoia
...
svn-id: r11980
2003-12-27 21:31:41 +00:00
Paweł Kołodziejski
25a7b9ef33
fixed compilation
...
svn-id: r11976
2003-12-27 18:29:21 +00:00
Max Horn
0aa7993218
renamed VOC functions
...
svn-id: r11962
2003-12-27 14:10:45 +00:00
Paweł Kołodziejski
160b94fdaa
added handing voc loops
...
svn-id: r11951
2003-12-26 22:53:30 +00:00
Max Horn
692fca88c2
fix warning, add TODO comment
...
svn-id: r11942
2003-12-26 13:14:03 +00:00
Paweł Kołodziejski
a45e92efed
passthrought v7+ sound voices by imuse digital
...
svn-id: r11939
2003-12-26 12:15:23 +00:00
Max Horn
2755d9c00a
add param to playInputStream which makes it possible to retain an input stream even after it has been given to the mixer for playback
...
svn-id: r11933
2003-12-26 02:19:31 +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
3472e93051
explicitly turn off all active sounds -> not all MIDI devices support the 'All note off' event, at least according to http://crystal.apana.org.au/ghansper/midi_introduction/midi_channel_mode.html ; and now, the quicktime MIDI code doesn't support it anymore, too ;-)
...
svn-id: r11885
2003-12-24 12:54:33 +00:00
Max Horn
e9269257f3
turned PlayingSoundHandle into an 'opaque' (well not really :-) data type, mainly because people kept (accidentally and sometimes on purpose :-) misusing them
...
svn-id: r11881
2003-12-24 00:25:18 +00:00
Max Horn
43875b42fc
Allow sound ID for MP3/Vorbis sounds, too; cleaned up Vorbis playback code a bit
...
svn-id: r11879
2003-12-23 19:14:57 +00:00
Torbjörn Andersson
cb782764b4
Fix warning generated by the incomprehensibly picky MinGW GCC compiler.
...
svn-id: r11858
2003-12-22 19:19:04 +00:00
Max Horn
e01c3e1b1d
o Got rid of Channel::destroy() method (no more evil 'delete this', plus
...
slightly more efficient)
o Fixed potential memory leak in SoundMixer::playRaw
o Channel not anymore friend class of SoundMixer
o misc cleanup
svn-id: r11857
2003-12-22 19:08:19 +00:00
Max Horn
21ab8e496e
include stdafx.h
...
svn-id: r11829
2003-12-21 17:35:44 +00:00
Max Horn
e439eb5129
added convenience SoundMixer::playVorbis variant which calls through to playSfxSound_Vorbis; made scumm/queen engines use it
...
svn-id: r11812
2003-12-21 15:47:52 +00:00
Max Horn
7fbb3e0559
Cleaned up SoundMixer::newStream() a bit (I plan to replace all usages of this by playInputStream(), this cleanup eases this a bit)
...
svn-id: r11803
2003-12-21 01:17:03 +00:00
Max Horn
ec0ebf5380
o Make use of the new LinearMemoryStream feature which allows auto-disposing the sound data
...
o This allows us to get rid of the ChannelRaw class
o Removed the sound index return value from several methods
o Removed all methods dealing with sound indices (i.e. stopChannel and pauseChannel)
svn-id: r11801
2003-12-21 00:44:31 +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
Max Horn
d8903123b0
distinguish between end of stream and end of data
...
svn-id: r11756
2003-12-19 01:30:19 +00:00
Max Horn
d21fc5845d
o Moved MP3 and Vorbis input streams to mp3.* resp. vorbis.*
...
o Added SoundMixer::playInputStream and made some of the other play* methods use it
o Added ProcInputStream stub (not working yet) which one day may allow us to replace the premix code, and allow other fancy stuff
o Remove AudioInputStream::readBuffer default implementation (subclasses should always provide it for max. performance)
o Some minor cleanup
svn-id: r11754
2003-12-19 00:32:47 +00:00
Max Horn
32dd4cc006
fix for recent audio stream regression
...
svn-id: r11752
2003-12-19 00:09:34 +00:00
Chris Apers
3644176c43
PalmOS sound API cannot access globals data, StackLock constructor use g_system
...
svn-id: r11742
2003-12-18 11:51:58 +00:00
Chris Apers
26fdb102bb
This is now supported on PalmOS
...
svn-id: r11741
2003-12-18 11:49:53 +00:00
Max Horn
e7bf167428
Made sure that *all* AudioInputStream 'know' their sample rate; removed pointless MusicStream class; removed various specific Channel subclasses and instead generalized the base class some more
...
svn-id: r11699
2003-12-17 02:19:24 +00:00
Max Horn
91997026a0
cleanup
...
svn-id: r11697
2003-12-17 01:57:37 +00:00
Max Horn
4343567458
changed the way 'streams' are handled: the finalization logic is now in the WrappedAudioInputStream; this allows further streamlining of the channel/mixer code (can you already guess what I am working towards? :-)
...
svn-id: r11696
2003-12-17 01:50:50 +00:00
Max Horn
d81746ada8
some cleanup
...
svn-id: r11694
2003-12-17 01:32:00 +00:00
Max Horn
de51f631be
cleanup
...
svn-id: r11686
2003-12-16 15:34:17 +00:00
Robert Göffringmann
5756a41ba6
added mixer flag for little endian samples
...
svn-id: r11665
2003-12-16 02:11:04 +00:00
Max Horn
0ee89a3277
init some more member vars
...
svn-id: r11597
2003-12-12 15:05:33 +00:00
Torbjörn Andersson
813e8fbdab
Emergency bugfixes:
...
Initialise _cd.playing to false. Otherwise ScummVM may create a savegame
where a CD track appears to be playing, but everything about it is
undefined, causing ScummVM to crash when loading it.
Initialise _track_info[] with NULLs, otherwise ScummVM crashes for me when
I start the CD version of MI1.
There's probably a lot more that *should* be properly initialised, but this
seems to take care of the most serious issues, and is all I have the time
to do now anyway.
svn-id: r11573
2003-12-11 08:18:51 +00:00
Jamieson Christian
f82a23771c
Expanded the Doxygen docs for the MidiParser class.
...
Painfully detailed in its description of how to
get a MidiParser object hooked up and running.
Hope this helps ya, Joost! ;)
svn-id: r11559
2003-12-11 00:51:51 +00:00
Jamieson Christian
c95e9d12a2
Endian-safe read-and-advance helper functions are
...
now based on the READ_LE_* and READ_BE_* macros.
Very slight performance gain, woo hoo.
svn-id: r11558
2003-12-10 23:52:29 +00:00