mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
wip: reenable sampling
This commit is contained in:
parent
e9c825e865
commit
efd182f302
6 changed files with 61 additions and 38 deletions
|
|
@ -316,7 +316,12 @@ impl Tek {
|
|||
|
||||
/// Get the first sampler of the active track
|
||||
pub fn sampler (&self) -> Option<&Sampler> {
|
||||
self.tracks.get(0).map(|t|t.sampler(0)).flatten()
|
||||
self.track().map(|t|t.sampler(0)).flatten()
|
||||
}
|
||||
|
||||
/// Get the first sampler of the active track
|
||||
pub fn sampler_mut (&mut self) -> Option<&mut Sampler> {
|
||||
self.track_mut().map(|t|t.sampler_mut(0)).flatten()
|
||||
}
|
||||
|
||||
/// Set the color of the selected entity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue