audio::get renamed to audio::get_speaker

This commit is contained in:
MihailRis
2024-03-05 14:30:37 +03:00
parent 6bf6e8e011
commit 13a8c61ee1
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ Speaker* ALStream::createSpeaker(bool loop, int channel) {
void ALStream::bindSpeaker(speakerid_t speaker) {
auto sp = audio::get(this->speaker);
auto sp = audio::get_speaker(this->speaker);
if (sp) {
sp->stop();
}
@@ -87,7 +87,7 @@ void ALStream::update(double delta) {
if (this->speaker == 0) {
return;
}
Speaker* speaker = audio::get(this->speaker);
auto speaker = audio::get_speaker(this->speaker);
if (speaker == nullptr) {
speaker = 0;
return;