#define MAX_DEVICES -4
static CriSint32 num_devices = 0;
};
main()
{
:
:
:
for (i = 1; i < MAX_DEVICES; i++) {
asr_rack_config.sound_renderer_type = sound_renderer_table[i];
}
:
:
:
}
static void CRIAPI user_endpoint_callback(void *object, IMMDevice *device)
{
:
device->GetId(&device_id);
CoTaskMemFree(device_id);
:
}
#define criAtomExAsrRack_SetDefaultConfig(p_config)
Setting default parameters for CriAtomAsrConfig
Definition: cri_le_atom_asr.h:2119
CriAtomExAsrRackId criAtomExAsrRack_Create(const CriAtomExAsrRackConfig *config, void *work, CriSint32 work_size)
Creating the ASR rack
CriAtomExPlaybackId criAtomExPlayer_Start(CriAtomExPlayerHn player)
Start the playback
void criAtomExPlayer_SetAsrRackId(CriAtomExPlayerHn player, CriSint32 rack_id)
Specifying the ASR Rack ID
enum CriAtomSoundRendererTypeTag CriAtomSoundRendererType
Sound renderer type
@ CRIATOM_SOUND_RENDERER_HW1
Definition: cri_le_atom.h:817
@ CRIATOM_SOUND_RENDERER_HW3
Definition: cri_le_atom.h:819
@ CRIATOM_SOUND_RENDERER_HW2
Definition: cri_le_atom.h:818
@ CRIATOM_SOUND_RENDERER_HW4
Definition: cri_le_atom.h:820
void criAtomEx_Initialize_WASAPI(const CriAtomExConfig_WASAPI *config, void *work, CriSint32 work_size)
Library initialization
CriSint32 criAtom_EnumAudioEndpoints_WASAPI(CriAtomAudioEndpointCbFunc_WASAPI callback, void *object)
Enumerate audio endpoints
void criAtom_SetDeviceId_WASAPI(CriAtomSoundRendererType type, LPCWSTR device_id)
Set sound device
#define criAtomEx_SetDefaultConfig_WASAPI(p_config)
Assign the default values to the configuration structure used for the library's initialization.
Definition: cri_le_atom_wasapi.h:75