Remote audio player much simpler.
This commit is contained in:
@@ -148,12 +148,10 @@ racket -l racket-audio/audio-placed-player -- --stdio
|
||||
```
|
||||
|
||||
The worker redirects ordinary logging to a cache log file so that stdout and
|
||||
stderr remain serialized protocol streams. On Unix-like systems the SSH
|
||||
launcher defaults to `ssh -T -q`. On Windows it prefers PuTTY `plink.exe` or
|
||||
`plink` with `-batch -T`, and falls back to OpenSSH `ssh.exe`/`ssh` when PuTTY
|
||||
is not present. These defaults can be overridden with the `#:ssh-program`,
|
||||
`#:ssh-options`, `#:remote-racket`, `#:remote-module`, and `#:remote-command`
|
||||
arguments to `make-audio-player`.
|
||||
stderr remain serialized protocol streams. SSH, the remote Racket command and
|
||||
the remote module are configured in `racket-audio.ini`. The public
|
||||
`make-audio-player` API only needs the remote host and, when necessary, base
|
||||
path replacements.
|
||||
|
||||
Example:
|
||||
|
||||
@@ -161,8 +159,8 @@ Example:
|
||||
(define player
|
||||
(make-audio-player cb-state cb-eof
|
||||
#:remote-host "nas"
|
||||
#:remote-path-map
|
||||
(list (list "/muziek" "/volume1/music"))))
|
||||
#:replace-base-paths
|
||||
(list (cons "/muziek" "/volume1/music"))))
|
||||
|
||||
(audio-play! player "/muziek/klassiek/track.flac")
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user