]> git.tdb.fi Git - libs/al.git/blobdiff - source/source.cpp
Style update: add spaces around assignments
[libs/al.git] / source / source.cpp
index 348b41e37cd6d98d12665a9cc6929b064a9db518..23770b0163cf8418a85f831eecf55af0aa545c07 100644 (file)
@@ -96,7 +96,7 @@ void Source::queue_buffers(const vector<const Buffer *> &buffers)
 
 void Source::queue_buffer(const Buffer &buffer)
 {
-       uint bid=buffer.get_id();
+       uint bid = buffer.get_id();
        alSourceQueueBuffers(id, 1, &bid);
 }
 
@@ -111,7 +111,7 @@ void Source::unqueue_buffers(const vector<const Buffer *> &buffers)
 
 void Source::unqueue_buffer(const Buffer &buffer)
 {
-       uint bid=buffer.get_id();
+       uint bid = buffer.get_id();
        alSourceUnqueueBuffers(id, 1, &bid);
 }
 
@@ -122,14 +122,14 @@ void Source::clear_buffers()
 
 unsigned Source::get_buffers_queued() const
 {
-       int n=0;
+       int n = 0;
        get_attribute(AL_BUFFERS_QUEUED, &n);
        return n;
 }
 
 unsigned Source::get_buffers_processed() const
 {
-       int n=0;
+       int n = 0;
        get_attribute(AL_BUFFERS_PROCESSED, &n);
        return n;
 }