Fixed build for the client

This commit is contained in:
WolverinDEV 2020-03-18 23:32:17 +01:00
parent e2d66987a9
commit 2f6b356855
3 changed files with 8 additions and 8 deletions

View file

@ -30,11 +30,6 @@ declare namespace audio {
}
export namespace sounds {
export interface SoundFile {
path: string;
volume?: number;
}
export function play_sound(file: SoundFile) : Promise<void>;
export function play_sound(file: sound.SoundFile) : Promise<void>;
}
}

View file

@ -67,6 +67,11 @@ namespace sound {
filename: string;
}
export interface SoundFile {
path: string;
volume?: number;
}
let speech_mapping: {[key: string]:SoundHandle} = {};
let volume_require_save = false;
@ -274,7 +279,7 @@ namespace sound {
if(options.callback)
options.callback(true);
}).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)
options.callback(false);
}).then(() => {

View file

@ -239,7 +239,6 @@ const loader_javascript = {
"js/FileManager.js",
"js/ConnectionHandler.js",
"js/BrowserIPC.js",
"js/dns_impl.js",
//Connection
"js/connection/CommandHandler.js",
@ -271,6 +270,7 @@ const loader_javascript = {
//Connection
"js/connection/ServerConnection.js",
"js/dns_impl.js",
//Load codec
"js/codec/Codec.js",