| 167 | //----------------------------------------------------------------------------- |
| 168 | |
| 169 | void SFXSound::_reloadBuffer() |
| 170 | { |
| 171 | SFXProfile* profile = getProfile(); |
| 172 | if( profile != NULL && _releaseVoice() ) |
| 173 | { |
| 174 | SFXBuffer* buffer = profile->getBuffer(); |
| 175 | if( !buffer ) |
| 176 | { |
| 177 | Con::errorf( "SFXSound::_reloadBuffer() - Could not create device buffer!" ); |
| 178 | return; |
| 179 | } |
| 180 | |
| 181 | _setBuffer( buffer ); |
| 182 | |
| 183 | if( getLastStatus() == SFXStatusPlaying ) |
| 184 | SFX->_assignVoice( this ); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | //----------------------------------------------------------------------------- |
| 189 |
nothing calls this directly
no test coverage detected