soundcraft-ui-connection
Version:
Library for controlling the Soundcraft Ui series audio mixers
52 lines (51 loc) • 1.87 kB
TypeScript
import { MixerConnection } from '../mixer-connection';
import { MixerStore } from '../state/mixer-store';
import { DeviceInfo } from './device-info';
/**
* Represents a hardware input on the mixer
*/
export declare class HwChannel {
protected conn: MixerConnection;
protected store: MixerStore;
protected deviceInfo: DeviceInfo;
protected channel: number;
protected fullChannelId: string;
/** Phantom power state of the channel */
readonly phantom$: import('rxjs').Observable<boolean>;
/** Linear gain level of the channel (between `0` and `1`) */
readonly gain$: import('rxjs').Observable<number>;
/** dB gain level of the channel */
readonly gainDB$: import('rxjs').Observable<number>;
constructor(conn: MixerConnection, store: MixerStore, deviceInfo: DeviceInfo, channel: number);
/**
* Set phantom power state for the channel
* @param value phantom power state
*/
setPhantom(value: boolean): void;
/** Switch ON phantom power for the channel */
phantomOn(): void;
/** Switch OFF phantom power for the channel */
phantomOff(): void;
/** Toggle phantom power for the channel */
togglePhantom(): void;
/**
* Set gain level (linear) for the channel
* @param value value between `0` and `1`
*/
setGain(value: number): void;
/**
* Change the gain value relatively by adding a given linear value
* @param offset value to add to the current linear gain value
*/
changeGain(offset: number): void;
/**
* Set gain level (dB) for the channel
* @param value value between `-6` and `57`
*/
setGainDB(dbValue: number): void;
/**
* Change the gain value relatively by adding a given value
* @param offsetDB value (dB) to add to the current value
*/
changeGainDB(offsetDB: number): void;
}