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

Method create

Engine/source/sfx/dsound/sfxDSBuffer.cpp:32–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32SFXDSBuffer* SFXDSBuffer::create( IDirectSound8 *dsound,
33 const ThreadSafeRef< SFXStream >& stream,
34 SFXDescription* description,
35 bool useHardware )
36{
37 AssertFatal( dsound, "SFXDSBuffer::create() - Got null dsound!" );
38 AssertFatal( stream, "SFXDSBuffer::create() - Got a null stream!" );
39 AssertFatal( description, "SFXDSBuffer::create() - Got a null description" );
40
41 SFXDSBuffer* buffer = new SFXDSBuffer( dsound,
42 stream,
43 description,
44 useHardware );
45
46
47 if( !buffer->_createBuffer( &buffer->mBuffer ) )
48 SAFE_DELETE( buffer );
49
50 return buffer;
51}
52
53SFXDSBuffer::SFXDSBuffer( IDirectSound8* dsound,
54 const ThreadSafeRef< SFXStream >& stream,

Callers

nothing calls this directly

Calls 1

_createBufferMethod · 0.45

Tested by

no test coverage detected