16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 13:59:19 +02:00

fix build in compilers other than msvc: include shuffling

This commit is contained in:
milek7
2018-01-25 15:43:41 +01:00
parent 45f28131a7
commit 1413aae881
26 changed files with 95 additions and 55 deletions

View File

@@ -11,6 +11,7 @@ http://mozilla.org/MPL/2.0/.
#include "audio.h"
#include "ResourceManager.h"
#include "Globals.h"
class sound_source;
@@ -169,7 +170,8 @@ openal_source::bind( sound_source *Controller, uint32_sequence Sounds, Iterator_
auto const &buffer { audio::renderer.buffer( bufferhandle ) };
buffers.emplace_back( buffer.id );
if( false == buffer.caption.empty() ) {
Global::tranTexts.Add( buffer.caption ); } } );
Global::tranTexts.Add( buffer.caption );
} } );
if( id != audio::null_resource ) {
::alSourceQueueBuffers( id, static_cast<ALsizei>( buffers.size() ), buffers.data() );