diff options
author | Charlie Birks <admin@daftgames.net> | 2014-01-27 17:11:35 +0000 |
---|---|---|
committer | Charlie Birks <admin@daftgames.net> | 2014-01-27 17:11:35 +0000 |
commit | e173e9f8aad7f8b35d7367edc8db0951e9c1ab6a (patch) | |
tree | 64abf85da4d4417b44b4a6c36d0bbff869566133 /src/library_openal.js | |
parent | a5243b43651a44df897537f1ee4b45f4a7c6350e (diff) |
add alIsSource
Diffstat (limited to 'src/library_openal.js')
-rw-r--r-- | src/library_openal.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/library_openal.js b/src/library_openal.js index 67481824..7918281c 100644 --- a/src/library_openal.js +++ b/src/library_openal.js @@ -334,6 +334,18 @@ var LibraryOpenAL = { } }, + alIsSource: function(sourceId) { + if (!AL.currentContext) { + return false; + } + + if (!AL.currentContext.src[sourceId - 1]) { + return false; + } else { + return true; + } + }, + alSourcei__deps: ['updateSource'], alSourcei: function(source, param, value) { if (!AL.currentContext) { |