Skip to content
jack_playrec provides an interface for synchronous recording/playback via the JACK Audio Connection Kit.
C++ Makefile MATLAB Shell NSIS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packaging
.arcconfig
.gitignore
COMPILATION.md
INSTALLATION.md
Jenkinsfile
LICENSE
Makefile
README.md
cli.cc
cli.h
configure
defs.hh
errorhandling.cc
errorhandling.h
jack_par.cc
jack_playrec.cc
jack_playrec.m
jackclient.cc
jackclient.h
jackiowav.cc
jackiowav.h
parse_keyval.m

README.md

JACK_PLAYREC

jack_playrec provides an interface for synchronous recording/playback via the JACK Audio Connection Kit. In addition to the cli a Matlab wrapper is provided.

Installation of pre-compiled packages

See INSTALLATION.md

Compiling from source

See COMPILATION.md

Command line interface

Usage:

jack_playrec [options] input.wav [ ports [...]]

Matlab wrapper

Usage:

[y,fs,bufsize,load,xruns,sCfg] = jack_playrec( x, ... );

Examples:

Display list of valid key/value pairs:

jack_playrec help

Playback of MATLAB matrix x on hardware outputs (one column per channel):

jack_playrec( x );

Playback of MATLAB data via user defined ports:

jack_playrec( x, 'output', csOutputPorts );

Synchronouos playback and recording of MATLAB vector:

[y,fs,bufsize] = jack_playrec( x, 'output', csOutputPorts, 'input', csInputPorts );

Synchronouos playback and recording, with jack transport:

[y,fs,bufsize] = jack_playrec( x, 'input', csInputPorts, 'starttime', transportStart );

Synchronouos playback and recording, in freewheeling mode:

[y,fs,bufsize] = jack_playrec( x, 'input', csInputPorts, 'freewheeling', true );

If csOutputPorts and csInputPorts are a single string, a single port name is used. If they are a cell string array, the number of channels in x has to match the number of elements in csOutputPorts, and the number of channels in y will match the number of channels in csInputPorts. If the argument is a numeric vector, then the physical ports (starting from 1) are used.

You can’t perform that action at this time.