| 2105 | } |
| 2106 | |
| 2107 | Result Update() |
| 2108 | { |
| 2109 | DM_PROFILE("Sound"); |
| 2110 | SoundSystem* sound = g_SoundSystem; |
| 2111 | if (!sound) |
| 2112 | { |
| 2113 | return RESULT_OK; |
| 2114 | } |
| 2115 | |
| 2116 | if (!sound->m_Thread) |
| 2117 | return UpdateInternal(sound); |
| 2118 | return (Result)dmAtomicGet32(&sound->m_Status); |
| 2119 | } |
| 2120 | |
| 2121 | Result Pause(bool pause) |
| 2122 | { |