Checks if a sound is playing (removes finished sound);
| 497 | |
| 498 | // Checks if a sound is playing (removes finished sound); |
| 499 | bool lnxsound::IsSoundInstancePlaying(int sound_uid) { |
| 500 | int current_slot; |
| 501 | |
| 502 | if (sound_device == 0) |
| 503 | return false; |
| 504 | |
| 505 | if ((current_slot = ValidateUniqueId(sound_uid)) == -1) |
| 506 | return false; |
| 507 | |
| 508 | if (sound_cache[current_slot].m_status != SSF_UNUSED) { |
| 509 | return true; |
| 510 | } |
| 511 | |
| 512 | return false; |
| 513 | } |
| 514 | |
| 515 | int lnxsound::IsSoundPlaying(int sound_index) { |
| 516 | if (sound_device == 0) |
no outgoing calls
no test coverage detected