mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
audio::get renamed to audio::get_speaker
This commit is contained in:
parent
6bf6e8e011
commit
13a8c61ee1
3 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue