PasteRack.org
Paste # 88759
2023-11-20 18:59:51

Fork as a new paste.

Paste viewed 545 times.


Embed:

#lang racket

(require binary-class/wave)
(let* ([bps 32]
       [fs 48000]
       [nch 2]
       [fmt (new wave:format%
                 [format-tag 1]
                 [channels nch]
                 [samples-per-sec fs]
                 [avg-bytes-per-sec (* bps nch fs)]
                 [block-align (/ (* bps nch) 8)]
                 [bits-per-sample bps])])
  fmt)

=>

standard-module-name-resolver: collection not found
  for module path: binary-class/wave
  collection: "binary-class"
  in collection directories:
   /home/pasterack/.local/share/racket/8.8/collects
   /home/pasterack/racket88/collects/
   ... [179 additional linked and package directories]
  context...:
   /home/pasterack/racket88/collects/racket/require-transform.rkt:266:2: expand-import
   /home/pasterack/racket88/collects/racket/private/reqprov.rkt:648:16
   /home/pasterack/racket88/collects/racket/private/reqprov.rkt:646:2: filter-by-mode
   /home/pasterack/racket88/collects/racket/require-transform.rkt:266:2: expand-import
   /home/pasterack/racket88/collects/racket/private/reqprov.rkt:287:21: try-next
   /home/pasterack/racket88/collects/racket/private/reqprov.rkt:401:21: try-next
   /home/pasterack/racket88/collects/racket/private/reqprov.rkt:258:2
   /home/pasterack/racket88/collects/syntax/wrap-modbeg.rkt:46:4
   /home/pasterack/racket88/share/pkgs/scribble-lib/scribble/run.rkt:175:26: go
   .../private/map.rkt:40:19: loop
   .../racket/cmdline.rkt:191:51
   body of "/home/pasterack/racket88/share/pkgs/scribble-lib/scribble/run.rkt"