CRI ADX
Last Updated: 2024-07-17 10:47 p
|
Data Structures | |
struct | CriAtomConfigTag_WASAPI |
Configuration structure used for the initialization of the Atom libraryThis configuration structure is used to specify the behavior of the CRI Atom library. It is passed as an argument to the criAtom_Initialize_WASAPI function. More... | |
struct | CriAtomExConfigTag_WASAPI |
Configuration structure used for the initialization of the Atom libraryThis configuration structure is used to specify the behavior of the CRI Atom library. It is passed as an argument to the criAtomEx_Initialize_WASAPI function. More... | |
Macros | |
#define | criAtom_SetDefaultConfig_WASAPI(p_config) |
Assign the default values to the configuration structure used for the library's initialization. More... | |
#define | criAtomEx_SetDefaultConfig_WASAPI(p_config) |
Assign the default values to the configuration structure used for the library's initialization. More... | |
Typedefs | |
typedef struct CriAtomConfigTag_WASAPI | CriAtomConfig_WASAPI |
Configuration structure used for the initialization of the Atom libraryThis configuration structure is used to specify the behavior of the CRI Atom library. It is passed as an argument to the criAtom_Initialize_WASAPI function. More... | |
typedef void(* | CriAtomAudioEndpointCbFunc_WASAPI) (void *object, IMMDevice *device) |
Audio endpoint enumeration callback. More... | |
typedef void(* | CriAtomDeviceUpdateCbFunc_WASAPI) (void *object) |
Device update notification callback. More... | |
typedef struct CriAtomExConfigTag_WASAPI | CriAtomExConfig_WASAPI |
Configuration structure used for the initialization of the Atom libraryThis configuration structure is used to specify the behavior of the CRI Atom library. It is passed as an argument to the criAtomEx_Initialize_WASAPI function. More... | |
Functions | |
CriSint32 | criAtom_CalculateWorkSize_WASAPI (const CriAtomConfig_WASAPI *config) |
Calculate the size of the work buffer required to initialize the library. More... | |
void | criAtom_Initialize_WASAPI (const CriAtomConfig_WASAPI *config, void *work, CriSint32 work_size) |
Library initialization. More... | |
void | criAtom_Finalize_WASAPI (void) |
Finalize the library. More... | |
CriBool | criAtom_GetAudioClientMixFormat_WASAPI (WAVEFORMATEXTENSIBLE *format) |
Get the mixer format. More... | |
CriBool | criAtom_GetAudioClientIsFormatSupported_WASAPI (const WAVEFORMATEX *format) |
Check whether the specified format is usable or not. More... | |
void | criAtom_SetAudioClientShareMode_WASAPI (AUDCLNT_SHAREMODE mode) |
Sharing mode specification. More... | |
AUDCLNT_SHAREMODE | criAtom_GetAudioClientShareMode_WASAPI (void) |
Obtaining a shared mode. More... | |
void | criAtom_SetAudioClientFormat_WASAPI (const WAVEFORMATEX *format) |
Output format specification. More... | |
void | criAtom_SetAudioClientBufferDuration_WASAPI (REFERENCE_TIME ref_time) |
Set the buffering time. More... | |
IAudioClient * | criAtom_GetAudioClient_WASAPI (void) |
Get the AudioClient. More... | |
CriBool | criAtom_IsDeviceInvalidated_WASAPI (void) |
Check if the audio device is disabled. More... | |
void | criAtom_SetDeviceId_WASAPI (CriAtomSoundRendererType type, LPCWSTR device_id) |
Set sound device. More... | |
CriSint32 | criAtom_EnumAudioEndpoints_WASAPI (CriAtomAudioEndpointCbFunc_WASAPI callback, void *object) |
Enumerate audio endpoints. More... | |
void | criAtom_SetDeviceUpdateCallback_WASAPI (CriAtomDeviceUpdateCbFunc_WASAPI callback, void *object) |
Register device update notification. More... | |
void | criAtom_SetSpatialAudioEnabled_WASAPI (CriAtomSoundRendererType type, CriBool sw) |
Enabling the Spatial Audio feature. More... | |
CriBool | criAtom_IsSpatialAudioEnabled_WASAPI (CriAtomSoundRendererType type) |
Check if the Spatial Audio feature is enabled. More... | |
CriSint32 | criAtomEx_CalculateWorkSize_WASAPI (const CriAtomExConfig_WASAPI *config) |
Calculate the size of the work buffer required to initialize the library. More... | |
void | criAtomEx_Initialize_WASAPI (const CriAtomExConfig_WASAPI *config, void *work, CriSint32 work_size) |
Library initialization. More... | |
void | criAtomEx_Finalize_WASAPI (void) |
Finalize the library. More... | |
#define criAtom_SetDefaultConfig_WASAPI | ( | p_config | ) |
Assign the default values to the configuration structure used for the library's initialization.
[out] | p_config | Pointer to the configuration structure used for the library's initialization. |
#define criAtomEx_SetDefaultConfig_WASAPI | ( | p_config | ) |
Assign the default values to the configuration structure used for the library's initialization.
[out] | p_config | Pointer to the configuration structure used for the library's initialization. |
typedef struct CriAtomConfigTag_WASAPI CriAtomConfig_WASAPI |
Configuration structure used for the initialization of the Atom libraryThis configuration structure is used to specify the behavior of the CRI Atom library.
It is passed as an argument to the criAtom_Initialize_WASAPI function.
typedef void( * CriAtomAudioEndpointCbFunc_WASAPI) (void *object, IMMDevice *device) |
Audio endpoint enumeration callback.
[in] | object | User Object |
[in] | device | IMMDevice instance |
typedef void( * CriAtomDeviceUpdateCbFunc_WASAPI) (void *object) |
Device update notification callback.
[in] | object | User Object |
typedef struct CriAtomExConfigTag_WASAPI CriAtomExConfig_WASAPI |
Configuration structure used for the initialization of the Atom libraryThis configuration structure is used to specify the behavior of the CRI Atom library.
It is passed as an argument to the criAtomEx_Initialize_WASAPI function.
CriSint32 criAtom_CalculateWorkSize_WASAPI | ( | const CriAtomConfig_WASAPI * | config | ) |
Calculate the size of the work buffer required to initialize the library.
[in] | config | Configuration structure for initialization |
void criAtom_Initialize_WASAPI | ( | const CriAtomConfig_WASAPI * | config, |
void * | work, | ||
CriSint32 | work_size | ||
) |
Library initialization.
[in] | config | Configuration structure for initialization |
[in] | work | Work buffer |
[in] | work_size | Work buffer size |
Therefore, if you call this function, do not call the functions listed above.
If you call this function, you must always call the criAtom_Finalize_WASAPI function later.
Do not call this function again until you have called the criAtom_Finalize_WASAPI function.
This function is for the low level API.
When using the functions of the AtomEx layer, call criAtomEx_Initialize_WASAPI instead.
void criAtom_Finalize_WASAPI | ( | void | ) |
Finalize the library.
Therefore, if you call this function, do not call the functions above.
This function cannot be called before the criAtom_Initialize_WASAPI function is called.
This function is for the low level API.
When using the functions of the AtomEx layer, call criAtomEx_Finalize_WASAPI instead.
CriBool criAtom_GetAudioClientMixFormat_WASAPI | ( | WAVEFORMATEXTENSIBLE * | format | ) |
Get the mixer format.
[out] | format | Mixer format |
CriBool criAtom_GetAudioClientIsFormatSupported_WASAPI | ( | const WAVEFORMATEX * | format | ) |
Check whether the specified format is usable or not.
[in] | format | Format to be used |
void criAtom_SetAudioClientShareMode_WASAPI | ( | AUDCLNT_SHAREMODE | mode | ) |
Sharing mode specification.
[in] | mode | Mode to be used |
AUDCLNT_SHAREMODE criAtom_GetAudioClientShareMode_WASAPI | ( | void | ) |
Obtaining a shared mode.
void criAtom_SetAudioClientFormat_WASAPI | ( | const WAVEFORMATEX * | format | ) |
Output format specification.
[in] | format | Format to be used |
void criAtom_SetAudioClientBufferDuration_WASAPI | ( | REFERENCE_TIME | ref_time | ) |
Set the buffering time.
[in] | ref_time | Buffering time |
IAudioClient* criAtom_GetAudioClient_WASAPI | ( | void | ) |
Get the AudioClient.
CriBool criAtom_IsDeviceInvalidated_WASAPI | ( | void | ) |
Check if the audio device is disabled.
void criAtom_SetDeviceId_WASAPI | ( | CriAtomSoundRendererType | type, |
LPCWSTR | device_id | ||
) |
Set sound device.
[in] | type | Sound renderer type |
[in] | device_id | Device ID |
If NULL or a character string of length 0 is specified for "device_id", the link between the sound renderer and the device ID is canceled. (The behavior will change as the audio output from the default device.)
CriSint32 criAtom_EnumAudioEndpoints_WASAPI | ( | CriAtomAudioEndpointCbFunc_WASAPI | callback, |
void * | object | ||
) |
Enumerate audio endpoints.
[in] | callback | Audio endpoint callback function |
[in] | object | User Object |
void criAtom_SetDeviceUpdateCallback_WASAPI | ( | CriAtomDeviceUpdateCbFunc_WASAPI | callback, |
void * | object | ||
) |
Register device update notification.
[in] | callback | Device Update callback function |
[in] | object | User Object |
void criAtom_SetSpatialAudioEnabled_WASAPI | ( | CriAtomSoundRendererType | type, |
CriBool | sw | ||
) |
Enabling the Spatial Audio feature.
[in] | type | Sound Renderer Type |
[in] | sw | Enable or disable the function (CRI_TRUE = enable, CRI_FALSE = disable) |
CriBool criAtom_IsSpatialAudioEnabled_WASAPI | ( | CriAtomSoundRendererType | type | ) |
Check if the Spatial Audio feature is enabled.
[in] | type | Sound Renderer Type |
CriSint32 criAtomEx_CalculateWorkSize_WASAPI | ( | const CriAtomExConfig_WASAPI * | config | ) |
Calculate the size of the work buffer required to initialize the library.
[in] | config | Configuration structure for initialization |
void criAtomEx_Initialize_WASAPI | ( | const CriAtomExConfig_WASAPI * | config, |
void * | work, | ||
CriSint32 | work_size | ||
) |
Library initialization.
[in] | config | Configuration structure for initialization |
[in] | work | Work area |
[in] | work_size | Work area size |
Therefore, if you call this function, do not call the functions listed above.
If you call this function, you must always call the criAtomEx_Finalize_WASAPI function later.
Do call this function again before having called criAtomEx_Finalize_WASAPI.
void criAtomEx_Finalize_WASAPI | ( | void | ) |
Finalize the library.
Therefore, if you call this function, do not call the functions above.
This function cannot be executed before the criAtomEx_Initialize_WASAPI function is called.