Construct a new sound queue that pushes sound packets to "buffer" in sync to the playback of "voice". @param voice The SFXVoice to synchronize to. @param buffer The sound buffer to push sound packets to.
| 245 | /// @param voice The SFXVoice to synchronize to. |
| 246 | /// @param buffer The sound buffer to push sound packets to. |
| 247 | SFXAsyncQueue( SFXVoice* voice, |
| 248 | SFXBuffer* buffer, |
| 249 | bool looping = false ) |
| 250 | : Parent( DEFAULT_STREAM_QUEUE_LENGTH, |
| 251 | voice, |
| 252 | buffer, |
| 253 | ( looping |
| 254 | ? 0 |
| 255 | : ( buffer->getDuration() * ( buffer->getFormat().getSamplesPerSecond() / 1000 ) ) - voice->mOffset ) ) {} |
| 256 | }; |
| 257 | |
| 258 | //-------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected