audio/tracklist.h file

Contents

Tracklist backend.

Classes

struct Tracklist
The Tracklist contains all the tracks in the Project.

Typedefs

using Tracklist = struct Tracklist
The Tracklist contains all the tracks in the Project.

Functions

void tracklist_init_loaded(Tracklist* self)
Initializes the tracklist when loading a project.
void tracklist_get_visible_tracks(Tracklist* self, Track** visible_tracks, int* num_visible)
Finds visible tracks and puts them in given array.
auto tracklist_find_track_by_name(Tracklist* self, const char* name) -> Track*
Returns the Track matching the given name, if any.
void tracklist_print_tracks(Tracklist* self)
Prints the tracks (for debugging).
void tracklist_insert_track(Tracklist* self, Track* track, int pos, int publish_events, int recalc_graph)
Adds given track to given spot in tracklist.
void tracklist_remove_track(Tracklist* self, Track* track, bool rm_pl, bool free, bool publish_events, bool recalc_graph)
Removes a track from the Tracklist and the TracklistSelections.
void tracklist_move_track(Tracklist* self, Track* track, int pos, int publish_events, int recalc_graph)
Moves a track from its current position to the position given by pos.
void tracklist_append_track(Tracklist* self, Track* track, int publish_events, int recalc_graph)
Calls tracklist_insert_track with the given options.
void tracklist_set_track_pinned(Tracklist* self, Track* track, const int pinned, int publish_events, int recalc_graph)
Pins or unpins the Track.
auto tracklist_get_track_pos(Tracklist* self, Track* track) -> int
Returns the index of the given Track.
auto tracklist_get_first_visible_track(Tracklist* self, const int pinned) -> Track*
Returns the first visible Track.
auto tracklist_get_prev_visible_track(Tracklist* self, Track* track) -> Track*
Returns the previous visible Track in the same Tracklist as the given one (ie, pinned or not).
auto tracklist_get_last_pos(Tracklist* self, const int pinned_only, const int visible_only) -> int
Returns the index of the last Track.
auto tracklist_get_last_track(Tracklist* self, const int pinned_only, const int visible_only) -> Track*
Returns the last Track.
auto tracklist_get_next_visible_track(Tracklist* self, Track* track) -> Track*
Returns the next visible Track in the same Tracklist as the given one (ie, pinned or not).
auto tracklist_get_visible_track_after_delta(Tracklist* self, Track* track, int delta) -> Track*
Returns the Track after delta visible Track's.
auto tracklist_get_visible_track_diff(Tracklist* self, const Track* src, const Track* dest) -> int
Returns the number of visible Tracks between src and dest (negative if dest is before src).
auto tracklist_track_name_is_unique(Tracklist* self, const char* name, Track* track_to_skip) -> int
Returns 1 if the track name is not taken.
auto tracklist_has_soloed(const Tracklist* self) -> int
Returns if the tracklist has soloed tracks.
void tracklist_activate_all_plugins(Tracklist* self, bool activate)
Activate or deactivate all plugins.
void guile_tracklist_define_module(void)
Define guile module.