forked from Blendman974/faceclaw
Add sound demo to Faceclaw; use CFW mode 6 (headerless 4bpp) for images
This commit is contained in:
1 parent
116e8891e7
commit
acda9cdd7e
15 files changed
+262
-22
No files matched your search
@@ -155,6 +155,7 @@ class DashboardController {
|
||||
setTranscribeRenderActive: (active) => this.setTranscribeRenderActive(active),
|
||||
startDedicatedVoiceInput: (mode) => this.startDedicatedVoiceInput(mode),
|
||||
stopDedicatedVoiceInput: () => this.stopDedicatedVoiceInput(),
|
||||
playBuzzerNote: (note, oct, beat) => this.playBuzzerNote(note, oct, beat),
|
||||
});
|
||||
this.offAndroidNotification = onAndroidNotificationPosted((notificationKey) => {
|
||||
void this.handleAndroidNotificationPosted(notificationKey).catch((error) => {
|
||||
@@ -674,6 +675,13 @@ class DashboardController {
|
||||
this.startVoiceControlIfEnabled();
|
||||
}
|
||||
|
||||
private async playBuzzerNote(note: number, oct: number, beat: number): Promise<void> {
|
||||
if (this.phase !== "connected" || !this.communicator) {
|
||||
return;
|
||||
}
|
||||
await this.communicator.playBuzzerNote(note, oct, beat);
|
||||
}
|
||||
|
||||
private setStopwatchRenderActive(active: boolean): void {
|
||||
if (!active || this.phase !== "connected" || !this.communicator) {
|
||||
if (this.stopwatchRenderTimer) {
|
||||
|
||||
Reference in new issue
Block a user