soundcraft-ui-connection
Version:
Library for controlling the Soundcraft Ui series audio mixers
39 lines (38 loc) • 1.69 kB
TypeScript
import { MixerConnection } from '../mixer-connection';
import { MixerStore } from '../state/mixer-store';
import { ChannelType } from '../types';
import { PannableChannel, PostProcessableChannel } from './interfaces';
import { SendChannel } from './send-channel';
/**
* Represents a channel on an AUX bus
*/
export declare class AuxChannel extends SendChannel implements PannableChannel, PostProcessableChannel {
/** when the AUX bus is stereo-linked, this also contains the ID of this channel on the linked bus */
private auxLinkChannelIds;
/** PAN value of the AUX channel (between `0` and `1`) */
readonly pan$: import('rxjs').Observable<number>;
/** PRE/POST PROC state of the AUX channel (`false` for PRE PROC, `true` for POST PROC) */
readonly postProc$: import('rxjs').Observable<boolean>;
constructor(conn: MixerConnection, store: MixerStore, channelType: ChannelType, channel: number, bus: number);
/**
* Set PAN value of the AUX channel.
* This only works for stereo-linked AUX buses, not for mono AUX.
* @param value value between `0` and `1`
*/
setPan(value: number): void;
/**
* Relatively change PAN value of the AUX channel.
* This only works for stereo-linked AUX buses, not for mono AUX.
* @param offset offset to change (final values are between `0` and `1`)
*/
changePan(offset: number): void;
/**
* Set PRE/POST PROC state for the AUX channel
* @param value POST PROC (`true`) or PRE PROC (`false`)
*/
setPostProc(value: boolean): void;
/** Set AUX channel to POST PROC */
postProc(): void;
/** Set AUX channel to PRE PROC */
preProc(): void;
}