@adea-ai/audio 0.10.9 → 0.10.11
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/README.md +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/controller.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/config.ts +1 -1
- package/src/controller.ts +2 -2
- package/src/index.ts +1 -1
package/README.md
CHANGED
package/dist/config.d.ts
CHANGED
package/dist/config.js
CHANGED
package/dist/controller.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MUSIC_DIR, MUSIC_FILES } from "./config";
|
|
2
|
-
const MUSIC_MUTE_KEY = "
|
|
3
|
-
const LEGACY_MUTE_KEY = "
|
|
2
|
+
const MUSIC_MUTE_KEY = "adea:audio:music-muted";
|
|
3
|
+
const LEGACY_MUTE_KEY = "adea:audio:muted";
|
|
4
4
|
const DEFAULT_MUSIC_VOLUME = 0.8;
|
|
5
5
|
const FADE_STEP_MS = 30;
|
|
6
6
|
function clampVolume(value) {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Optional soundtrack hooks for
|
|
1
|
+
// Optional soundtrack hooks for Adea.
|
|
2
2
|
export { AUDIO_BASE_URL, MUSIC_FILES } from "./config";
|
|
3
3
|
export { SoundController, soundController } from "./controller";
|
|
4
4
|
export { musicForScene, sceneMusicTracks } from "./scene-music";
|
package/package.json
CHANGED
package/src/config.ts
CHANGED
package/src/controller.ts
CHANGED
|
@@ -7,8 +7,8 @@ export type MusicOptions = {
|
|
|
7
7
|
fadeMs?: number;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
const MUSIC_MUTE_KEY = "
|
|
11
|
-
const LEGACY_MUTE_KEY = "
|
|
10
|
+
const MUSIC_MUTE_KEY = "adea:audio:music-muted";
|
|
11
|
+
const LEGACY_MUTE_KEY = "adea:audio:muted";
|
|
12
12
|
const DEFAULT_MUSIC_VOLUME = 0.8;
|
|
13
13
|
const FADE_STEP_MS = 30;
|
|
14
14
|
|
package/src/index.ts
CHANGED