Minor comments on audio.c

This commit is contained in:
mcc 2021-07-23 12:11:54 -04:00 committed by bjorn
parent b047daa712
commit c682ced654
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ struct Source {
uint32_t ref;
uint32_t index;
Sound* sound;
// Note: Converter is written once in lovrSourceCreate and can never be changed.
ma_data_converter* converter;
intptr_t spatializerMemo;
uint32_t offset;
@ -464,6 +465,7 @@ Sound* lovrSourceGetSound(Source* source) {
}
bool lovrSourcePlay(Source* source) {
// If too many sources already running, refuse to play
if (state.sourceMask == ~0ull) {
return false;
}