auhal.c File Reference

Include dependency graph for auhal.c:


Data Structures

struct  aout_sys_t

Defines

#define __MACHINEEXCEPTIONS__
#define verify_noerr(a)   assert((a) == noErr)
#define AudioComponent   Component
#define AudioComponentDescription   ComponentDescription
#define AudioComponentFindNext   FindNextComponent
#define AudioComponentInstanceNew   OpenAComponent
#define AudioComponentInstanceDispose   CloseComponent
#define AudioComponentInstanceNew   OpenAComponent
#define AudioComponentInstanceNew   OpenAComponent
#define STREAM_FORMAT_MSG(pre, sfm)
#define STREAM_FORMAT_MSG_FULL(pre, sfm)
#define FRAMESIZE   2048
#define BUFSIZE   (FRAMESIZE * 8)
#define AOUT_VAR_SPDIF_FLAG   0xf00000
#define ADEV_TEXT   N_("Audio Device")
#define ADEV_LONGTEXT
#define BUFFER   outOutputData->mBuffers[p_sys->i_stream_index]

Functions

static int Open (vlc_object_t *)
 Probes and initializes.
static int OpenAnalog (aout_instance_t *)
static int OpenSPDIF (aout_instance_t *)
static void Close (vlc_object_t *)
 Releases resources.
static void Play (aout_instance_t *)
static void Probe (aout_instance_t *)
static int AudioDeviceHasOutput (AudioDeviceID)
static int AudioDeviceSupportsDigital (aout_instance_t *, AudioDeviceID)
static int AudioStreamSupportsDigital (aout_instance_t *, AudioStreamID)
static int AudioStreamChangeFormat (aout_instance_t *, AudioStreamID, AudioStreamBasicDescription)
static OSStatus RenderCallbackAnalog (vlc_object_t *, AudioUnitRenderActionFlags *, const AudioTimeStamp *, unsigned int, unsigned int, AudioBufferList *)
static OSStatus RenderCallbackSPDIF (AudioDeviceID, const AudioTimeStamp *, const void *, const AudioTimeStamp *, AudioBufferList *, const AudioTimeStamp *, void *)
static OSStatus HardwareListener (AudioHardwarePropertyID, void *)
static OSStatus StreamListener (AudioStreamID, UInt32, AudioDevicePropertyID, void *)
static int AudioDeviceCallback (vlc_object_t *, const char *, vlc_value_t, vlc_value_t, void *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)

Define Documentation

#define __MACHINEEXCEPTIONS__

#define ADEV_LONGTEXT

Value:

N_("Choose a number corresponding to the number of an " \
    "audio device, as listed in your 'Audio Device' menu. This device will " \
    "then be used by default for audio playback.")

#define ADEV_TEXT   N_("Audio Device")

#define AOUT_VAR_SPDIF_FLAG   0xf00000

Referenced by Probe().

#define AudioComponent   Component

#define AudioComponentDescription   ComponentDescription

Referenced by OpenAnalog().

#define AudioComponentFindNext   FindNextComponent

Referenced by OpenAnalog().

#define AudioComponentInstanceDispose   CloseComponent

#define AudioComponentInstanceNew   OpenAComponent

#define AudioComponentInstanceNew   OpenAComponent

#define AudioComponentInstanceNew   OpenAComponent

Referenced by OpenAnalog().

#define BUFFER   outOutputData->mBuffers[p_sys->i_stream_index]

Referenced by RenderCallbackSPDIF().

#define BUFSIZE   (FRAMESIZE * 8)

#define FRAMESIZE   2048

Referenced by OpenAnalog().

#define STREAM_FORMAT_MSG ( pre,
sfm   ) 

Value:

pre "[%u][%4.4s][%u][%u][%u][%u][%u][%u]", \
    (UInt32)sfm.mSampleRate, (char *)&sfm.mFormatID, \
    sfm.mFormatFlags, sfm.mBytesPerPacket, \
    sfm.mFramesPerPacket, sfm.mBytesPerFrame, \
    sfm.mChannelsPerFrame, sfm.mBitsPerChannel

Referenced by AudioStreamChangeFormat(), AudioStreamSupportsDigital(), OpenAnalog(), and OpenSPDIF().

#define STREAM_FORMAT_MSG_FULL ( pre,
sfm   ) 

Value:

pre ":\nsamplerate: [%u]\nFormatID: [%4.4s]\nFormatFlags: [%u]\nBypesPerPacket: [%u]\nFramesPerPacket: [%u]\nBytesPerFrame: [%u]\nChannelsPerFrame: [%u]\nBitsPerChannel[%u]", \
    (UInt32)sfm.mSampleRate, (char *)&sfm.mFormatID, \
    sfm.mFormatFlags, sfm.mBytesPerPacket, \
    sfm.mFramesPerPacket, sfm.mBytesPerFrame, \
    sfm.mChannelsPerFrame, sfm.mBitsPerChannel

#define verify_noerr ( a   )     assert((a) == noErr)

Referenced by AudioDeviceHasOutput(), and OpenAnalog().


Function Documentation

static int AudioDeviceCallback ( vlc_object_t p_this,
const char *  psz_variable,
vlc_value_t  old_val,
vlc_value_t  new_val,
void *  param 
) [static]

static int AudioDeviceHasOutput ( AudioDeviceID  i_dev_id  )  [static]

References verify_noerr.

Referenced by Probe().

static int AudioDeviceSupportsDigital ( aout_instance_t p_aout,
AudioDeviceID  i_dev_id 
) [static]

References AudioStreamSupportsDigital(), i, msg_Err, and VLC_ENOMEM.

Referenced by Probe().

static int AudioStreamChangeFormat ( aout_instance_t p_aout,
AudioStreamID  i_stream_id,
AudioStreamBasicDescription  change_format 
) [static]

static int AudioStreamSupportsDigital ( aout_instance_t p_aout,
AudioStreamID  i_stream_id 
) [static]

References i, msg_Dbg, msg_Err, and STREAM_FORMAT_MSG.

Referenced by AudioDeviceSupportsDigital().

static void Close ( vlc_object_t p_this  )  [static]

Releases resources.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

static OSStatus HardwareListener ( AudioHardwarePropertyID  inPropertyID,
void *  inClientData 
) [static]

References var_Destroy, and var_TriggerCallback.

Referenced by Probe().

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

Basic chorus/flanger/delay audio filter This implements a variable delay filter for VLC.

Todo:

  • Improve CDDB support (non-blocking, cache, .

Open the module.

Create an X11 window.

Probe the X server.

This function initializes SDL vout method.

It creates an OpenGL vout display.

This function allocates and initialize the DirectX vout display.

It creates a Direct3D vout display.

This function allocates and initializes a FB vout method.

Find the drawable set by libvlc application.

This function initializes libcaca vout method.

This function allocates and initializes a aa vout method.

This function allocates and initializes a Wall splitter module.

Open the filter.

This function allocates and initializes a Clone splitter module.

Open: initialize and create stuff.

Connect to the sftp server and ask for a file.

Parameters:
p_this,: the vlc_object
Returns:
VLC_SUCCESS if everything was fine
Parameters:
p_this 
p_this,: the filter object
Returns:
VLC_SUCCESS or vlc error codes

Todo:
Reinstate meta codec name

static int OpenAnalog ( aout_instance_t p_aout  )  [static]

static int OpenSPDIF ( aout_instance_t p_aout  )  [static]

static void Play ( aout_instance_t p_aout  )  [static]

References VLC_UNUSED.

static void Probe ( aout_instance_t p_aout  )  [static]

static OSStatus RenderCallbackAnalog ( vlc_object_t _p_aout,
AudioUnitRenderActionFlags *  ioActionFlags,
const AudioTimeStamp *  inTimeStamp,
unsigned int  inBusNumber,
unsigned int  inNumberFrames,
AudioBufferList *  ioData 
) [static]

static OSStatus RenderCallbackSPDIF ( AudioDeviceID  inDevice,
const AudioTimeStamp *  inNow,
const void *  inInputData,
const AudioTimeStamp *  inInputTime,
AudioBufferList *  outOutputData,
const AudioTimeStamp *  inOutputTime,
void *  threadGlobals 
) [static]

static OSStatus StreamListener ( AudioStreamID  inStream,
UInt32  inChannel,
AudioDevicePropertyID  inPropertyID,
void *  inClientData 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Generated on Tue May 25 08:05:11 2010 for VLC by  doxygen 1.5.6