PalmOS changes

svn-id: r7222
This commit is contained in:
Max Horn 2003-04-30 12:51:07 +00:00
parent 38b6a9f090
commit 01d3067b7d
3 changed files with 12 additions and 2 deletions

View File

@ -123,7 +123,9 @@ enum {
MD_COREAUDIO = 7,
MD_MIDIEMU = 8,
MD_ALSA = 9,
MD_ADLIB = 10
MD_ADLIB = 10,
MD_YPA1 = 100 // palmos
};
// Factory functions, for faster compile
@ -135,5 +137,6 @@ extern MidiDriver *MidiDriver_QT_create();
extern MidiDriver *MidiDriver_CORE_create();
extern MidiDriver *MidiDriver_ETUDE_create();
extern MidiDriver *MidiDriver_ALSA_create();
extern MidiDriver *MidiDriver_YamahaPa1_create();
#endif

View File

@ -26,6 +26,8 @@
#include "common/file.h"
SoundMixer::SoundMixer() {
memset(this,0,sizeof(SoundMixer)); // palmos
_volumeTable = (int16 *)calloc(256 * sizeof(int16), 1);
_beginSlots = 0;
for (int i = 0; i != NUM_CHANNELS; i++) {

View File

@ -64,6 +64,11 @@ void MidiChannel_MPU401::sysEx_customInstrument(uint32 type, byte *instr) {
MidiDriver_MPU401::MidiDriver_MPU401() : MidiDriver() {
uint i;
_started_thread = false; // palmos
_timer_proc = NULL; // palmos
_timer_param = NULL; // palmos
for (i = 0; i < ARRAYSIZE(_midi_channels); ++i) {
_midi_channels [i].init (this, i);
}
@ -95,7 +100,7 @@ void MidiDriver_MPU401::setTimerCallback (void *timer_param, void (*timer_proc)
}
}
#if !defined(__MORPHOS__)
#if !defined(__MORPHOS__) && !defined(__PALM_OS__)
int MidiDriver_MPU401::midi_driver_thread(void *param) {
MidiDriver_MPU401 *mid = (MidiDriver_MPU401 *)param;
int old_time, cur_time;