diff --git a/shared/css/modals.scss b/shared/css/modals.scss index 7e777fe1..f69b52b5 100644 --- a/shared/css/modals.scss +++ b/shared/css/modals.scss @@ -72,6 +72,10 @@ flex-direction: row; justify-content: stretch; + &:not(:first-of-type) { + margin-top: 5px; + } + div { flex-grow: 0; diff --git a/shared/js/codec/CodecWrapper.ts b/shared/js/codec/CodecWrapper.ts index 8df7a1d5..c6dfe5ea 100644 --- a/shared/js/codec/CodecWrapper.ts +++ b/shared/js/codec/CodecWrapper.ts @@ -69,7 +69,7 @@ class CodecWrapper extends BasicCodec { let audioBuf = this._audioContext.createBuffer(this.channelCount, array.length / this.channelCount, this._codecSampleRate); for (let channel = 0; channel < this.channelCount; channel++) { for (let offset = 0; offset < audioBuf.length; offset++) { - audioBuf.getChannelData(channel)[offset] = array[channel + offset * 2]; + audioBuf.getChannelData(channel)[offset] = array[channel + offset * this.channelCount]; } } resolve(audioBuf); diff --git a/shared/js/sound/Sounds.ts b/shared/js/sound/Sounds.ts index c50580b2..5bc17253 100644 --- a/shared/js/sound/Sounds.ts +++ b/shared/js/sound/Sounds.ts @@ -65,7 +65,7 @@ namespace sound { node?: HTMLAudioElement; } - let warned = false + let warned = false; let speech_mapping: {[key: string]:SpeechFile} = {}; function register_sound(key: string, file: string) {