UNPKG

soundcraft-ui-connection

Version:

Library for controlling the Soundcraft Ui series audio mixers

27 lines (26 loc) 1.16 kB
import { MixerConnection } from '../mixer-connection'; import { MixerStore } from '../state/mixer-store'; import { ChannelType } from '../types'; import { MasterChannel } from './master-channel'; /** * Represents a channel on the master bus that can be delayed (input, line and aux) */ export declare class DelayableMasterChannel extends MasterChannel { /** Delay value of the channel (between `0` and `500` ms) */ readonly delay$: import('rxjs').Observable<number>; /** default delay value (ms) for input channels */ private delayMaxValueMs; constructor(conn: MixerConnection, store: MixerStore, channelType: ChannelType, channel: number); /** * Set delay of the channel in millseconds. * Input channels allow a maximum of 250 ms, AUX master channels can be delayed by 500 ms. * @param ms delay in milliseconds */ setDelay(ms: number): void; /** * Change the delay relatively by adding a value. * Input channels allow a maximum of 250 ms, AUX master channels can be delayed by 500 ms. * @param offsetMs value (ms) to add to the current value */ changeDelay(offsetMs: number): void; }