Chris Apers
1a0d308e04
Fixed type mismatch error compiling palmos port
...
svn-id: r9552
2003-08-06 11:53:18 +00:00
Max Horn
75db41750e
getting rid of g_mixer; removing lots of whitespace
...
svn-id: r9527
2003-08-05 23:58:24 +00:00
Max Horn
48d1739e0a
some cleanup; added Channel::getVolume, once somebody tells me what exactly is needed, I can add per-channel volume, and also per-channel panning
...
svn-id: r9525
2003-08-05 23:03:42 +00:00
Max Horn
d618ace0c0
begone, old mixer code
...
svn-id: r9521
2003-08-05 21:46:56 +00:00
Max Horn
7ff88ea392
more cleanup
...
svn-id: r9513
2003-08-05 18:17:26 +00:00
Max Horn
79fd7ee441
cleanup
...
svn-id: r9512
2003-08-05 18:12:59 +00:00
Max Horn
4c4aa4e957
fix bug #783423
...
svn-id: r9484
2003-08-05 11:30:13 +00:00
Max Horn
1eaf41eda4
more cleanup (like the previous two, I just moved around code, to clearly separate the old and the new mixer code)
...
svn-id: r9479
2003-08-05 02:05:37 +00:00
Max Horn
2bc604081e
some more cleanup
...
svn-id: r9478
2003-08-05 01:47:47 +00:00
Max Horn
ded1df35f9
cleanup; removed some code duplication
...
svn-id: r9477
2003-08-05 01:41:29 +00:00
Max Horn
74188e6143
and finally VorbisInputStream::readBuffer. Once we verified the new readBuffer methods all work, we can get rid of readIntern again and merge those back into the regular read() methods
...
svn-id: r9476
2003-08-05 01:22:09 +00:00
Max Horn
1de064ee2c
optimized MP3InputStream::readBuffer (once more, I won't gurantee for correctness although it seems to work fine over here)
...
svn-id: r9475
2003-08-05 01:14:27 +00:00
Max Horn
154ca4f2cf
simplified code a bit
...
svn-id: r9474
2003-08-05 00:53:25 +00:00
Max Horn
b1d3b7ab99
optimized WrappedMemoryStream::readBuffer (It's almost 3 AM, so I don't trust myself, hence I'll leave this as an #ifdef for now :-)
...
svn-id: r9473
2003-08-05 00:50:15 +00:00
Max Horn
b96e5501e6
catch one potential problem, namely if eos is already reached when readBuffer is called ('This should never happen anyway', famous last words)
...
svn-id: r9472
2003-08-05 00:31:00 +00:00
Max Horn
e1ff91ea7d
get rid of calls to the obsolete AudioInputStream::size method
...
svn-id: r9471
2003-08-05 00:29:37 +00:00
Max Horn
8850f858bc
not really sure if using readBuffer would give any gain in CopyRateConverter
...
svn-id: r9470
2003-08-04 22:49:29 +00:00
Max Horn
d280258e09
renamed eof -> eos (end of stream); hid MP3/Vorbis stream classes completly (by providing factory methods); new readBuffer method for AudioInputStream for improved speed of the mixer; new MusicStream class (subclassed for MP3/Vorbis sound) which offers a getRate method; some other tweaks
...
svn-id: r9467
2003-08-04 22:15:16 +00:00
Max Horn
996d4f1391
fixed EOF handling of MP3 streams (subtract time from duration timer, instead of adding it...)
...
svn-id: r9464
2003-08-04 16:28:41 +00:00
Max Horn
ada236a63b
one addition less
...
svn-id: r9425
2003-08-02 19:17:54 +00:00
Max Horn
7ec38f5f02
some more tweaks
...
svn-id: r9424
2003-08-02 19:09:52 +00:00
Max Horn
20ba086511
slightly cut down on the number of times eof() is called
...
svn-id: r9423
2003-08-02 18:29:52 +00:00
Max Horn
c373ca107d
slightly optimized MP3InputStream::eof, and some cleanup
...
svn-id: r9422
2003-08-02 18:13:37 +00:00
Max Horn
cc8465aa71
don't use asserts in these tight spots
...
svn-id: r9420
2003-08-02 17:27:17 +00:00
Max Horn
4cc8c70f25
optimize code flow a little
...
svn-id: r9419
2003-08-02 17:22:52 +00:00
Max Horn
0142ee260e
cleanup
...
svn-id: r9417
2003-08-02 16:31:31 +00:00
Max Horn
e3b64fa757
added FLAG_REVERSE_STEREO support
...
svn-id: r9416
2003-08-02 16:11:12 +00:00
Max Horn
1bd9026d8a
remove debug output
...
svn-id: r9415
2003-08-02 14:54:54 +00:00
Max Horn
290a730885
fix for st_rate_flow, code is more straightforward now, too
...
svn-id: r9414
2003-08-02 14:48:11 +00:00
Max Horn
ca0cc3b5ab
obsolete
...
svn-id: r9410
2003-08-02 11:44:57 +00:00
Max Horn
c57f11f09f
garhg
...
svn-id: r9409
2003-08-02 11:42:53 +00:00
Max Horn
d00a9923cc
previous mod was techincally incorrect, this one should be better (but might still be buggy?)
...
svn-id: r9408
2003-08-02 11:38:23 +00:00
Torbjörn Andersson
a4ac513247
I think this fixes bug #780167 ("SIMON1/2: Sound problems"). When
...
st_rate_flow() had filled the output buffer, rate->icur and rate->ilast
held the same values, which led to some samples being duplicated on the
next call.
svn-id: r9403
2003-08-02 10:47:35 +00:00
Max Horn
326379b95e
oops
...
svn-id: r9396
2003-08-02 02:54:56 +00:00
Max Horn
1f58fea232
converted ChannelMP3 to use new rate conversion scheme, too. Only thing missing now is FLAG_REVERSE_STEREO support (and of course fixing regressions, and the long term goal is to make resample.cpp usable, too)
...
svn-id: r9395
2003-08-02 02:41:31 +00:00
Max Horn
02d061598c
fix ChannelMP3CDMusic volume, too :-)
...
svn-id: r9393
2003-08-02 02:12:26 +00:00
Max Horn
6da96e17c0
fix Vorbis music volume
...
svn-id: r9392
2003-08-02 02:11:15 +00:00
Max Horn
208a3925e9
disable debug output
...
svn-id: r9390
2003-08-02 00:29:53 +00:00
Max Horn
1cfa9d9029
let the input stream handle the looping (by pretending to be of infinite size -> this fixes a problem which cause 'gaps' at loop turn-over points)
...
svn-id: r9379
2003-08-01 16:32:11 +00:00
Max Horn
d9bd77032a
implemented raw sound looping; some debug output enabled temporarily
...
svn-id: r9360
2003-08-01 12:49:24 +00:00
Max Horn
0df319e952
#include cleanup (explicityl specify the location for headers from common/, so that we at some point can get rid of -Icommon; exception is made for stdafx.h, since a) we might want to rename it and b) might want to move it to the top level)
...
svn-id: r9359
2003-08-01 12:21:04 +00:00
Max Horn
643e88b04c
get rid of BUGGY_NEW_MP3_PLAYER
...
svn-id: r9347
2003-07-31 20:28:11 +00:00
Max Horn
0b4e48b59e
revamped MP3/Vorbis CD 'emulation' code to use a PlayingSoundHandle -> this allows to finally get rid of the hackish isChannelActive/isChannelUsed methods in SoundMixer
...
svn-id: r9346
2003-07-31 20:24:10 +00:00
Max Horn
d8494d658b
fixed MP3InputStream, now seems to work properly (kind of a surprise)
...
svn-id: r9345
2003-07-31 19:32:38 +00:00
Max Horn
16425977b7
icur was not being saved between rate conversion calls
...
svn-id: r9344
2003-07-31 19:08:57 +00:00
Paweł Kołodziejski
e5e117006a
back disable warnings into stdafx.h, vc6 is lack of warnings support
...
svn-id: r9337
2003-07-31 18:35:01 +00:00
Max Horn
1b52e9f19c
added new header file backends/intern.h; removed some stuff from common/system.h which is either only of interest to backends or code instantiating a backend (->backends/intern.h); also removed fmopl specific enums (->sound/fmopl.h)
...
svn-id: r9327
2003-07-31 12:33:33 +00:00
Jamieson Christian
7c16006cc7
Fix for RC bug [780675] MI2: Reoccuring crash
...
Tightened up OOB track selection handling in
MidiParser. Apparently some SMFs in the Mac
version of MI2 (and other games?) specify
track -1 in their jump commands to indicate
a jump within the same track.
svn-id: r9321
2003-07-31 06:50:13 +00:00
Jamieson Christian
c5de745580
Disabled unknown pragma warning in MSVC-6.
...
svn-id: r9320
2003-07-31 06:47:05 +00:00
Max Horn
f74197ce8b
make use of the new MP3InputStream in ChannelMP3CDMusic - but disabled by default, because it is still quite buggy (e.g. crashes at end of stream etc)
...
svn-id: r9314
2003-07-31 01:36:24 +00:00