Enumerations | Functions | Variables

fancy_audio_1 Namespace Reference
[Second Fancy Device API]

Provides SamplerState and ChannelMode1 enumeration types. More...

Enumerations

enum  ResamplerState { RS_OK, RS_NEED_INPUT_BUF, RS_NEED_OUTPUT_BUF }
enum  ChannelMode1 { MONO = 1, STEREO = 2 }

Functions

static int CreateInstance (FANCYCLSID clsid, IEnv *pEnvironment, IPrivSet *pPrivSet, void **ppNewObj)

Variables

GenericResamplerLib * m_pResampler
bool m_Enabled
ICritSect * m_pRxBufferLock
std::queue< FancyCommand * > m_fancyRxBufferQueue
std::queue< FancyCommand * > m_fancyTxBufferQueue
 DECLARE_IQI

Detailed Description

This is the first fancy audio namespace.


Function Documentation

static int fancy_audio_1::CreateInstance ( FANCYCLSID  clsid,
IEnv *  pEnvironment,
IPrivSet *  pPrivSet,
void **  ppNewObj 
) [static]

Provides a public entry point for the module.

A new instance of FancyPlayback is created, and the default interface (FancyMediaModule) is returned.

Parameters:
[in] clsid FANCYCLSID of the module.
[in] pEnvironment Interface to the Fancy Services environment.
[out] pPrivSet Privilege set of the caller.
[in,out] ppNewObj Interface pointer of the new instance.
Returns:
SUCCESS -- Instance was created successfully.
ENOMEMORY -- Memory allocation failure.
Comments
A memory allocation failure requires a reboot.
Errors
If the new environment value is not an integer, the compiler generates an error.
If the new environment object is called outside the Fancy Services environment without the pointer, a constraint error occurs.

Variable Documentation

GenericResamplerLib* fancy_audio_1::m_pResampler

Generic Resampler library object.

Enables the master flag during FancyPlayback.

Critical section for the Rx buffer queue.

std::queue<FancyCommand*> fancy_audio_1::m_fancyRxBufferQueue

Rx and Tx queues for Fancy Device buffers received from the application.

Pulls in IQueryInterface method definitions.