mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
PalmOS changes
svn-id: r7222
This commit is contained in:
parent
38b6a9f090
commit
01d3067b7d
@ -123,7 +123,9 @@ enum {
|
|||||||
MD_COREAUDIO = 7,
|
MD_COREAUDIO = 7,
|
||||||
MD_MIDIEMU = 8,
|
MD_MIDIEMU = 8,
|
||||||
MD_ALSA = 9,
|
MD_ALSA = 9,
|
||||||
MD_ADLIB = 10
|
MD_ADLIB = 10,
|
||||||
|
|
||||||
|
MD_YPA1 = 100 // palmos
|
||||||
};
|
};
|
||||||
|
|
||||||
// Factory functions, for faster compile
|
// Factory functions, for faster compile
|
||||||
@ -135,5 +137,6 @@ extern MidiDriver *MidiDriver_QT_create();
|
|||||||
extern MidiDriver *MidiDriver_CORE_create();
|
extern MidiDriver *MidiDriver_CORE_create();
|
||||||
extern MidiDriver *MidiDriver_ETUDE_create();
|
extern MidiDriver *MidiDriver_ETUDE_create();
|
||||||
extern MidiDriver *MidiDriver_ALSA_create();
|
extern MidiDriver *MidiDriver_ALSA_create();
|
||||||
|
extern MidiDriver *MidiDriver_YamahaPa1_create();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,6 +26,8 @@
|
|||||||
#include "common/file.h"
|
#include "common/file.h"
|
||||||
|
|
||||||
SoundMixer::SoundMixer() {
|
SoundMixer::SoundMixer() {
|
||||||
|
memset(this,0,sizeof(SoundMixer)); // palmos
|
||||||
|
|
||||||
_volumeTable = (int16 *)calloc(256 * sizeof(int16), 1);
|
_volumeTable = (int16 *)calloc(256 * sizeof(int16), 1);
|
||||||
_beginSlots = 0;
|
_beginSlots = 0;
|
||||||
for (int i = 0; i != NUM_CHANNELS; i++) {
|
for (int i = 0; i != NUM_CHANNELS; i++) {
|
||||||
|
@ -64,6 +64,11 @@ void MidiChannel_MPU401::sysEx_customInstrument(uint32 type, byte *instr) {
|
|||||||
|
|
||||||
MidiDriver_MPU401::MidiDriver_MPU401() : MidiDriver() {
|
MidiDriver_MPU401::MidiDriver_MPU401() : MidiDriver() {
|
||||||
uint i;
|
uint i;
|
||||||
|
|
||||||
|
_started_thread = false; // palmos
|
||||||
|
_timer_proc = NULL; // palmos
|
||||||
|
_timer_param = NULL; // palmos
|
||||||
|
|
||||||
for (i = 0; i < ARRAYSIZE(_midi_channels); ++i) {
|
for (i = 0; i < ARRAYSIZE(_midi_channels); ++i) {
|
||||||
_midi_channels [i].init (this, 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) {
|
int MidiDriver_MPU401::midi_driver_thread(void *param) {
|
||||||
MidiDriver_MPU401 *mid = (MidiDriver_MPU401 *)param;
|
MidiDriver_MPU401 *mid = (MidiDriver_MPU401 *)param;
|
||||||
int old_time, cur_time;
|
int old_time, cur_time;
|
||||||
|
Loading…
Reference in New Issue
Block a user