fix(Audio): mark speaker and microphone as possibly undefined

This commit is contained in:
Aylur
2023-11-09 00:03:33 +01:00
parent 0de95b3005
commit 19d13a2bf1
+2 -2
View File
@@ -136,12 +136,12 @@ export class Audio extends Service {
get control() { return this._control; }
get speaker() { return this._speaker; }
get speaker(): Stream | undefined { return this._speaker; }
set speaker(stream: Stream) {
this._control.set_default_sink(stream.stream);
}
get microphone() { return this._microphone; }
get microphone(): Stream | undefined { return this._microphone; }
set microphone(stream: Stream) {
this._control.set_default_source(stream.stream);
}