| 205 | } |
| 206 | |
| 207 | Result FinalizeOpenal() { |
| 208 | alDeleteSources(m_Sources.Capacity(), m_Sources.Begin()); |
| 209 | checkForAlErrors("alDeleteSources"); |
| 210 | alDeleteBuffers(m_Buffers.Size(), m_Buffers.Begin()); |
| 211 | checkForAlErrors("alDeleteBuffers"); |
| 212 | alcMakeContextCurrent(nullptr); |
| 213 | if (m_AlContext) { |
| 214 | alcDestroyContext(m_AlContext); |
| 215 | checkForAlcErrors(m_AlDevice, "alDestroyContext"); |
| 216 | } |
| 217 | if (m_AlDevice) { |
| 218 | alcCloseDevice(m_AlDevice); |
| 219 | checkForAlErrors("alcCloseDevice"); |
| 220 | } |
| 221 | return RESULT_OK; |
| 222 | } |
| 223 | }; |
| 224 | |
| 225 | SoundSystem* g_SoundSystem = 0; |
no test coverage detected