Sound.h File Reference

#include <xdc/std.h>
#include <ti/sdo/dmai/Dmai.h>
#include <ti/sdo/dmai/Buffer.h>

Go to the source code of this file.


Data Structures

struct  Sound_Attrs
 Attributes used to create a Sound device driver instance. More...

Defines

#define Sound_MAXDEVNAME   20
 Max number of characters in the sound device name.

Typedefs

typedef struct Sound_Object * Sound_Handle
 Handle through which to reference a Sound device driver.

Enumerations

enum  Sound_Std {
  Sound_Std_OSS = 0,
  Sound_Std_ALSA,
  Sound_Std_COUNT
}
 Sound standards supported on Linux (OSS and ALSA). More...
enum  Sound_Mode {
  Sound_Mode_OUTPUT,
  Sound_Mode_INPUT,
  Sound_Mode_FULLDUPLEX,
  Sound_Mode_COUNT
}
 Sound device driver opened for reading, writing or both. More...
enum  Sound_Input {
  Sound_Input_MIC,
  Sound_Input_LINE,
  Sound_Input_COUNT
}
 Sound inputs. More...

Functions

Sound_Handle Sound_create (Sound_Attrs *attrs)
 Creates a Sound device driver instance.
Int Sound_write (Sound_Handle hSound, Buffer_Handle hBuf)
 Write a buffer to the sound output. This function can only be called if the driver was opened for writing.
Int Sound_read (Sound_Handle hSound, Buffer_Handle hBuf)
 Fill a buffer from the sound input. This function can only be called if the driver was opened for reading.
Int Sound_delete (Sound_Handle hSound)
 Deletes a Sound device driver instance.

Variables

const Sound_Attrs Sound_Attrs_STEREO_DEFAULT
 Default attributes for a stereo Sound device driver.
const Sound_Attrs Sound_Attrs_MONO_DEFAULT
 Default attributes for a mono Sound device driver.

Copyright 2011, Texas Instruments Incorporated