| 149 | } |
| 150 | |
| 151 | void stopAllSounds() |
| 152 | { |
| 153 | if (s_nullDevice) { return; } |
| 154 | |
| 155 | SDL_LockMutex(s_mutex); |
| 156 | s_sourceCount = 0u; |
| 157 | memset(s_sources, 0, sizeof(SoundSource) * MAX_SOUND_SOURCES); |
| 158 | for (s32 i = 0; i < MAX_SOUND_SOURCES; i++) |
| 159 | { |
| 160 | s_sources[i].slot = i; |
| 161 | } |
| 162 | SDL_UnlockMutex(s_mutex); |
| 163 | } |
| 164 | |
| 165 | void selectDevice(s32 id) |
| 166 | { |