mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-14 20:13:25 +00:00
refactor(tui): remove unused stop voice operation (#39969)
Co-authored-by: Kit Langton <kit.langton@gmail.com>
This commit is contained in:
parent
90c84639e3
commit
92567700f6
1 changed files with 1 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Audio, type AudioErrorContext, type AudioPlayOptions, type AudioSound, type AudioVoice } from "@opentui/core"
|
||||
import { Audio, type AudioErrorContext, type AudioPlayOptions, type AudioSound } from "@opentui/core"
|
||||
import { readFile } from "node:fs/promises"
|
||||
|
||||
let audio: Audio | null | undefined
|
||||
|
|
@ -42,10 +42,6 @@ export function play(sound: AudioSound, options?: AudioPlayOptions) {
|
|||
return current.play(sound, options)
|
||||
}
|
||||
|
||||
export function stopVoice(voice: AudioVoice) {
|
||||
return audio?.stopVoice(voice) ?? false
|
||||
}
|
||||
|
||||
export function dispose() {
|
||||
audio?.dispose()
|
||||
audio = undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue