#include "project.hh"
Classes | |
struct | PStorage |
Public Member Functions | |
void | _activate () override |
AudioProcessorP | _audio_processor () const override |
void | _deactivate () override |
void | _set_event_source (AudioProcessorP esource) override |
TrackS | all_tracks () override |
bool | can_redo () override |
bool | can_undo () override |
void | clear_undo () |
TrackP | create_track () override |
DeviceInfo | device_info () override |
void | discard () override |
void | group_undo (const String &undoname) override |
bool | is_playing () override |
StreamReaderP | load_blob (const String &fspath) |
Error | load_project (const String &utf8filename) override |
String | loader_resolve (const String &hexhash) |
AudioProcessorP | master_processor () const |
TrackP | master_track () override |
void | push_undo (const VoidF &func) |
void | redo () override |
bool | remove_track (Track &child) override |
Error | save_project (const String &utf8filename, bool collect) override |
String | saved_filename () override |
const TickSignature & | signature () const |
void | start_playback () override |
void | start_playback (double autostop) |
void | stop_playback () override |
TelemetryFieldS | telemetry () const override |
ssize_t | track_index (const Track &child) const |
void | undo () override |
UndoScope | undo_scope (const String &scopename) |
size_t | undo_size_guess () const |
void | ungroup_undo () override |
Error | writer_add_file (const String &fspath) |
Error | writer_collect (const String &fspath, String *hexhashp) |
String | writer_file_name (const String &fspath) const |
![]() | |
void | _disconnect_remove () override |
bool | gui_supported () override |
void | gui_toggle () override |
bool | gui_visible () override |
bool | is_active () override |
DeviceS | list_devices () override |
![]() | |
GadgetImpl * | _parent () const override |
template<class O , class M > | |
void | _register_parameter (O *, M *, const Param::ExtraVals &) const |
void | _set_parent (GadgetImpl *parent) override |
PropertyS | access_properties () override |
Value | get_data (const String &key) const override |
bool | set_data (const String &key, const Value &v) override |
String | type_nick () const override |
![]() | |
void | emit_event (const String &type, const String &detail, const ValueR fields={}) override |
void | emit_notify (const String &detail) override |
ASE_USE_RESULT Connection | on_event (const String &eventselector, const EventHandler &eventhandler) override |
![]() | |
void | js_trigger (const String &eventselector, JsTrigger callback) |
![]() | |
template<class T > | |
bool | del_custom_data (CustomDataKey< T > *key) |
template<class T > | |
T | get_custom_data (CustomDataKey< T > *key) const |
template<class T > | |
bool | has_custom_data (CustomDataKey< T > *key) const |
template<class T > | |
void | set_custom_data (CustomDataKey< T > *key, T data) |
![]() | |
ProjectImpl * | _project () const |
virtual PropertyP | access_property (String ident) |
Value | get_value (String ident) |
virtual StringS | list_properties () |
bool | set_value (String ident, const Value &v) |
![]() | |
Track * | _track () const |
void | remove_self () |
Static Public Member Functions | |
static ProjectImplP | create (const String &projectname) |
![]() | |
static DeviceInfo | extract_info (const String &aseid, const AudioProcessor::StaticInfo &static_info) |
![]() | |
static ProjectP | last_project () |
Static Public Attributes | |
static size_t | undo_mem_counter |
Protected Member Functions | |
virtual bool | bpm_ (const double *n, double *q) override |
virtual bool | denominator_ (const double *n, double *q) override |
String | match_serialized (const String ®ex, int group) override |
virtual bool | numerator_ (const double *n, double *q) override |
ProjectImpl () | |
void | serialize (WritNode &xs) override |
Error | snapshot_project (String &json) |
void | update_tempo () |
virtual | ~ProjectImpl () |
![]() | |
void | _set_parent (GadgetImpl *parent) override |
DeviceImpl () | |
![]() | |
virtual void | create_properties () |
virtual String | fallback_name () const |
uint64_t | gadget_flags () const |
uint64_t | gadget_flags (uint64_t setbits, uint64_t mask=~uint64_t(0)) |
virtual bool | name_ (const std::string *n, std::string *q) override |
virtual | ~GadgetImpl () |
![]() | |
virtual | ~ObjectImpl ()=0 |
![]() | |
virtual | ~EmittableImpl () |
![]() | |
virtual | ~VirtualBase () noexcept=0 |
![]() | |
virtual | ~Object ()=0 |
![]() | |
void | custom_data_destroy () |
~CustomDataContainer () | |
![]() | |
Gadget () | |
![]() | |
Device () | |
![]() | |
Project () | |
Additional Inherited Members | |
![]() | |
using | MemberAccessF = std::function< bool(GadgetImpl *, const Value *, Value *)> |
using | MemberClassT = bool(*)(const SharedBase &) |
using | MemberInfosP = const StringS &(*)() |
![]() | |
Member<&Gadget::name_ > | name |
![]() | |
Member<&Device::devs_ > | devs |
![]() | |
Member<&Project::bpm_ > | bpm |
Member<&Project::denominator_ > | denominator |
Member<&Project::numerator_ > | numerator |
![]() | |
enum | : uint64_t { GADGET_DESTROYED , DEVICE_ACTIVE , MASTER_TRACK } |
![]() | |
static String | canonify_key (const String &input) |
![]() | |
PropertyImplS | props_ |
|
explicitprotected |
|
protectedvirtual |
|
overrideprotectedvirtual |
Implements Project.
|
overrideprotectedvirtual |
Implements Project.
|
overrideprotectedvirtual |
Implements Project.
|
overrideprotectedvirtual |
Serialize members and childern.
Reimplemented from GadgetImpl.
|
protected |
Match `regex` against the serialized project state.
Implements Project.
|
overridevirtual |
Add AudioProcessor to the Engine and start processing.
Reimplemented from DeviceImpl.
|
overridevirtual |
Stop processing the corresponding AudioProcessor.
Reimplemented from DeviceImpl.
const TickSignature & signature | ( | ) | const |
|
overridevirtual |
Discard project and associated resources.
Implements Project.
|
overridevirtual |
Retrieve the corresponding AudioProcessor.
Implements Device.
|
overridevirtual |
Implements Device.
|
overridevirtual |
void push_undo | ( | const VoidF & | func | ) |
|
overridevirtual |
Undo the last project modification.
Implements Project.
|
overridevirtual |
Check if any undo steps have been recorded.
Implements Project.
|
overridevirtual |
Redo the last undo modification.
Implements Project.
|
overridevirtual |
Check if any redo steps have been recorded.
Implements Project.
|
overridevirtual |
Merge upcoming undo steps.
Implements Project.
|
overridevirtual |
Stop merging undo steps.
Implements Project.
void clear_undo | ( | ) |
size_t undo_size_guess | ( | ) | const |
void start_playback | ( | double | autostop | ) |
|
overridevirtual |
Start playback of a project, requires active sound engine.
Implements Project.
|
overridevirtual |
Stop project playback.
Implements Project.
|
overridevirtual |
Check whether a project is currently playing (song sequencing).
Implements Project.
|
overridevirtual |
|
overridevirtual |
List all tracks of the project.
Implements Project.
|
overridevirtual |
Retrieve the master track.
Implements Project.
Load project from file `filename`.
Implements Project.
StreamReaderP load_blob | ( | const String & | fspath | ) |
|
overridevirtual |
Retrieve UTF-8 filename for save or from load.
Implements Project.
|
overridevirtual |
Retrieve project telemetry locations.
Implements Project.
AudioProcessorP master_processor | ( | ) | const |
ssize_t track_index | ( | const Track & | child | ) | const |
|
static |
|
static |