Browse Source

Audio: apply mosra's suggestion.

Co-Authored-By: Vladimír Vondruš <mosra@centrum.cz>
pull/338/head
Guillaume Jacquemin 7 years ago committed by GitHub
parent
commit
d96cfcaeda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Magnum/Audio/Source.cpp

2
src/Magnum/Audio/Source.cpp

@ -57,7 +57,7 @@ std::size_t Source::unqueueBuffers(Containers::ArrayView<Containers::Reference<B
Containers::Array<ALuint> unqueuedIds(processedBuffers);
alSourceUnqueueBuffers(_id, unqueuedIds.size(), unqueuedIds.data());
auto isNotUnqueued = [&unqueuedIds](Containers::Reference<Buffer> buffer){
auto isNotUnqueued = [&unqueuedIds](Buffer& buffer) {
for(ALuint id : unqueuedIds) {
if(buffer->id() == id)
return false;

Loading…
Cancel
Save