|
lmms
Cross-platform music production software
|
#include <SamplePlayHandle.h>
Public Member Functions | |
| SamplePlayHandle (Sample *sample, bool ownAudioBusHandle=true) | |
| SamplePlayHandle (const QString &sampleFile) | |
| SamplePlayHandle (SampleClip *clip) | |
| ~SamplePlayHandle () override | |
| bool | affinityMatters () const override |
| void | play (SampleFrame *buffer) override |
| bool | isFinished () const override |
| bool | isFromTrack (const Track *_track) const override |
| f_cnt_t | totalFrames () const |
| f_cnt_t | framesDone () const |
| void | setDoneMayReturnTrue (bool _enable) |
| void | setPatternTrack (PatternTrack *pt) |
| Public Member Functions inherited from lmms::PlayHandle | |
| PlayHandle (const Type type, f_cnt_t offset=0) | |
| PlayHandle & | operator= (PlayHandle &p) |
| virtual | ~PlayHandle () |
| const QThread * | affinity () const |
| Type | type () const |
| void | doProcessing () override |
| bool | requiresProcessing () const override |
| void | lock () |
| void | unlock () |
| bool | tryLock () |
| f_cnt_t | offset () const |
| void | setOffset (f_cnt_t _offset) |
| bool | usesBuffer () const |
| void | setUsesBuffer (const bool b) |
| AudioBusHandle * | audioBusHandle () |
| void | setAudioBusHandle (AudioBusHandle *busHandle) |
| void | releaseBuffer () |
| SampleFrame * | buffer () |
| Public Member Functions inherited from lmms::ThreadableJob | |
| ThreadableJob () | |
| ProcessingState | state () const |
| void | reset () |
| void | queue () |
| void | done () |
| void | process () |
Private Attributes | |
| Sample::PlaybackState | m_state |
| f_cnt_t | m_frame = 0 |
| Sample * | m_sample = nullptr |
| Track * | m_track = nullptr |
| PatternTrack * | m_patternTrack = nullptr |
| bool | m_doneMayReturnTrue = true |
| bool | m_ownAudioBusHandle = false |
Additional Inherited Members | |
| Public Types inherited from lmms::PlayHandle | |
| enum class | Type { NotePlayHandle = 0x01 , InstrumentPlayHandle = 0x02 , SamplePlayHandle = 0x04 , PresetPreviewHandle = 0x08 } |
| using | Types = Flags<Type> |
| Public Types inherited from lmms::ThreadableJob | |
| enum class | ProcessingState : int { Unstarted , Queued , InProgress , Done } |
| Static Public Attributes inherited from lmms::PlayHandle | |
| static constexpr std::size_t | MaxNumber = 1024 |
| Protected Attributes inherited from lmms::ThreadableJob | |
| std::atomic< ProcessingState > | m_state |
| lmms::SamplePlayHandle::SamplePlayHandle | ( | Sample * | sample, |
| bool | ownAudioBusHandle = true ) |
| lmms::SamplePlayHandle::SamplePlayHandle | ( | const QString & | sampleFile | ) |
| lmms::SamplePlayHandle::SamplePlayHandle | ( | SampleClip * | clip | ) |
|
override |
|
inlineoverridevirtual |
Reimplemented from lmms::PlayHandle.
|
inline |
|
overridevirtual |
Implements lmms::PlayHandle.
|
overridevirtual |
Implements lmms::PlayHandle.
|
overridevirtual |
Implements lmms::PlayHandle.
|
inline |
|
inline |
| f_cnt_t lmms::SamplePlayHandle::totalFrames | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |