aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound/audio_buffer.h
diff options
context:
space:
mode:
authorPaul Gilbert2017-02-05 23:22:43 -0500
committerPaul Gilbert2017-02-05 23:22:43 -0500
commit0ad57c0fed30bf404165b90da86bf7862da4c59e (patch)
treee921ed7c7a1a315f010fc7f2b458f612c73282fe /engines/titanic/sound/audio_buffer.h
parentec3e3e3ae34899c8b491731bfa935f7b80581346 (diff)
downloadscummvm-rg350-0ad57c0fed30bf404165b90da86bf7862da4c59e.tar.gz
scummvm-rg350-0ad57c0fed30bf404165b90da86bf7862da4c59e.tar.bz2
scummvm-rg350-0ad57c0fed30bf404165b90da86bf7862da4c59e.zip
TITANIC: Further renamings for the audio buffer
Diffstat (limited to 'engines/titanic/sound/audio_buffer.h')
-rw-r--r--engines/titanic/sound/audio_buffer.h29
1 files changed, 24 insertions, 5 deletions
diff --git a/engines/titanic/sound/audio_buffer.h b/engines/titanic/sound/audio_buffer.h
index 5b6fb11072..32a5790e57 100644
--- a/engines/titanic/sound/audio_buffer.h
+++ b/engines/titanic/sound/audio_buffer.h
@@ -48,20 +48,39 @@ private:
void reverse();
public:
Common::Array<byte> _buffer;
- int _fieldC;
+ int _readBytesLeft;
int _writeBytesLeft;
bool _flag;
- int _field18;
+ bool _disabled;
public:
CAudioBuffer(int bufferSize);
~CAudioBuffer();
+ /**
+ * Resets the audio buffer
+ */
void reset();
- byte *getPtr1();
+ /**
+ * Gets a pointer to the start of previously written data
+ */
+ uint16 *getReadPtr();
+
+ /**
+ * Returns the number of bytes that can be read
+ */
+ int getBytesToRead() const { return _readBytesLeft; }
+
+ /**
+ * Advances the read index
+ */
+ void advanceRead(int size);
+
+ /**
+ * Gets a pointer to the remainder of the audio buffer that
+ * can be written to
+ */
uint16 *getWritePtr();
- int getC() const { return _fieldC; }
- void setC(int val);
/**
* Returns how many bytes can be written before hitting the