@domicile-desktop/system-audio 0.0.0-alpha-e612f0697e41 → 0.0.0-alpha-ab2d2f0e2a24
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 +2 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
A shell's mixer: devices, streams, cards, volume, mute and level meters, read
|
|
4
4
|
from PulseAudio or PipeWire through `pactl` and `parec`.
|
|
5
5
|
|
|
6
|
-
- Runs them with `
|
|
6
|
+
- Runs them with `domicile.processes`' `spawn` and `run`, in the C
|
|
7
7
|
locale. They must be on the compositor's `PATH`; the flake's wrapper adds
|
|
8
8
|
PulseAudio's.
|
|
9
9
|
- Published to npm. Ships built JavaScript and `.d.ts` from `dist/`.
|
|
@@ -11,10 +11,9 @@ from PulseAudio or PipeWire through `pactl` and `parec`.
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
import { desktop } from "@domicile-desktop/sdk/desktop/desktop";
|
|
15
14
|
import { soundServer } from "@domicile-desktop/system-audio/sound-server";
|
|
16
15
|
|
|
17
|
-
const server = soundServer(
|
|
16
|
+
const server = soundServer(domicile);
|
|
18
17
|
const stop = server.watch((audio) => draw(audio));
|
|
19
18
|
await server.setVolume(audio.outputs[0].id, 0.5);
|
|
20
19
|
const meters = server.meters((levels) => drawLevels(levels));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@cprussin/option-result": "^2.0.1",
|
|
4
|
-
"@domicile-desktop/sdk": "0.0.0-alpha-
|
|
4
|
+
"@domicile-desktop/sdk": "0.0.0-alpha-ab2d2f0e2a24",
|
|
5
5
|
"zod": "^4.5.4"
|
|
6
6
|
},
|
|
7
7
|
"description": "Volume, mute, devices, streams and level meters for a Domicile shell, through pactl and parec.",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"test:unit": "bun test"
|
|
53
53
|
},
|
|
54
54
|
"type": "module",
|
|
55
|
-
"version": "0.0.0-alpha-
|
|
55
|
+
"version": "0.0.0-alpha-ab2d2f0e2a24",
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|
|
58
58
|
"url": "git+https://github.com/cprussin/domicile.git",
|