Enum cat_audio::AudioEngineCommand[][src]

pub enum AudioEngineCommand {
    AddMono(MonoTrackusize),
    AddMonos(Vec<(MonoTrack, usize)>),
    RemoveMono(usize),
    RemoveMonos(Vec<usize>),
    UnpauseMonoFromStorage(usize),
    UnpauseMonosFromStorage(Vec<usize>),
    PauseMonoFromStorage(usize),
    PauseMonosFromStorage(Vec<usize>),
    StopMonoFromStorage(usize),
    StopMonosFromStorage(Vec<usize>),
    SetMonoVolumeFromStorage(usizef32),
    SetMonosVolumeFromStorage(Vec<usize>, f32),
    SetMonosVolumesFromStorage(Vec<(usize, f32)>),
    PlayMonoOnChannels(TrackSet),
    PlayMonosOnChannels(Vec<TrackSet>),
    UnpauseMonoFromPlaylist(usize),
    UnpauseMonosFromPlaylist(Vec<usize>),
    PauseMonoFromPlaylist(usize),
    PauseMonosFromPlaylist(Vec<usize>),
    RemoveMonoFromPlaylist(usize),
    RemoveMonosFromPlaylist(Vec<usize>),
    ClearPlaylist,
    SetMonoVolume(usizef32),
    SetMonosVolume(Vec<usize>, f32),
    SetMonosVolumes(Vec<(usize, f32)>),
    SetGeneralVolume(f32),
    Close,
}

Команды аудио системы.

Audio system commands.

Variants

AddMono(MonoTrackusize)

Добавляет одноканальный трек в ячейку хранилища.

Если нет такой ячейки, то ничего не происходит.

Adds a mono-channel track to a storage slot.

If there is no such slot, nothing happens.

AddMonos(Vec<(MonoTrack, usize)>)

Добавляет несколько одноканальных треков в ячейки хранилища.

Если нет таких ячеек, то ничего не происходит.

Adds some mono-channel tracks to the storage.

If there is no such slots, nothing happens.

RemoveMono(usize)

Убирает одноканальный трек из хранилища.

Если нет такого трека, то ничего не происходит.

Removes a mono-channel track from the storage.

If there is no such track, nothing happens.

RemoveMonos(Vec<usize>)

Убирает несколько одноканальных треков из хранилища.

Если нет таких треков, то ничего не происходит.

Removes some mono-channel tracks from the storage.

If there are no such tracks, nothing happens.

UnpauseMonoFromStorage(usize)

Снимает паузу с треков из плейлиста, привязанных к треку из хранилища.

Unpauses tracks from the playlist attached to a track from the storage.

UnpauseMonosFromStorage(Vec<usize>)

Снимает паузу с треков из плейлиста, привязанных к трекам из хранилища.

Unpauses tracks from the playlist attached to tracks from the storage.

PauseMonoFromStorage(usize)

Ставит на паузу треки из плейлиста, привязанные к треку из хранилища.

Pauses tracks from the playlist attached to a track from the storage.

PauseMonosFromStorage(Vec<usize>)

Ставит на паузу треки из плейлиста, привязанные к трекам из хранилища.

Stops tracks from the playlist attached to tracks from the storage.

StopMonoFromStorage(usize)

Останавливает треки из плейлиста, привязанные к треку из хранилища.

Stops tracks from the playlist attached to a track from the storage.

StopMonosFromStorage(Vec<usize>)

Останавливает треки из плейлиста, привязанные к трекам из хранилища.

Stops tracks from the playlist attached to tracks from the storage.

SetMonoVolumeFromStorage(usizef32)

Устанавливает громкость треков из плейлиста, привязанных к треку из хранилища.

Sets a volume of tracks from the playlist attached to a track from the storage.

SetMonosVolumeFromStorage(Vec<usize>, f32)

Устанавливает громкость треков из плейлиста, привязанных к трекам из хранилища.

Sets a volume of tracks from the playlist attached to tracks from the storage.

SetMonosVolumesFromStorage(Vec<(usize, f32)>)

Устанавливает громкости треков из плейлиста, привязанных к трекам из хранилища.

Sets volumes of tracks from the playlist attached to tracks from the storage.

PlayMonoOnChannels(TrackSet)

Проигрывает одноканальный трек на данных каналах.

Plays a mono-channel track on the given channels.

PlayMonosOnChannels(Vec<TrackSet>)

Проигрывает несколько одноканальных треков на данных каналах.

Plays some mono-channel tracks on the given channels.

UnpauseMonoFromPlaylist(usize)

Снимает с паузы трек из плейлиста.

Если уже проигрывается, ничего не происходит.

UnpauseMonosFromPlaylist(Vec<usize>)

Снимает с паузы трек из плейлиста.

Если уже проигрывается, ничего не происходит.

PauseMonoFromPlaylist(usize)

Ставит трек из плейлиста на паузу.

Если уже на паузе, ничего не происходит.

PauseMonosFromPlaylist(Vec<usize>)
RemoveMonoFromPlaylist(usize)

Убирает одноканальный трек из плейлиста.

Removes a mono-channel track from the playlist.

RemoveMonosFromPlaylist(Vec<usize>)
ClearPlaylist

Отчищает плейлист (список текущих играющих треков).

Clears a playlist (the list of currently playing tracks).

SetMonoVolume(usizef32)

Устанавливает громкость трека в плейлисте.

Sets a volume to a track in the playlist.

SetMonosVolume(Vec<usize>, f32)

Устанавливает громкость треков в плейлисте.

Sets a volume to tracks in the playlist.

SetMonosVolumes(Vec<(usize, f32)>)

Устанавливает громкости треков в плейлисте.

Sets volumes to tracks in the playlist.

SetGeneralVolume(f32)

Устанавливает общую громкость.

Sets the general volume.

Close

Закрывает аудио поток.

Closes the audio thead.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.