25 lines
380 B
Text
25 lines
380 B
Text
|
#lang scribble/manual
|
||
|
@(require (for-label racket))
|
||
|
|
||
|
@title{/b_query}
|
||
|
|
||
|
[
|
||
|
int - buffer number
|
||
|
] * N
|
||
|
|
||
|
Responds to the sender with a /b_info message. The arguments to
|
||
|
/b_info are as follows:
|
||
|
|
||
|
[
|
||
|
int - buffer number
|
||
|
int - number of frames
|
||
|
int - number of channels
|
||
|
float - sample rate
|
||
|
] * N
|
||
|
|
||
|
(with-sc3
|
||
|
(lambda (fd)
|
||
|
(async fd (/b_alloc 10 6 1))
|
||
|
(async fd (/b_query 10))))
|
||
|
|