|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
A recording event. More...
#include <src/gui/dsp/recording_event.h>

Public Types | |
| enum class | Type { StartTrackRecording , StartAutomationRecording , Midi , Audio , Automation , PauseTrackRecording , PauseAutomationRecording , StopTrackRecording , StopAutomationRecording } |
Public Member Functions | |
| void | init (const Type type, const Track &track, const EngineProcessTimeInfo &time_nfo, const char *file=nullptr, const char *func=nullptr, int lineno=0) |
Data Fields | |
| Type | type_ = Type::Audio |
| bool | has_midi_event_ = false |
| dsp::PortIdentifier::TrackUuid | track_uuid_ |
| The identifier of the track this event is for. | |
| unsigned_frame_t | g_start_frame_w_offset_ = 0 |
| Global start frames of the event (including offset). | |
| nframes_t | local_offset_ = 0 |
| Offset in current cycle that this event starts from. | |
| nframes_t | nframes_ = 0 |
| Number of frames processed in this event. | |
| int | automation_track_idx_ = 0 |
| Index of automation track, if automation. | |
| std::array< float, 8192 > | lbuf_ {} |
| The actual data (if audio). | |
| std::array< float, 8192 > | rbuf_ {} |
| dsp::MidiEvent | midi_event_ |
| MidiEvent, if midi. | |
| const char * | file_ = nullptr |
| const char * | func_ = nullptr |
| int | lineno_ = 0 |
A recording event.
During recording, a recording event must be sent in each cycle for all record-enabled tracks.
Recording events are queued for the recording thread to handle.
Definition at line 29 of file recording_event.h.
|
strong |
Definition at line 32 of file recording_event.h.
|
inline |
Definition at line 56 of file recording_event.h.
| int RecordingEvent::automation_track_idx_ = 0 |
Index of automation track, if automation.
Definition at line 101 of file recording_event.h.
| const char* RecordingEvent::file_ = nullptr |
Definition at line 117 of file recording_event.h.
| const char* RecordingEvent::func_ = nullptr |
Definition at line 118 of file recording_event.h.
| unsigned_frame_t RecordingEvent::g_start_frame_w_offset_ = 0 |
Global start frames of the event (including offset).
Definition at line 92 of file recording_event.h.
| bool RecordingEvent::has_midi_event_ = false |
Definition at line 86 of file recording_event.h.
| std::array<float, 8192> RecordingEvent::lbuf_ {} |
The actual data (if audio).
This will be nframes_ times the number of channels in the track.
Definition at line 108 of file recording_event.h.
| int RecordingEvent::lineno_ = 0 |
Definition at line 119 of file recording_event.h.
| nframes_t RecordingEvent::local_offset_ = 0 |
Offset in current cycle that this event starts from.
Definition at line 95 of file recording_event.h.
| dsp::MidiEvent RecordingEvent::midi_event_ |
MidiEvent, if midi.
Definition at line 114 of file recording_event.h.
| nframes_t RecordingEvent::nframes_ = 0 |
Number of frames processed in this event.
Definition at line 98 of file recording_event.h.
| std::array<float, 8192> RecordingEvent::rbuf_ {} |
Definition at line 109 of file recording_event.h.
| dsp::PortIdentifier::TrackUuid RecordingEvent::track_uuid_ |
The identifier of the track this event is for.
Definition at line 89 of file recording_event.h.
| Type RecordingEvent::type_ = Type::Audio |
Definition at line 84 of file recording_event.h.