web-audio-recorder-ts 1.0.6 → 1.0.7

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.
@@ -1,24 +1,24 @@
1
1
  /**
2
- * Utility functions for automatically loading encoder files from the npm package
2
+ * Utility functions for loading encoder files
3
+ *
4
+ * STANDARD: Files should be placed in `public/encoders/`
3
5
  */
4
6
  /**
5
- * Get the base URL for encoder files
6
- * Tries to detect the package location automatically
7
+ * Get the default base URL for encoder files
8
+ * Defaults to '/encoders' (relative to domain root)
7
9
  */
8
10
  export declare function getEncoderBaseUrl(): string;
9
11
  /**
10
12
  * Get the full URL for an encoder script file
11
- * @param filename - Name of the encoder file (e.g., 'OggVorbisEncoder.min.js')
12
- * @param customBaseUrl - Optional custom base URL (overrides auto-detection)
13
13
  */
14
14
  export declare function getEncoderScriptUrl(filename: string, customBaseUrl?: string): string;
15
15
  /**
16
16
  * Configure encoder memory initializer paths
17
- * @param baseUrl - Base URL for .mem files (defaults to auto-detected path)
17
+ * Critical for OGG/MP3 Emscripten modules
18
18
  */
19
19
  export declare function configureEncoderPaths(baseUrl?: string): void;
20
20
  /**
21
- * Try multiple paths to find encoder files
22
- * Useful when auto-detection fails
21
+ * Find and load encoder script
22
+ * Simplified: ONLY looks in standard locations or provided path
23
23
  */
24
24
  export declare function findEncoderPath(filename: string): Promise<string | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-audio-recorder-ts",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "description": "TypeScript port of web-audio-recorder-js with full type support for WAV, OGG Vorbis, and MP3 audio recording",
6
6
  "main": "dist/index.cjs.js",
@@ -83,4 +83,4 @@
83
83
  "typescript": "^5.7.2",
84
84
  "vite": "^6.0.3"
85
85
  }
86
- }
86
+ }