Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
foldable_track.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __AUDIO_FOLDABLE_TRACK_H__
11#define __AUDIO_FOLDABLE_TRACK_H__
12
13#include <stdbool.h>
14
15typedef struct Track Track;
16
17typedef enum FoldableTrackMixerStatus
18{
19 FOLDABLE_TRACK_MIXER_STATUS_MUTED,
20 FOLDABLE_TRACK_MIXER_STATUS_SOLOED,
21 FOLDABLE_TRACK_MIXER_STATUS_IMPLIED_SOLOED,
22 FOLDABLE_TRACK_MIXER_STATUS_LISTENED,
23} FoldableTrackMixerStatus;
24
25void
26foldable_track_init (Track * track);
27
31bool
32foldable_track_is_status (Track * self, FoldableTrackMixerStatus status);
33
38bool
40
45bool
47
54void
56
57#endif /* __AUDIO_FOLDABLE_TRACK_H__ */
bool foldable_track_is_direct_child(Track *self, Track *child)
Returns whether child is a folder child of self.
bool foldable_track_is_status(Track *self, FoldableTrackMixerStatus status)
Used to check if soloed/muted/etc.
bool foldable_track_is_child(Track *self, Track *child)
Returns whether child is a folder child of self.
void foldable_track_add_to_size(Track *self, int delta)
Adds to the size recursively.
Track to be inserted into the Project's Tracklist.
Definition track.h:186