forked from Blendman974/faceclaw
Fix EvenHub apps on iOS access to the mic
This commit is contained in:
1 parent
247459bf99
commit
53812609ed
5 files changed
+138
-3
No files matched your search
@@ -27,6 +27,7 @@ export type EvenHubMicClient = {
|
||||
deliverAudioPcm(pcm: Uint8Array): void;
|
||||
};
|
||||
|
||||
/** Android's session for the raw tap; iOS binds its own to the bridge (setRawSession). */
|
||||
function activeCommunicator(): any {
|
||||
if (!global.isAndroid) return null;
|
||||
try {
|
||||
|
||||
@@ -726,7 +726,6 @@ export class EvenHubSession implements EvenHubMicClient, EvenHubImuClient, EvenH
|
||||
* flows (foreground + screen on + no assistant modal).
|
||||
*/
|
||||
private audioControl(data: Record<string, unknown>): boolean {
|
||||
if (global.isIOS) return false; // EvenHub PCM routing is not ported yet.
|
||||
if (!permissionsIncludeMicrophone(this.manifest.permissions)) {
|
||||
this.log("evenhub: audioControl denied (app declares no microphone permission)");
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user