diff options
author | Stefan Radomski <sradomski@mintwerk.de> | 2016-02-24 10:50:32 (GMT) |
---|---|---|
committer | Stefan Radomski <sradomski@mintwerk.de> | 2016-02-24 10:50:32 (GMT) |
commit | cf19f11b8d2bd6d9566c7528fbed40af06928abf (patch) | |
tree | a373b8e934fa78a1bf9db8afca2e9854437e45da /src/uscxml/plugins/invoker/audio | |
parent | 7212d5a3dbbd2845d09df96b2c345132c8a24931 (diff) | |
download | uscxml-cf19f11b8d2bd6d9566c7528fbed40af06928abf.zip uscxml-cf19f11b8d2bd6d9566c7528fbed40af06928abf.tar.gz uscxml-cf19f11b8d2bd6d9566c7528fbed40af06928abf.tar.bz2 |
Some more refactoring and VHDL transformation
Diffstat (limited to 'src/uscxml/plugins/invoker/audio')
-rw-r--r-- | src/uscxml/plugins/invoker/audio/OpenALPlayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uscxml/plugins/invoker/audio/OpenALPlayer.cpp b/src/uscxml/plugins/invoker/audio/OpenALPlayer.cpp index 5833e2b..3aaeddf 100644 --- a/src/uscxml/plugins/invoker/audio/OpenALPlayer.cpp +++ b/src/uscxml/plugins/invoker/audio/OpenALPlayer.cpp @@ -96,12 +96,12 @@ OpenALPlayer::~OpenALPlayer() { if (alIsSource(_alId)) { throw std::runtime_error("openal source id still valid"); } - for (int i = 0; i < _nrBuffers; i++) { + for (size_t i = 0; i < _nrBuffers; i++) { assert(alIsBuffer(_bufferIds[i])); free(_buffers[i]); } alDeleteBuffers(_nrBuffers, _bufferIds); - for (int i = 0; i < _nrBuffers; i++) { + for (size_t i = 0; i < _nrBuffers; i++) { // assert(!alIsBuffer(_bufferIds[i])); } free(_buffers); @@ -134,7 +134,7 @@ void OpenALPlayer::init() { _buffers = (char**)malloc(_nrBuffers * sizeof(char*)); _bufferIds = (ALuint*)malloc(_nrBuffers * sizeof(ALuint)); - for (int i = 0; i < _nrBuffers; i++) { + for (size_t i = 0; i < _nrBuffers; i++) { _buffers[i] = 0; //(char*)malloc(_bufferSize); } @@ -384,7 +384,7 @@ void OpenALPlayer::updateBuffers() { alSourceUnqueueBuffers(_alId, processed, bufferIds); checkOpenALError(__LINE__); - for (int id = 0; id < processed; id++) { + for (size_t id = 0; id < processed; id++) { int bufferIdx = bufferIndex(bufferIds[id]); // refill the buffer with data from the callback |