diff options
author | Chris Apers | 2003-07-07 08:45:20 +0000 |
---|---|---|
committer | Chris Apers | 2003-07-07 08:45:20 +0000 |
commit | c4b942bfce3b5dff1d440ba8de8869362eac7d26 (patch) | |
tree | 2f0deac8b5d9ae4fdb18c068269fdae6efb2960c /backends/PalmOS/Src/palm.h | |
parent | 60a7b30b540ac99561756829431592eefae4e034 (diff) | |
download | scummvm-rg350-c4b942bfce3b5dff1d440ba8de8869362eac7d26.tar.gz scummvm-rg350-c4b942bfce3b5dff1d440ba8de8869362eac7d26.tar.bz2 scummvm-rg350-c4b942bfce3b5dff1d440ba8de8869362eac7d26.zip |
MP3 and sound thread fixes
svn-id: r8834
Diffstat (limited to 'backends/PalmOS/Src/palm.h')
-rw-r--r-- | backends/PalmOS/Src/palm.h | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/backends/PalmOS/Src/palm.h b/backends/PalmOS/Src/palm.h index 59d39e153c..63498b4497 100644 --- a/backends/PalmOS/Src/palm.h +++ b/backends/PalmOS/Src/palm.h @@ -29,7 +29,24 @@ Err HwrDisplayPalette(UInt8 operation, Int16 startIndex, UInt16 paletteEntries, RGBColorType *tableP) SYS_TRAP(sysTrapHwrDisplayPalette); - + +#define MAX_THREAD 2 + +typedef struct { + bool active; + OSystem::ThreadProc *proc; + void *param; + bool sleep; + int old_time; + +} ThreadEmuType, *ThreadEmuPtr; + +typedef struct { + bool active; + OSystem::SoundProc *proc; + void *param; + OSystem::SoundFormat format; +} SoundDataType; //-- 02-12-17 --//////////////////////////////////////////////////////////////// class OSystem_PALMOS : public OSystem { @@ -128,7 +145,7 @@ public: // Quit void quit(); - bool _quit; + bool _quit, _selfQuit; // Overlay void show_overlay(); @@ -171,6 +188,10 @@ private: public: byte *_screenP; + ThreadEmuType _thread[MAX_THREAD]; // 0: midi native, 1:multi-midi (adlib wrapper) + UInt8 _threadCounter; + UInt8 _threadID; + private: byte *_offScreenP; byte *_tmpScreenP; @@ -210,24 +231,7 @@ private: int (*callback) (int); } _timer; - struct { - bool active; - ThreadProc *proc; - void *param; - - struct { - UInt32 value; - UInt32 status; - } sleep; - - } _thread; - - struct { - bool active; - SoundProc *proc; - void *param; - SoundFormat format; - } _sound; + SoundDataType _sound; // Palette data RGBColorType *_currentPalette; |