4#ifndef __AUDIO_EXPORT_H__
5#define __AUDIO_EXPORT_H__
10#include <glib/gi18n.h>
13typedef struct ProgressInfo ProgressInfo;
31 EXPORT_FORMAT_OGG_VORBIS,
32 EXPORT_FORMAT_OGG_OPUS,
60export_format_from_pretty_str (
const char * pretty_str);
72static const char * export_time_range_str[] = {
78static inline const char *
81 return export_time_range_str[
static_cast<int> (export_time_range)];
105static const char * export_mode_str[] = {
111static inline const char *
114 return export_mode_str[
static_cast<int> (export_mode)];
119 BOUNCE_STEP_BEFORE_INSERTS,
120 BOUNCE_STEP_PRE_FADER,
121 BOUNCE_STEP_POST_FADER,
124static const char * bounce_step_str[] = {
125 N_ (
"Before inserts"),
130static inline const char *
131bounce_step_to_str (BounceStep bounce_step)
133 return bounce_step_str[
static_cast<int> (bounce_step)];
192 ProgressInfo * progress_info;
218 const char * filepath,
219 const char * bounce_name);
254 GPtrArray * connections,
281 GCancellable * cancellable);
NONNULL_ARGS(1) int undo_manager_undo(UndoManager *self
Undo last action.
ExportSettings * export_settings_new(void)
Returns an instance of default ExportSettings.
int exporter_export(ExportSettings *info)
Exports an audio file based on the given settings.
ExportTimeRange
Time range to export.
void exporter_create_audio_track_after_bounce(ExportSettings *settings, const Position *pos)
To be called to create and perform an undoable action for creating an audio track with the bounced ma...
void export_settings_set_bounce_defaults(ExportSettings *self, ExportFormat format, const char *filepath, const char *bounce_name)
Sets the defaults for bouncing.
ExportFormat
Export format.
void * exporter_generic_export_thread(void *data)
Generic export thread to be used for simple exporting.
NONNULL GPtrArray * exporter_prepare_tracks_for_export(const ExportSettings *const settings, EngineState *engine_state)
This must be called on the main thread after the intended tracks have been marked for bounce and befo...
void exporter_post_export(const ExportSettings *const settings, GPtrArray *connections, EngineState *engine_state)
This must be called on the main thread after the export is completed.
const char * export_format_to_ext(ExportFormat format)
Returns the audio format as a file extension.
const char * export_format_to_pretty_str(ExportFormat format)
Returns the format as a human friendly label.
void exporter_generic_export_task_thread(GTask *task, gpointer source_obj, gpointer task_data, GCancellable *cancellable)
Generic export task thread function to be used for simple exporting.
@ EXPORT_MODE_TRACKS
Export selected tracks within the range only.
@ EXPORT_MODE_FULL
Export everything within the range normally.
@ EXPORT_MODE_REGIONS
Export selected regions within the range only.
@ EXPORT_FORMAT_MIDI1
MIDI type 1.
@ EXPORT_FORMAT_RAW
Raw audio data.
@ EXPORT_FORMAT_MIDI0
MIDI type 0.
Export settings to be passed to the exporter to use.
bool lanes_as_tracks
Export track lanes as separate MIDI tracks.
bool bounce_with_parents
Bounce with parent tracks (direct outs).
BitDepth depth
Bit depth (16/24/64).
BounceStep bounce_step
Bounce step (pre inserts, pre fader, post fader).
char * file_uri
Absolute path for export file.
Position custom_start
Positions in case of custom time range.
int num_files
Number of files being simultaneously exported, for progress calculation.
ExportMode mode
Export mode.
bool disable_after_bounce
Disable exported track (or mute region) after bounce.
bool dither
Dither or not.
A Position is made up of bars.beats.sixteenths.ticks.