|
| | AudioEngine (dsp::Transport &transport, IHardwareAudioInterface &hw_interface, IHardwareMidiInterface &midi_interface, dsp::DspGraphDispatcher &graph_dispatcher, const dsp::TempoMap &tempo_map, QObject *parent=nullptr) |
| | Create a new audio engine.
|
|
| ~AudioEngine () override |
| | Closes any connections and free's data.
|
| Q_INVOKABLE int | xRunCount () const |
| Q_INVOKABLE double | loadPercentage () const |
|
int | sampleRate () const |
| | Current sample rate from the hardware interface (QML-friendly).
|
|
int | blockLength () const |
| | Current block length from the hardware interface (QML-friendly).
|
|
Q_SIGNAL void | sampleRateChanged (int sampleRate) |
|
Q_SIGNAL void | blockLengthChanged (int blockLength) |
|
units::sample_rate_t | sample_rate () const |
| | Current sample rate as a unit type.
|
|
units::sample_u32_t | block_length () const |
| | Current block length as a unit type.
|
|
utils::Utf8String | device_name () const |
| | Current audio device name from the hardware interface.
|
| void | wait_for_pause (EngineState &state, bool force_pause, bool with_fadeout) |
|
void | resume (const EngineState &state) |
| Q_INVOKABLE void | activate () |
| | Activate the engine if not already active.
|
| Q_INVOKABLE void | deactivate () |
| | Deactivates the engine if active.
|
| bool | process_prepare (dsp::Transport::TransportSnapshot &transport_snapshot, units::sample_u32_t nframes, SemaphoreRAII< moodycamel::LightweightSemaphore > &sem) noexcept |
| | To be called by each implementation to prepare the structures before processing.
|
| auto | process (const dsp::PlayheadProcessingGuard &playhead_guard, units::sample_u32_t total_frames_to_process) noexcept -> ProcessReturnStatus |
| | Processes current cycle.
|
| void | advance_playhead_after_processing (dsp::Transport::TransportSnapshot &transport_snapshot, const dsp::PlayheadProcessingGuard &playhead_guard, units::sample_u32_t roll_nframes, units::sample_u32_t nframes) noexcept |
| | Advances the playhead if transport is rolling.
|
| auto & | get_monitor_out_port () |
| auto * | midi_panic_processor () const |
| auto * | audio_input_processor () const |
| | Returns the audio input processor, or nullptr if no audio device has started.
|
| const auto & | midi_input_processors () const |
|
void | panic_all () |
| | Queues MIDI note off to event queues.
|
| bool | activated () const |
| bool | running () const |
| void | set_running (bool run) |
| auto & | graph_dispatcher () |
| bool | exporting () const |
| void | set_exporting (bool exporting) |
| auto | get_processing_lock () |
| void | execute_function_with_paused_processing_synchronously (const std::function< void()> &func, bool recalculate_graph) |
| | Executes the given function after pausing processing and then resumes processing.
|
The audio engine.
Definition at line 27 of file engine.h.