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

openalsoft compatibility fixes, basic measures for exceeding audio source limit

This commit is contained in:
tmj-fstate
2017-12-01 04:12:26 +01:00
parent 76e58200d2
commit 0f0cb4209b
6 changed files with 88 additions and 45 deletions

View File

@@ -55,6 +55,7 @@ struct openal_source {
for( auto const buffer : buffers ) {
bufferids.emplace_back( audio::renderer.buffer( buffer ).id ); }
::alSourceQueueBuffers( id, bufferids.size(), bufferids.data() );
::alSourceRewind( id );
return *this; }
// starts playback of queued buffers
void
@@ -128,7 +129,7 @@ public:
private:
// types
using source_list = std::list<audio::openal_source>;
using source_sequence = std::stack<audio::openal_source>;
using source_sequence = std::stack<ALuint>;
// methods
bool
init_caps();