| 513 | } |
| 514 | |
| 515 | int lnxsound::IsSoundPlaying(int sound_index) { |
| 516 | if (sound_device == 0) |
| 517 | return -1; |
| 518 | |
| 519 | for (auto ¤t_slot : sound_cache) { |
| 520 | if ((current_slot.m_status != SSF_UNUSED) && (current_slot.m_sound_index == sound_index)) { |
| 521 | return current_slot.m_unique_id; |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | return -1; |
| 526 | } |
| 527 | |
| 528 | // Stops 2d and 3d sounds |
| 529 | void lnxsound::StopSound(int sound_uid, uint8_t f_immediately) { |
no outgoing calls
no test coverage detected