diff options
Diffstat (limited to 'engines/titanic/sound/audio_buffer.h')
-rw-r--r-- | engines/titanic/sound/audio_buffer.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/engines/titanic/sound/audio_buffer.h b/engines/titanic/sound/audio_buffer.h index ad8c3e4064..c775c5bb35 100644 --- a/engines/titanic/sound/audio_buffer.h +++ b/engines/titanic/sound/audio_buffer.h @@ -34,6 +34,16 @@ class CAudioBuffer { private: Common::Mutex _mutex; FixedQueue<int16, AUDIO_SAMPLING_RATE * 4> _data; +private: + /** + * Enters a critical section + */ + void enterCriticalSection(); + + /** + * Leave a critical section + */ + void leaveCriticalSection(); public: bool _finished; public: @@ -80,14 +90,9 @@ public: int16 pop(); /** - * Enters a critical section - */ - void enterCriticalSection(); - - /** - * Leave a critical section + * Reads out a specified number of samples */ - void leaveCriticalSection(); + int read(int16 *values, int count); }; } // End of namespace Titanic |