@touchcastllc/napster-companion-api 1.0.0-alpha.43 → 1.0.0-alpha.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@touchcastllc/napster-companion-api",
3
- "version": "1.0.0-alpha.43",
3
+ "version": "1.0.0-alpha.44",
4
4
  "keywords": [
5
5
  "napster",
6
6
  "companion-api",
@@ -1,27 +0,0 @@
1
- export type MicManagerEventMap = {
2
- stream: MediaStream | null;
3
- muted: boolean;
4
- device: string | undefined;
5
- error: Error;
6
- };
7
- export type MicManagerEvent = keyof MicManagerEventMap;
8
- type Handler<E extends MicManagerEvent> = (payload: MicManagerEventMap[E]) => void;
9
- export interface MicrophoneStartOptions {
10
- deviceId?: string;
11
- }
12
- export interface MicrophoneManager {
13
- start(options?: MicrophoneStartOptions): Promise<MediaStream>;
14
- stop(): void;
15
- switchDevice(deviceId: string): Promise<MediaStream>;
16
- setMuted(muted: boolean): void;
17
- isMuted(): boolean;
18
- getStream(): MediaStream | null;
19
- getTrack(): MediaStreamTrack | null;
20
- getAnalyser(): AnalyserNode | null;
21
- getCurrentDeviceId(): string | undefined;
22
- on<E extends MicManagerEvent>(event: E, handler: Handler<E>): () => void;
23
- }
24
- export declare const DEFAULT_AUDIO_CONSTRAINTS: MediaTrackConstraints;
25
- export declare function getMicrophoneManager(): MicrophoneManager;
26
- export declare function __resetMicrophoneManagerForTests(): void;
27
- export {};