Skip to content

Commit

Permalink
Avoid separate emplace_back+back calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Feb 28, 2025
1 parent 8f2fe93 commit a24675e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions alc/backends/wasapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1432,9 +1432,8 @@ FORCE_ALIGN void WasapiPlayback::mixerProc(SpatialDevice &audio)
auto id = decltype(flags){1} << al::countr_zero(flags);
flags &= ~id;

channels.emplace_back();
audio.mRender->ActivateSpatialAudioObject(static_cast<AudioObjectType>(id),
al::out_ptr(channels.back()));
al::out_ptr(channels.emplace_back()));
}
buffers.resize(channels.size());
if(mResampler)
Expand Down

0 comments on commit a24675e

Please sign in to comment.