<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="adc~" module="msp" category="MSP I/O">
	<digest>
		Audio input and on/off
	</digest>
	<description>
		<o>adc~</o> is the audio-to-digital converter for a signal-processing patch which can be used to route signal inputs from external devices or inputs into your patch. It can also be used to turn MSP's signal-processing on or off entirely.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			MSP
		</metadata>
		<metadata name="tag">
			MSP I/O
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				start, stop Turn Audio On and Off
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				start, stop Turn Audio On and Off
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal">
			<digest>
				(signal) Audio In Ch 1
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="signal">
			<digest>
				(signal) Audio In Ch 2
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="inputs" optional="1" type="int">
			<digest>
				Number of inputs
			</digest>
			<description>
				You can create a <o>adc~</o> object that uses one or more audio input channel numbers between 1 and 512. These numbers refer to logical channels and can be dynamically reassigned to physical device channels of a particular driver using either the Audio Status window, its I/O Mappings subwindow, or an <o>adstatus</o> object with an <m>input</m> keyword argument. If the computer's built-in audio hardware is being used, there will be two input channels available. Other audio drivers and/or devices may have more than two channels. If no argument is typed in, <o>adc~</o> will have two outlets, initially set to logical input channels 1 and 2.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="on/off-flag" optional="0" type="int" />
			</arglist>
			<digest>
				Enable/disable audio processing
			</digest>
			<description>
				A non-zero number turns on audio processing in all loaded patches. <m>0</m> turns off audio processing in all loaded patches.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input-channel-designations" optional="0" type="list" />
			</arglist>
			<digest>
				Set the logical input channels for each signal inlet
			</digest>
			<description>
				<m>list</m> comprised of integers sets the logical input channels for each signal inlet.
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Open the Audio Status window
			</digest>
			<description>
				Double-clicking on <o>adc~</o> opens the Audio Status window.
			</description>
		</method>
		<method name="open">
			<arglist />
			<digest>
				Open the Audio Status window
			</digest>
			<description>
				Opens the Audio Status window.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="logical-output-channel" optional="0" type="int" />
				<arg name="logical-input-channel" optional="0" type="int" />
			</arglist>
			<digest>
				Set the logical input channel for a signal outlet
			</digest>
			<description>
				The word <m>set</m>, followed by two numbers, sets the logical input channel for one of the object's signal outlets. The first number specifies the outlet number, where <m>1</m> is the leftmost outlet. The second number specifies the logical input channel (from 1 to 512). If the second number is <m>0</m>, the outlet sends out the zero signal.
			</description>
		</method>
		<method name="start">
			<arglist />
			<digest>
				Turn on audio processing in all loaded patches
			</digest>
			<description>
				Turns on audio processing in all loaded patches.
			</description>
		</method>
		<method name="startwindow">
			<arglist />
			<digest>
				Turn on audio processing only in the patch in which this <o>adc~</o> is located, and in subpatches of that patch
			</digest>
			<description>
				Turns on audio processing only in the patch in which this <o>adc~</o> is located, and in subpatches of that patch. Turns off audio processing in all other patches.
			</description>
		</method>
		<method name="stop">
			<arglist />
			<digest>
				Turn off audio processing in all loaded patches
			</digest>
			<description>
				Turns off audio processing in all loaded patches.
			</description>
		</method>
		<method name="wclose">
			<arglist />
			<digest>
				Close the Audio Status window
			</digest>
			<description>
				Closes the Audio Status window if it is open
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="adc~.png" caption="Audio input for processing and recording" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="adstatus" />
		<seealso name="ezadc~" />
		<seealso name="ezdac~" />
		<seealso name="dac~" />
		<seealso name="04_mspaudioio" module="msp" type="tutorial" />
		<seealso name="07_samplingchapter01" module="msp" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="signal">
			<description>
				The signal arriving at the computer's input is sent out, one channel per outlet. If there are no typed-in arguments, the channels are 1 and 2, numbered left-to-right; otherwise the channels are in the order specified by the arguments.
			</description>
		</entry>
	</misc>
</c74object>
