text: Definitions for using the Sound Input Peripheral. More...
  #include <sys/cdefs.h>
  #include <sys/types.h>
  #include <dc/maple.h>
  Go to the source code of this file.
  Definitions for using the Sound Input Peripheral.
  This file contains the definitions needed to access the Maple microphone type device (the Seaman mic). Many thanks go out to ZeZu who pointed me toward what some of the commands actually do in the original version of this driver.
  As a note, the device itself is actually referred to by the system as the Sound Input Peripheral, so hence why this driver is named as it is.
  Default microphone gain.
  Maximum microphone gain.
  Minimum microphone gain.
  Record samples at 11.025kHz.
  Record 16-bit signed integer samples.
  Record 8-bit ulaw samples.
  Record samples at 8kHz.
  Start and stop sampling.
  This subcommand is used with the MAPLE_COMMAND_MICCONTROL command to start and stop sampling on the microphone.
  Get recorded samples from the microphone device.
  This subcommand is used with the MAPLE_COMMAND_MICCONTROL command to fetch samples from the microphone..
  Clear the sample buffer of a microphone.
  This function clears out any old samples on the microphone buffer so that recording will start from the beginning of the buffer again. This does not resize the buffer in any way. This function will not work if called while the microphone is sampling.
  Retrieve the sample buffer from the microphone.
  This function retrieves the sample buffer from the microphone and allocates a new buffer for the microphone to record into. This function cannot be called while the microphone is sampling. The caller is responsible for the buffer returned, and must free the buffer when it is done with it.
  Set the sample frequency to be recorded by the microphone.
  This function sets the sample frequency that the microphone will record. The default value for this is about 11.025kHz samples. You must call this prior to sip_start_sampling() if you wish to change it from the default.
  Set the microphone's gain value.
  This function sets the gain value of the specified microphone device to the value given. This should only be called prior to sampling so as to keep the amplification constant throughout the sampling process, but can be changed on the fly if you really want to.
  Set the sample type to be recorded by the microphone.
  This function sets the sample type that the microphone will return. The default value for this is 16-bit signed integer samples. You must call this prior to sip_start_sampling() if you wish to change it from the default.
  Start sampling on a microphone.
  This function informs a microphone it should start recording samples.
  Stop sampling on a microphone.
  This function informs a microphone it should stop recording samples.