MCPcopy Create free account
hub / github.com/LMMS/lmms / SamplePlayHandle

Method SamplePlayHandle

src/core/SamplePlayHandle.cpp:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35SamplePlayHandle::SamplePlayHandle( const QString& sampleFile ) :
36 PlayHandle( TypeSamplePlayHandle ),
37 m_sampleBuffer( new SampleBuffer( sampleFile ) ),
38 m_doneMayReturnTrue( true ),
39 m_frame( 0 ),
40 m_ownAudioPort( true ),
41 m_defaultVolumeModel( DefaultVolume, MinVolume, MaxVolume, 1 ),
42 m_volumeModel( &m_defaultVolumeModel ),
43 m_track( NULL ),
44 m_bbTrack( NULL )
45{
46 setAudioPort( new AudioPort( "SamplePlayHandle", false ) );
47}
48
49
50

Callers

nothing calls this directly

Calls 3

sampleBufferMethod · 0.80
getTrackMethod · 0.45
audioPortMethod · 0.45

Tested by

no test coverage detected