nchnls_hwMiscellaneousnchnls_hwnchnls_hw
Returns the number of audio channels in the underlying hardware.
Description
Returns the maximum number of audio channels in the underlying
hardware. This does not necessarily correspond to the number of
channels used by Csound (set by nchnls and nchnls_i).
Syntaxidacc,iadcc nchnls_hwInitialization
On init-pass idacc will contain the number of channels in the
output device, and iadcc, the number of input channels. These will
correspond to the currently selected/in-use hardware devices.
Examples
Here is an example of the nchnls_hw opcode. It uses the file nchnls_hw.csd.
Example of the nchnls_hw opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
The output should include lines like these:
on this machine:
number of outputs = 32
number of inputs = 32See alsoMiscellaneous opcodesCreditsAuthor: &namevictor;2016In version 6.07