CRI ADX
Last Updated: 2024-07-17 10:48 p
|
结构体 | |
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. 更多... | |
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. 更多... | |
宏定义 | |
#define | criAtom_SetDefaultConfig_WASAPI(p_config) |
Assign the default values 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. 更多... | |
类型定义 | |
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 更多... | |
typedef void(* | CriAtomDeviceUpdateCbFunc_WASAPI) (void *object) |
Device update notification callback 更多... | |
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 更多... | |
void | criAtom_Initialize_WASAPI (const CriAtomConfig_WASAPI *config, void *work, CriSint32 work_size) |
Library initialization 更多... | |
void | criAtom_Finalize_WASAPI (void) |
Finalize the library 更多... | |
CriBool | criAtom_GetAudioClientMixFormat_WASAPI (WAVEFORMATEXTENSIBLE *format) |
Get the mixer format 更多... | |
CriBool | criAtom_GetAudioClientIsFormatSupported_WASAPI (const WAVEFORMATEX *format) |
Check whether the specified format is usable or not 更多... | |
void | criAtom_SetAudioClientShareMode_WASAPI (AUDCLNT_SHAREMODE mode) |
Sharing mode specification 更多... | |
AUDCLNT_SHAREMODE | criAtom_GetAudioClientShareMode_WASAPI (void) |
Obtaining a shared mode 更多... | |
void | criAtom_SetAudioClientFormat_WASAPI (const WAVEFORMATEX *format) |
Output format specification 更多... | |
void | criAtom_SetAudioClientBufferDuration_WASAPI (REFERENCE_TIME ref_time) |
Set the 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 更多... | |
CriSint32 | criAtom_EnumAudioEndpoints_WASAPI (CriAtomAudioEndpointCbFunc_WASAPI callback, void *object) |
Enumerate audio endpoints 更多... | |
void | criAtom_SetDeviceUpdateCallback_WASAPI (CriAtomDeviceUpdateCbFunc_WASAPI callback, void *object) |
Register device update notification 更多... | |
void | criAtom_SetSpatialAudioEnabled_WASAPI (CriAtomSoundRendererType type, CriBool sw) |
Enabling the Spatial Audio feature 更多... | |
CriBool | criAtom_IsSpatialAudioEnabled_WASAPI (CriAtomSoundRendererType type) |
Check if the Spatial Audio feature is enabled 更多... | |
CriSint32 | criAtomEx_CalculateWorkSize_WASAPI (const CriAtomExConfig_WASAPI *config) |
Calculate the size of the work buffer required to initialize the library 更多... | |
void | criAtomEx_Initialize_WASAPI (const CriAtomExConfig_WASAPI *config, void *work, CriSint32 work_size) |
Library initialization 更多... | |
void | criAtomEx_Finalize_WASAPI (void) |
Finalize the library 更多... | |
#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.