MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / AsyncState

Method AsyncState

Engine/source/gfx/video/theoraTexture.cpp:227–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225//-----------------------------------------------------------------------------
226
227TheoraTexture::AsyncState::AsyncState( const ThreadSafeRef< OggInputStream >& oggStream, bool looping )
228 : mOggStream( oggStream ),
229 mTheoraDecoder( dynamic_cast< OggTheoraDecoder* >( oggStream->getDecoder( "Theora" ) ) ),
230 mCurrentTime( 0 ),
231 mVorbisDecoder( dynamic_cast< OggVorbisDecoder* >( oggStream->getDecoder( "Vorbis" ) ) )
232{
233 if( mTheoraDecoder )
234 {
235 mTheoraDecoder->setTimeSource( this );
236 mFrameStream = new FrameStream( this, looping );
237 }
238}
239
240//-----------------------------------------------------------------------------
241

Callers

nothing calls this directly

Calls 2

getDecoderMethod · 0.80
setTimeSourceMethod · 0.80

Tested by

no test coverage detected