aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/android.h
diff options
context:
space:
mode:
authordhewg2011-02-26 14:53:02 +0100
committerdhewg2011-02-27 09:04:36 +0100
commit25d895b859af0df8ea6daa85ba6ec5a0acb81f9d (patch)
tree3ef520562d76f45753c26c53a4995f42658c326d /backends/platform/android/android.h
parent983e16b36a68292021833aa9b69305a37ffe2f91 (diff)
downloadscummvm-rg350-25d895b859af0df8ea6daa85ba6ec5a0acb81f9d.tar.gz
scummvm-rg350-25d895b859af0df8ea6daa85ba6ec5a0acb81f9d.tar.bz2
scummvm-rg350-25d895b859af0df8ea6daa85ba6ec5a0acb81f9d.zip
ANDROID: Rework audio system
Move the audio thread to the bright side
Diffstat (limited to 'backends/platform/android/android.h')
-rw-r--r--backends/platform/android/android.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/backends/platform/android/android.h b/backends/platform/android/android.h
index 23c1e85a43..f4e9d611d4 100644
--- a/backends/platform/android/android.h
+++ b/backends/platform/android/android.h
@@ -92,6 +92,10 @@ protected:
class OSystem_Android : public BaseBackend, public PaletteManager {
private:
+ // passed from the dark side
+ int _audio_sample_rate;
+ int _audio_buffer_size;
+
int _screen_changeid;
int _egl_surface_width;
int _egl_surface_height;
@@ -123,6 +127,10 @@ private:
pthread_t _timer_thread;
static void *timerThreadFunc(void *arg);
+ bool _audio_thread_exit;
+ pthread_t _audio_thread;
+ static void *audioThreadFunc(void *arg);
+
bool _enable_zoning;
bool _virtkeybd_on;
@@ -137,7 +145,7 @@ private:
void _setCursorPalette(const byte *colors, uint start, uint num);
public:
- OSystem_Android();
+ OSystem_Android(int audio_sample_rate, int audio_buffer_size);
virtual ~OSystem_Android();
virtual void initBackend();