Fixed build for the client
This commit is contained in:
parent
e2d66987a9
commit
2f6b356855
3 changed files with 8 additions and 8 deletions
7
shared/backend/audio.d.ts
vendored
7
shared/backend/audio.d.ts
vendored
|
@ -30,11 +30,6 @@ declare namespace audio {
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace sounds {
|
export namespace sounds {
|
||||||
export interface SoundFile {
|
export function play_sound(file: sound.SoundFile) : Promise<void>;
|
||||||
path: string;
|
|
||||||
volume?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function play_sound(file: SoundFile) : Promise<void>;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -67,6 +67,11 @@ namespace sound {
|
||||||
filename: string;
|
filename: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface SoundFile {
|
||||||
|
path: string;
|
||||||
|
volume?: number;
|
||||||
|
}
|
||||||
|
|
||||||
let speech_mapping: {[key: string]:SoundHandle} = {};
|
let speech_mapping: {[key: string]:SoundHandle} = {};
|
||||||
|
|
||||||
let volume_require_save = false;
|
let volume_require_save = false;
|
||||||
|
@ -274,7 +279,7 @@ namespace sound {
|
||||||
if(options.callback)
|
if(options.callback)
|
||||||
options.callback(true);
|
options.callback(true);
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
log.warn(LogCategory.AUDIO, tr("Failed to replay sound %o: %o"), sound, error);
|
log.warn(LogCategory.AUDIO, tr("Failed to replay sound %s: %o"), handle.filename, error);
|
||||||
if(options.callback)
|
if(options.callback)
|
||||||
options.callback(false);
|
options.callback(false);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|
|
@ -239,7 +239,6 @@ const loader_javascript = {
|
||||||
"js/FileManager.js",
|
"js/FileManager.js",
|
||||||
"js/ConnectionHandler.js",
|
"js/ConnectionHandler.js",
|
||||||
"js/BrowserIPC.js",
|
"js/BrowserIPC.js",
|
||||||
"js/dns_impl.js",
|
|
||||||
|
|
||||||
//Connection
|
//Connection
|
||||||
"js/connection/CommandHandler.js",
|
"js/connection/CommandHandler.js",
|
||||||
|
@ -271,6 +270,7 @@ const loader_javascript = {
|
||||||
|
|
||||||
//Connection
|
//Connection
|
||||||
"js/connection/ServerConnection.js",
|
"js/connection/ServerConnection.js",
|
||||||
|
"js/dns_impl.js",
|
||||||
|
|
||||||
//Load codec
|
//Load codec
|
||||||
"js/codec/Codec.js",
|
"js/codec/Codec.js",
|
||||||
|
|
Loading…
Add table
Reference in a new issue