Skip to content

Commit

Permalink
Add ALC.isExtensionPresent to OpenALAudioContext
Browse files Browse the repository at this point in the history
  • Loading branch information
ACrazyTown committed Aug 16, 2024
1 parent f6fad1e commit 4401627
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/lime/media/OpenALAudioContext.hx
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,16 @@ class OpenALAudioContext
return AL.isEnabled(capability);
}

public function isExtensionPresent(extname:String):Bool
public function isExtensionPresent(extname:String, device:ALDevice = null):Bool
{
return AL.isExtensionPresent(extname);
if (device == null)
{
return AL.isExtensionPresent(extname);
}
else
{
return ALC.isExtensionPresent(device, extname);
}
}

public function isSource(source:ALSource):Bool
Expand Down

0 comments on commit 4401627

Please sign in to comment.