Age | Commit message (Collapse) | Author | |
---|---|---|---|
2003-07-25 | move AudioInputStream implementations & makeInputStream into separate .cpp file | Max Horn | |
svn-id: r9190 | |||
2003-07-25 | reduced source code duplication | Max Horn | |
svn-id: r9189 | |||
2003-07-25 | lots of mixer changes: replaced _volumeTable by _globalVolume (applying ↵ | Max Horn | |
volume after resampling is more accurate); made more member vars of SoundMixer protected (and thus added some new getter methods); added (untested) support for a second (stereo) channel when playing MP3 svn-id: r9184 | |||
2003-07-25 | round to nearest | Max Horn | |
svn-id: r9183 | |||
2003-07-24 | whitespace | Max Horn | |
svn-id: r9181 | |||
2003-07-24 | added volume support; some cleanup; provided exactly as many samples as were ↵ | Max Horn | |
requested in the 'resample' algorithm (if possible) svn-id: r9180 | |||
2003-07-24 | added RateConverter classes as thin wrappers around st_* functions; renamed ↵ | Max Horn | |
InputStream -> AudioInputStream and cleaned up the hierarchy of its subclasses; added makeInputStream() auxillary function svn-id: r9179 | |||
2003-07-24 | new files, based on SoX (http://sox.sf.net): better resampling code. Note ↵ | Max Horn | |
that my mixer.cpp changes are on purpose not yet in CVS since they are not complete. Only reasons I checkin these files is that it's much more comfortable to have CVS, since I need to rewrite parts of resample.cpp now (I already have lots of modifications in). Also expect more OO in the future svn-id: r9176 | |||
2003-07-23 | Fixed regression in clamped_add_16() that kept it from clamping. This was | Torbjörn Andersson | |
quite noticeable in the BASS floppy intro. Of course, if it turns out that 'int' is also only 16 bits it still won't work, but in that case we run into problems even before this function is called. svn-id: r9145 | |||
2003-07-17 | simplified code | Max Horn | |
svn-id: r9061 | |||
2003-07-14 | oops | Max Horn | |
svn-id: r9023 | |||
2003-07-14 | removed whitespaces at line ends; added stopHandle | Max Horn | |
svn-id: r9022 | |||
2003-07-12 | Fixed RTTI warnings with PalmOS port | Chris Apers | |
svn-id: r8951 | |||
2003-07-12 | verify chan != 0 even on WinCE | Max Horn | |
svn-id: r8940 | |||
2003-07-12 | Give sample rate to channel classes (WinCE downsampling) / Do not use ↵ | Nicolas Bacca | |
dynamic cast with EVC 3 / Fix Tremor Ogg support svn-id: r8937 | |||
2003-07-11 | Reverted to "old" YM3812 (FMOPL) emulator code. | Jamieson Christian | |
Until specific information regarding the benefits of migrating to the new emulator can be made available, the "old" code will remain in effect for the benefit of slower hardware platforms such as some WinCE-based devices. svn-id: r8903 | |||
2003-07-10 | Fix for Bug [766426]: V5 Games: Adlib SFX not looped | Jamieson Christian | |
Modified Smart Jump logic to deal with active notes whose Note On and Note Off events BOTH occur OUTSIDE the range of the jump. While this is not a thorough way to deal with Note On events that occur outside jump points, it at least deals with the issue of long, unchanging Adlib SFX used by some earlier SCUMM games. svn-id: r8892 | |||
2003-07-07 | #include scummsys.h so that our custome free() gets used | Max Horn | |
svn-id: r8849 | |||
2003-07-06 | mix() is really a private method, only to be called by the audio thread; ↵ | Max Horn | |
cover setupPremix by the mutex, too (that helps preventing race conditions upon exit) svn-id: r8809 | |||
2003-07-06 | now that we mutex-protect everything properly, we can get rid of ↵ | Max Horn | |
_toBeDestroyed; also, instead of keeping a global _handles array in the mixer, let each Channel manage its own handle svn-id: r8808 | |||
2003-07-06 | the mutex must be locked by everything which might access _channels while ↵ | Max Horn | |
the mixer thread is running, because the mixer thread may modify _channels svn-id: r8805 | |||
2003-07-06 | More fixes from Hibernatus | Travis Howell | |
svn-id: r8792 | |||
2003-07-06 | cleanup to the mixer helper proc interface and to ChannelStream | Max Horn | |
svn-id: r8785 | |||
2003-07-05 | protect calls to insertChannel with mutex, too (and switch to using StackLock) | Max Horn | |
svn-id: r8782 | |||
2003-07-05 | updated code to use type MutexRef; added class StackLock (from sdl backend, ↵ | Max Horn | |
now in util.*) svn-id: r8777 | |||
2003-07-05 | hack for proper compile for vc6, why I need this ? | Paweł Kołodziejski | |
svn-id: r8763 | |||
2003-07-04 | make SoundMixer::playRaw only check sound IDs if you actually pass one | Robert Göffringmann | |
svn-id: r8746 | |||
2003-07-04 | Prevent apparantly possible race condition. I don't get this stuff, and I ↵ | James Brown | |
don't see why the next call to insertChannel is immune to the same theoretical problem :) svn-id: r8742 | |||
2003-07-04 | Insert preliminary Zak256 sound looping support. It's not perfect, as some ↵ | James Brown | |
Zak256 sounds only loop a part of the sample - which our mixer API doesn't yet support. svn-id: r8741 | |||
2003-07-03 | cleanup for -Wundef | Max Horn | |
svn-id: r8726 | |||
2003-07-02 | cleanup (code easier to read; slightly less rounding errors for the volume; ↵ | Max Horn | |
and on BE systems, READ_BE_UINT16 is actually faster ;-) svn-id: r8706 | |||
2003-06-27 | fixed warning | Paweł Kołodziejski | |
svn-id: r8664 | |||
2003-06-24 | cleanup | Max Horn | |
svn-id: r8645 | |||
2003-06-22 | fixed warnings | Paweł Kołodziejski | |
svn-id: r8613 | |||
2003-06-22 | d'oh | Max Horn | |
svn-id: r8611 | |||
2003-06-22 | fixed Vorbis CD track code | Max Horn | |
svn-id: r8610 | |||
2003-06-22 | don't memset the output buffer to 0 if _eof_flag is set; rather, we should ↵ | Max Horn | |
'add 0' to every byte in the output buffer, i.e.: do nothing svn-id: r8609 | |||
2003-06-22 | properly init member vars instead of using memset | Max Horn | |
svn-id: r8608 | |||
2003-06-22 | Change names of the stream API in the mixer; added endStream method (stop() ↵ | Max Horn | |
halts stream immediately; endStream() lets it first finish playing) svn-id: r8603 | |||
2003-06-22 | fix compile when vorbis is enabled, loomcd is now broken with vorbis after ↵ | Jonathan Gray | |
recent changes :/ svn-id: r8598 | |||
2003-06-22 | renamed SoundMixer::hasActiveChannel->hasActiveSFXChannel, and fixed the ↵ | Max Horn | |
regression in it caused by removing _beginSlots (I hope); added isActiveChannel method used by scumm/sound.cpp (this allowed me to move the Channel class from mixer.h into mixer.cpp); replaced Channel::soundFinished method by isActive svn-id: r8597 | |||
2003-06-22 | remove the realDestroy methods and instead use destructors; renamed insertAt ↵ | Max Horn | |
to insertChannel and simplified/unified its usage; delete the mutex when exiting; cleanup svn-id: r8596 | |||
2003-06-21 | lots of mixer cleanup / refactoring / reengineering | Max Horn | |
svn-id: r8594 | |||
2003-06-21 | modified & cleaned up the playStream/append code a bit; but this API really ↵ | Max Horn | |
could stand some refinement svn-id: r8592 | |||
2003-06-21 | cleanup | Max Horn | |
svn-id: r8584 | |||
2003-06-21 | make gcc happy | Jonathan Gray | |
svn-id: r8583 | |||
2003-06-18 | Fix for bug [756555] ALL: With '-ewindows' notes don't stop at quit | Jamieson Christian | |
and bug [755176] SIMON2: Hanging notes More cleanup of the thread issues associated with iMuse and MidiParser shutdown. Untested. svn-id: r8546 | |||
2003-06-18 | Use stdafx.h instead of manually including system headers. | Marcus Comstedt | |
svn-id: r8541 | |||
2003-06-15 | more cleanup | Max Horn | |
svn-id: r8497 | |||
2003-06-11 | fixed cast warnings | Max Horn | |
svn-id: r8435 |