Audacity 3.2.0
|
#include <MockSampleBlockFactory.h>
Private Member Functions | |
SampleBlockIDs | GetActiveBlockIDs () override |
SampleBlockPtr | DoCreate (constSamplePtr src, size_t numsamples, sampleFormat srcformat) override |
SampleBlockPtr | DoCreateSilent (size_t numsamples, sampleFormat srcformat) override |
SampleBlockPtr | DoCreateFromXML (sampleFormat srcformat, const AttributesList &attrs) override |
SampleBlockPtr | DoCreateFromId (sampleFormat srcformat, SampleBlockID id) override |
Private Attributes | |
long long | blockIdCount = 0 |
Additional Inherited Members | |
Public Types inherited from SampleBlockFactory | |
using | SampleBlockIDs = std::unordered_set< SampleBlockID > |
Public Types inherited from Observer::Publisher< SampleBlockCreateMessage > | |
using | message_type = SampleBlockCreateMessage |
using | CallbackReturn = std::conditional_t< true, void, bool > |
using | Callback = std::function< CallbackReturn(const SampleBlockCreateMessage &) > |
Type of functions that can be connected to the Publisher. More... | |
Public Member Functions inherited from SampleBlockFactory | |
virtual | ~SampleBlockFactory () |
SampleBlockPtr | Create (constSamplePtr src, size_t numsamples, sampleFormat srcformat) |
SampleBlockPtr | CreateSilent (size_t numsamples, sampleFormat srcformat) |
SampleBlockPtr | CreateFromXML (sampleFormat srcformat, const AttributesList &attrs) |
SampleBlockPtr | CreateFromId (sampleFormat srcformat, SampleBlockID id) |
virtual SampleBlockIDs | GetActiveBlockIDs ()=0 |
Public Member Functions inherited from Observer::Publisher< SampleBlockCreateMessage > | |
Publisher (ExceptionPolicy *pPolicy=nullptr, Alloc a={}) | |
Constructor supporting type-erased custom allocation/deletion. More... | |
Publisher (Publisher &&)=default | |
Publisher & | operator= (Publisher &&)=default |
Subscription | Subscribe (Callback callback) |
Connect a callback to the Publisher; later-connected are called earlier. More... | |
Subscription | Subscribe (Object &obj, Return(Object::*callback)(Args...)) |
Overload of Subscribe takes an object and pointer-to-member-function. More... | |
Static Public Member Functions inherited from SampleBlockFactory | |
static SampleBlockFactoryPtr | New (AudacityProject &project) |
Static Public Attributes inherited from Observer::Publisher< SampleBlockCreateMessage > | |
static constexpr bool | notifies_all |
virtual SampleBlockPtr | DoCreate (constSamplePtr src, size_t numsamples, sampleFormat srcformat)=0 |
virtual SampleBlockPtr | DoCreateSilent (size_t numsamples, sampleFormat srcformat)=0 |
virtual SampleBlockPtr | DoCreateFromXML (sampleFormat srcformat, const AttributesList &attrs)=0 |
virtual SampleBlockPtr | DoCreateFromId (sampleFormat srcformat, SampleBlockID id)=0 |
Protected Member Functions inherited from Observer::Publisher< SampleBlockCreateMessage > | |
CallbackReturn | Publish (const SampleBlockCreateMessage &message) |
Send a message to connected callbacks. More... | |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 16 of file MockSampleBlockFactory.h.
|
inlineoverrideprivatevirtual |
Implements SampleBlockFactory.
Definition at line 25 of file MockSampleBlockFactory.h.
References blockIdCount.
|
inlineoverrideprivatevirtual |
Implements SampleBlockFactory.
Definition at line 47 of file MockSampleBlockFactory.h.
|
inlineoverrideprivatevirtual |
Implements SampleBlockFactory.
Definition at line 41 of file MockSampleBlockFactory.h.
|
inlineoverrideprivatevirtual |
Implements SampleBlockFactory.
Definition at line 33 of file MockSampleBlockFactory.h.
References blockIdCount, and SAMPLE_SIZE.
|
inlineoverrideprivatevirtual |
Implements SampleBlockFactory.
Definition at line 18 of file MockSampleBlockFactory.h.
References blockIdCount.
|
private |
Definition at line 52 of file MockSampleBlockFactory.h.
Referenced by DoCreate(), DoCreateSilent(), and GetActiveBlockIDs().