| 103 | } |
| 104 | |
| 105 | bool Soloud::isValidVoiceHandle(handle aVoiceHandle) |
| 106 | { |
| 107 | // voice groups are not valid voice handles |
| 108 | if ((aVoiceHandle & 0xfffff000) == 0xfffff000) |
| 109 | return 0; |
| 110 | |
| 111 | lockAudioMutex(); |
| 112 | if (getVoiceFromHandle(aVoiceHandle) != -1) |
| 113 | { |
| 114 | unlockAudioMutex(); |
| 115 | return 1; |
| 116 | } |
| 117 | unlockAudioMutex(); |
| 118 | return 0; |
| 119 | } |
| 120 | |
| 121 | |
| 122 | time Soloud::getLoopPoint(handle aVoiceHandle) |