@geheimgang188/fmod-service-api
Version:
FMOD service API
25 lines (24 loc) • 1.04 kB
TypeScript
export interface IControlFmod {
loadBank(bankName: string): Promise<void>;
unloadBank(bankName: string): Promise<void>;
play(eventId: string): Promise<void>;
start(eventId: string): Promise<void>;
stop(eventId: string): Promise<number>;
/**
* Stop all events that have been started with start().
* (Note that events started with play() are single-shot, they cannot be stopped anymore.)
*/
stopStartedEvents(): Promise<void>;
/**
* Play a voice event. This is an event containing a programmer instrument which is called
* with the voice key as argument (using a localised audio table in FMOD).
*/
playVoice(eventId: string, key: string): Promise<void>;
/**
* Stops all running instances of this eventId/key combination
*/
stopVoice(eventId: string, key: string): Promise<number>;
setParameter(eventId: string, paramName: string, value: number): Promise<void>;
isPlaying(eventId: string): Promise<boolean>;
listLoadedBankPaths(): Promise<string[]>;
}