| 296 | //----------------------------------------------------------------------------- |
| 297 | |
| 298 | SFXBuffer* SFXProfile::getBuffer() |
| 299 | { |
| 300 | if ( mDescription->mIsStreaming ) |
| 301 | { |
| 302 | // Streaming requires unique buffers per |
| 303 | // source, so this creates a new buffer. |
| 304 | if ( SFX ) |
| 305 | return _createBuffer(); |
| 306 | |
| 307 | return NULL; |
| 308 | } |
| 309 | |
| 310 | if ( mBuffer.isNull() ) |
| 311 | _preloadBuffer(); |
| 312 | |
| 313 | return mBuffer; |
| 314 | } |
| 315 | |
| 316 | //----------------------------------------------------------------------------- |
| 317 |
no test coverage detected