Merge tag 'v0.20.9'
release v0.20.9
This commit is contained in:
@@ -74,19 +74,19 @@ class OpenALOutput {
|
||||
|
||||
private:
|
||||
gcc_pure
|
||||
ALint GetSourceI(ALenum param) const {
|
||||
ALint GetSourceI(ALenum param) const noexcept {
|
||||
ALint value;
|
||||
alGetSourcei(source, param, &value);
|
||||
return value;
|
||||
}
|
||||
|
||||
gcc_pure
|
||||
bool HasProcessed() const {
|
||||
bool HasProcessed() const noexcept {
|
||||
return GetSourceI(AL_BUFFERS_PROCESSED) > 0;
|
||||
}
|
||||
|
||||
gcc_pure
|
||||
bool IsPlaying() const {
|
||||
bool IsPlaying() const noexcept {
|
||||
return GetSourceI(AL_SOURCE_STATE) == AL_PLAYING;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user