CRI ADX
Last Updated: 2024-07-17 10:48 p
|
结构体 | |
struct | CriAtomExRngInterfaceTag |
Random Number Generator interface 更多... | |
struct | CriAtomExAcfRegistrationInfoTag |
ACF location information 更多... | |
struct | CriAtomExConfigTag |
Configuration structure used to initialize the Atom libraryThis structure is used to specify the behavior of the CRI Atom library. It is passed to the criAtomEx_Initialize function. The CRI Atom library will allocate internal resources as needed during initialization according to the settings specified in this structure. The size of the work area required by the library varies depending on the parameters specified in this structure. 更多... | |
struct | CriAtomExFormatInfoTag |
Audio data format information 更多... | |
struct | CriAtomExSphericalCoordinatesTag |
Spherical Coordinate Structure 更多... | |
struct | CriAtomEx3dAttenuationParameterTag |
Distance attenuation parameter structure 更多... | |
struct | CriAtomExGameVariableInfoTag |
Structure for acquiring game variable information 更多... | |
struct | CriAtomExResourceUsageTag |
Usage status of various resources 更多... | |
struct | CriAtomExVoiceInfoDetailTag |
Detailed information about a voice 更多... | |
struct | CriAtomExMonitoringVoiceStopInfoTag |
Structure for acquiring voice stop information 更多... | |
struct | CriAtomExCueLinkInfoTag |
Info structure for the CueLink callback type 更多... | |
struct | CriAtomExPlaybackCancelInfoTag |
Info structure for playback cancel callbacks 更多... | |
struct | CriAtomExTrackTransitionBySelectorInfoTag |
Info structure for track transition by selector callbacks 更多... | |
宏定义 | |
#define | criAtomEx_SetDefaultConfigForUserPcmOutput(p_config) |
Set default values to the library initialization configuration structure 更多... | |
#define | CRIATOMEX_MAX_VIRTUAL_VOICES (32767) |
Configurable maximum number of virtual voices 更多... | |
#define | criAtomEx_SetUserAllocator(p_malloc_func, p_free_func, p_obj) criAtom_SetUserAllocator((p_malloc_func), (p_free_func), (p_obj)) |
Register a custom memory allocator 更多... | |
#define | criAtomEx_SetDefaultConfig(p_config) |
Assign the default values to the configuration structure used for the library's initialization. 更多... | |
#define | criAtomEx_AttachPerformanceMonitor() criAtom_AttachPerformanceMonitor() |
Add the performance monitor 更多... | |
#define | criAtomEx_DetachPerformanceMonitor() criAtom_DetachPerformanceMonitor() |
Remove the performance monitor 更多... | |
#define | criAtomEx_ResetPerformanceMonitor() criAtom_ResetPerformanceMonitor() |
Reset the performance monitor 更多... | |
#define | criAtomEx_GetPerformanceInfo(p_info) criAtom_GetPerformanceInfo(p_info) |
Get the performance information 更多... | |
#define | criAtomEx_SetChannelMapping(nch, type) criAtom_SetChannelMapping((nch), (type)) |
Specify the channel mapping pattern 更多... | |
#define | criAtomEx_CalculateAdxBitrate(num_channels, sampling_rate) criAtom_CalculateAdxBitrate(num_channels, sampling_rate) |
Calculate the bit rate of ADX data 更多... | |
#define | criAtomEx_CalculateHcaBitrate(num_channels, sampling_rate, quality) criAtom_CalculateHcaBitrate(num_channels, sampling_rate, quality) |
Calculate the bit rate of HCA data 更多... | |
#define | criAtomEx_CalculateHcaMxBitrate(num_channels, sampling_rate, quality) criAtom_CalculateHcaMxBitrate(num_channels, sampling_rate, quality) |
Calculate the bit rate of HCA-MX data 更多... | |
#define | criAtomEx_CalculateWaveBitrate(num_channels, sampling_rate, num_bits) criAtom_CalculateWaveBitrate(num_channels, sampling_rate, num_bits) |
Calculate the bit rate of Wave data 更多... | |
#define | criAtomEx_CalculateAiffBitrate(num_channels, sampling_rate, num_bits) criAtom_CalculateAiffBitrate(num_channels, sampling_rate, num_bits) |
Calculate the bit rate of AIFF data 更多... | |
#define | criAtomEx_GetStreamingInfo(streaming_info) criAtom_GetStreamingInfo(streaming_info) |
Acquiring streaming information 更多... | |
#define | criAtomEx_SetFreeTimeBufferingFlagForDefaultDevice(flag) criAtom_SetFreeTimeBufferingFlagForDefaultDevice(flag) |
Enable or disable the loading of streams when there is free time during file I/O 更多... | |
类型定义 | |
typedef CriAtomMallocFunc | CriAtomExMallocFunc |
Memory allocation function 更多... | |
typedef CriAtomFreeFunc | CriAtomExFreeFunc |
Memory deallocation function 更多... | |
typedef enum CriAtomExThreadModelTag | CriAtomExThreadModel |
Threading models 更多... | |
typedef enum CriAtomExCoordinateSystemTag | CriAtomExCoordinateSystem |
Coordinate system 更多... | |
typedef enum CriAtomExAcfLocationInfoTypeTag | CriAtomExAcfLocationInfoType |
ACF designated type 更多... | |
typedef void * | CriAtomExRngHn |
Random Number Generator handle | |
typedef struct CriAtomExRngInterfaceTag | CriAtomExRngInterface |
Random Number Generator interface | |
typedef struct CriAtomExAcfRegistrationInfoTag | CriAtomExAcfRegistrationInfo |
ACF location information 更多... | |
typedef struct CriAtomExConfigTag | CriAtomExConfig |
Configuration structure used to initialize the Atom libraryThis structure is used to specify the behavior of the CRI Atom library. It is passed to the criAtomEx_Initialize function. The CRI Atom library will allocate internal resources as needed during initialization according to the settings specified in this structure. The size of the work area required by the library varies depending on the parameters specified in this structure. 更多... | |
typedef CriAtomPerformanceInfo | CriAtomExPerformanceInfo |
Performance information 更多... | |
typedef CriSint32 | CriAtomExWaveId |
Waveform data ID 更多... | |
typedef CriSint32 | CriAtomExVibrationId |
Vibration ID 更多... | |
typedef CriAtomFormat | CriAtomExFormat |
Format type 更多... | |
typedef struct CriAtomExFormatInfoTag | CriAtomExFormatInfo |
Audio data format information 更多... | |
typedef enum CriAtomExResumeModeTag | CriAtomExResumeMode |
Resume target 更多... | |
typedef enum CriAtomExBiquadFilterTypeTag | CriAtomExBiquadFilterType |
Type of biquad filter 更多... | |
typedef enum CriAtomExSilentModeTag | CriAtomExSilentMode |
Silent mode 更多... | |
typedef enum CriAtomExPanTypeTag | CriAtomExPanType |
Pan type 更多... | |
typedef enum CriAtomExPanSpeakerTypeTag | CriAtomExPanSpeakerType |
Output speaker type for panning 更多... | |
typedef enum CriAtomExPanAngleTypeTag | CriAtomExPanAngleType |
Panning angle type 更多... | |
typedef CriUint32 | CriAtomExSpeakerSystem |
Order of the output speakers 更多... | |
typedef struct CriAtomExSphericalCoordinatesTag | CriAtomExSphericalCoordinates |
Spherical Coordinate Structure 更多... | |
typedef struct CriAtomEx3dAttenuationParameterTag | CriAtomEx3dAttenuationParameter |
Distance attenuation parameter structure 更多... | |
typedef CriSint32 | CriAtomExBlockIndex |
Block Index 更多... | |
typedef CriUint32 | CriAtomExGameVariableId |
Game variable ID 更多... | |
typedef struct CriAtomExGameVariableInfoTag | CriAtomExGameVariableInfo |
Structure for acquiring game variable information 更多... | |
typedef CriAtomStreamingInfo | CriAtomExStreamingInfo |
Streaming information 更多... | |
typedef enum CriAtomExCharacterEncodingTag | CriAtomExCharacterEncoding |
Character code 更多... | |
typedef struct CriAtomExResourceUsageTag | CriAtomExResourceUsage |
Usage status of various resources 更多... | |
typedef enum CriAtomExCurveTypeTag | CriAtomExCurveType |
Curve Type 更多... | |
typedef enum CriAtomExVoiceEventTag | CriAtomExVoiceEvent |
Voice event 更多... | |
typedef struct CriAtomExVoiceInfoDetailTag | CriAtomExVoiceInfoDetail |
Detailed information about a voice 更多... | |
typedef void(* | CriAtomExVoiceEventCbFunc) (void *obj, CriAtomExVoiceEvent voice_event, const CriAtomExVoiceInfoDetail *request, const CriAtomExVoiceInfoDetail *removed, const CriAtomExVoiceInfoDetail *removed_in_group) |
Type definition of the Voice event callback 更多... | |
typedef void(* | CriAtomExVoiceInfoCbFunc) (void *obj, const CriAtomExVoiceInfoDetail *voice_info) |
Type definition of the Voice information callback 更多... | |
typedef struct CriAtomExMonitoringVoiceStopInfoTag | CriAtomExMonitoringVoiceStopInfo |
Structure for acquiring voice stop information 更多... | |
typedef enum CriAtomExCueLinkTypeTag | CriAtomExCueLinkType |
CueLink callback type | |
typedef struct CriAtomExCueLinkInfoTag | CriAtomExCueLinkInfo |
Info structure for the CueLink callback type | |
typedef CriSint32(* | CriAtomExCueLinkCbFunc) (void *obj, const CriAtomExCueLinkInfo *info) |
CueLink callback 更多... | |
typedef enum CriAtomExPlaybackCancelTypeTag | CriAtomExPlaybackCancelType |
Playback cancel type 更多... | |
typedef struct CriAtomExPlaybackCancelInfoTag | CriAtomExPlaybackCancelInfo |
Info structure for playback cancel callbacks | |
typedef void(* | CriAtomExPlaybackCancelCbFunc) (void *obj, const CriAtomExPlaybackCancelInfo *info) |
Playback cancel callback 更多... | |
typedef struct CriAtomExTrackTransitionBySelectorInfoTag | CriAtomExTrackTransitionBySelectorInfo |
Info structure for track transition by selector callbacks | |
typedef void(* | CriAtomExTrackTransitionBySelectorCbFunc) (void *obj, const CriAtomExTrackTransitionBySelectorInfo *info) |
Track transition by selector callback 更多... | |
函数 | |
CriSint32 | criAtomEx_CalculateWorkSizeForUserPcmOutput (const CriAtomExConfigForUserPcmOutput *config) |
Calculate the size of the work area required for the user PCM output method 更多... | |
void | criAtomEx_InitializeForUserPcmOutput (const CriAtomExConfigForUserPcmOutput *config, void *work, CriSint32 work_size) |
Initialization of the user PCM output 更多... | |
void | criAtomEx_FinalizeForUserPcmOutput (void) |
End processing of user PCM output library 更多... | |
CriSint32 | criAtomEx_CalculateWorkSize (const CriAtomExConfig *config) |
Calculate the size of the work buffer required to initialize the library 更多... | |
CriBool | criAtomEx_Initialize (const CriAtomExConfig *config, void *work, CriSint32 work_size) |
Initialize the library 更多... | |
void | criAtomEx_Finalize (void) |
Finalize the library 更多... | |
CriBool | criAtomEx_IsInitialized (void) |
Check the library initialization status 更多... | |
void | criAtomEx_ExecuteMain (void) |
Execute the server processing 更多... | |
void | criAtomEx_ExecuteAudioProcess (void) |
Execute the server processing for user multithreading. 更多... | |
void | criAtomEx_Lock (void) |
Prevent the server process interrupts 更多... | |
void | criAtomEx_Unlock (void) |
Cancel the server process interrupt prevention 更多... | |
CriUint64 | criAtomEx_GetTimeMicro (void) |
Get the time 更多... | |
void | criAtomEx_ResetTimer (void) |
Reset the timer 更多... | |
void | criAtomEx_PauseTimer (CriBool sw) |
Pause the timer 更多... | |
void | criAtomEx_SetConfigForWorkSizeCalculation (const CriAtomExConfig *config) |
Set the configuration structure used for the calculation of the work buffer sizes 更多... | |
CriSint32 | criAtomEx_CalculateWorkSizeForRegisterAcfData (void *acf_data, CriSint32 acf_data_size) |
Calculate the size of the work buffer required to register in-memory ACF data 更多... | |
void | criAtomEx_RegisterAcfData (void *acf_data, CriSint32 acf_data_size, void *work, CriSint32 work_size) |
Register in-memory ACF data 更多... | |
CriSint32 | criAtomEx_CalculateWorkSizeForRegisterAcfFile (CriFsBinderHn binder, const CriChar8 *path) |
Calculate the size of the work buffer required to register an ACF file 更多... | |
CriSint32 | criAtomEx_CalculateWorkSizeForRegisterAcfFileById (CriFsBinderHn binder, CriUint16 id) |
Calculate the size of the work buffer required to register an ACF file (specifying a CPK content ID) 更多... | |
CriBool | criAtomEx_RegisterAcfFile (CriFsBinderHn binder, const CriChar8 *path, void *work, CriSint32 work_size) |
Register an ACF file 更多... | |
CriBool | criAtomEx_RegisterAcfFileById (CriFsBinderHn binder, CriUint16 id, void *work, CriSint32 work_size) |
Register an ACF file (specifying a CPK content ID) 更多... | |
void | criAtomEx_UnregisterAcf (void) |
Unregister an ACF file 更多... | |
CriUint32 | criAtomEx_GetAcfVersion (void *acf_data, CriSint32 acf_data_size, CriBool *flag) |
Get the version of an in-memory ACF 更多... | |
CriUint32 | criAtomEx_GetAcfVersionFromFile (CriFsBinderHn binder, const CriChar8 *path, void *work, CriSint32 work_size, CriBool *flag) |
Get the version of an ACF file 更多... | |
CriUint32 | criAtomEx_GetAcfVersionFromFileById (CriFsBinderHn binder, CriUint16 id, void *work, CriSint32 work_size, CriBool *flag) |
Get the version of an ACF file (specifying CPK content ID) 更多... | |
void | criAtomEx_GetSupportedAcfVersion (CriUint32 *version_low, CriUint32 *version_high) |
Get what versions of an ACF file can be registered 更多... | |
CriBool | criAtomEx_AnalyzeAudioHeader (const void *buffer, CriSint32 buffer_size, CriAtomExFormatInfo *info) |
Analyze audio header 更多... | |
void | criAtomEx_SetRandomSeed (CriUint32 seed) |
Set a random seed 更多... | |
CriSint32 | criAtomEx_CalculateWorkSizeForDspBusSetting (const CriChar8 *setting) |
Calculate the size of the work buffer required to attach a DSP bus setting 更多... | |
CriSint32 | criAtomEx_CalculateWorkSizeForDspBusSettingFromAcfData (void *acf_data, CriSint32 acf_buffer_size, const CriChar8 *setting_name) |
Calculate the size of the work buffer required to attach a DSP bus setting 更多... | |
void | criAtomEx_AttachDspBusSetting (const CriChar8 *setting, void *work, CriSint32 work_size) |
Attach a DSP bus setting 更多... | |
void | criAtomEx_DetachDspBusSetting (void) |
Detach a DSP bus setting 更多... | |
void | criAtomEx_ApplyDspBusSnapshot (const CriChar8 *snapshot_name, CriSint32 time_ms) |
Applying a DSP bus snapshot 更多... | |
const CriChar8 * | criAtomEx_GetAppliedDspBusSnapshotName (void) |
Get the name of the snapshot applied to a DSP bus 更多... | |
void | criAtomEx_SetCueLinkCallback (CriAtomExCueLinkCbFunc func, void *obj) |
Registering a CueLink callback function 更多... | |
void | criAtomEx_SetSpeakerAngles (CriFloat32 angle_l, CriFloat32 angle_r, CriFloat32 angle_sl, CriFloat32 angle_sr) |
Setting 5.1-ch speaker angles 更多... | |
void | criAtomEx_SetSpeakerAngleArray (CriAtomExSpeakerSystem speaker_system, const CriFloat32 *angle_array) |
Setting the speaker angles 更多... | |
void | criAtomEx_SetVirtualSpeakerAngleArray (CriAtomExSpeakerSystem speaker_system, const CriFloat32 *angle_array) |
Set the virtual speaker angle 更多... | |
void | criAtomEx_ControlVirtualSpeakerSetting (CriBool sw) |
Virtual speaker setting ON/OFF 更多... | |
CriSint32 | criAtomEx_GetNumGameVariables (void) |
Acquiring the total number of game variables 更多... | |
CriBool | criAtomEx_GetGameVariableInfo (CriUint16 index, CriAtomExGameVariableInfo *info) |
Acquiring game variable information (by specifying an index) 更多... | |
CriFloat32 | criAtomEx_GetGameVariableById (CriAtomExGameVariableId id) |
Acquiring a game variable 更多... | |
CriFloat32 | criAtomEx_GetGameVariableByName (const CriChar8 *name) |
Acquiring a game variable 更多... | |
void | criAtomEx_SetGameVariableById (CriAtomExGameVariableId id, CriFloat32 value) |
Setting a game variable 更多... | |
void | criAtomEx_SetGameVariableByName (const CriChar8 *name, CriFloat32 value) |
Setting a game variable 更多... | |
void | criAtomEx_SetPlaybackCancelCallback (CriAtomExPlaybackCancelCbFunc func, void *obj) |
Registering a playback cancel callback function 更多... | |
void | criAtomEx_ControlAcfConsistencyCheck (CriBool sw) |
ACF consistency check function ON/OFF 更多... | |
void | criAtomEx_SetAcfConsistencyCheckErrorLevel (CriErrorLevel level) |
ACF consistency check error level setting 更多... | |
void | criAtomEx_SetTrackTransitionBySelectorCallback (CriAtomExTrackTransitionBySelectorCbFunc func, void *obj) |
Registering a track transition by selector callback function 更多... | |
void | criAtomExAcf_SetGlobalLabelToSelectorByName (const CriChar8 *selsector_name, const CriChar8 *label_name) |
Set a Global Reference Label for Selector 更多... | |
void | criAtomExAcf_SetGlobalLabelToSelectorByIndex (CriUint16 selsector_index, CriUint16 label_index) |
Set a Global Reference Label for Selector 更多... | |
CriAtomExOutputPortHn | criAtomExAcf_GetOutputPortHnByName (const CriChar8 *name) |
Getting the output port handle of the ACF file by name 更多... | |
void | criAtomExPlayer_EnumeratePlayers (CriAtomExPlayerCbFunc func, void *obj) |
Enumerating players 更多... | |
void | criAtomEx_SetVoiceEventCallback (CriAtomExVoiceEventCbFunc func, void *obj) |
Register a voice event callback 更多... | |
void | criAtomEx_EnumerateVoiceInfos (CriAtomExVoiceInfoCbFunc func, void *obj) |
Voice information enumerator 更多... | |
void | criAtomEx_SetMonitoringVoiceStopCallback (CriAtomExMonitoringVoiceStopCbFunc func, void *obj) |
Registering a callback function for monitoring a voice stop 更多... | |
void | criAtomEx_SetMonitoringVoiceStopPlaybackId (CriAtomExPlaybackId playback_id) |
Registering a playback ID for monitoring a voice stop 更多... | |
#define criAtomEx_SetDefaultConfigForUserPcmOutput | ( | p_config | ) |
Set default values to the library initialization configuration structure
[out] | p_config | Pointer to the initializing configuration structure |
#define CRIATOMEX_MAX_VIRTUAL_VOICES (32767) |
Configurable maximum number of virtual voices
#define criAtomEx_SetUserAllocator | ( | p_malloc_func, | |
p_free_func, | |||
p_obj | |||
) | criAtom_SetUserAllocator((p_malloc_func), (p_free_func), (p_obj)) |
Register a custom memory allocator
[in] | p_malloc_func | memory allocation function |
[in] | p_free_func | memory deallocation function |
[in] | p_obj | user-specified object |
#define criAtomEx_SetDefaultConfig | ( | 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_AttachPerformanceMonitor | ( | ) | criAtom_AttachPerformanceMonitor() |
Add the performance monitor
#define criAtomEx_DetachPerformanceMonitor | ( | ) | criAtom_DetachPerformanceMonitor() |
Remove the performance monitor
#define criAtomEx_ResetPerformanceMonitor | ( | ) | criAtom_ResetPerformanceMonitor() |
Reset the performance monitor
#define criAtomEx_GetPerformanceInfo | ( | p_info | ) | criAtom_GetPerformanceInfo(p_info) |
Get the performance information
#define criAtomEx_SetChannelMapping | ( | nch, | |
type | |||
) | criAtom_SetChannelMapping((nch), (type)) |
Specify the channel mapping pattern
[in] | nch | number of channels for which the mapping pattern is changed |
[in] | type | mapping pattern |
#define criAtomEx_CalculateAdxBitrate | ( | num_channels, | |
sampling_rate | |||
) | criAtom_CalculateAdxBitrate(num_channels, sampling_rate) |
Calculate the bit rate of ADX data
[in] | num_channels | number of channels in the data |
[in] | sampling_rate | sampling rate of the data |
#define criAtomEx_CalculateHcaBitrate | ( | num_channels, | |
sampling_rate, | |||
quality | |||
) | criAtom_CalculateHcaBitrate(num_channels, sampling_rate, quality) |
Calculate the bit rate of HCA data
[in] | num_channels | number of channels in the data |
[in] | sampling_rate | sampling rate of the data |
[in] | quality | encoding quality of the data |
#define criAtomEx_CalculateHcaMxBitrate | ( | num_channels, | |
sampling_rate, | |||
quality | |||
) | criAtom_CalculateHcaMxBitrate(num_channels, sampling_rate, quality) |
Calculate the bit rate of HCA-MX data
[in] | num_channels | number of channels in the data |
[in] | sampling_rate | sampling rate of the data |
[in] | quality | encoding quality of the data |
#define criAtomEx_CalculateWaveBitrate | ( | num_channels, | |
sampling_rate, | |||
num_bits | |||
) | criAtom_CalculateWaveBitrate(num_channels, sampling_rate, num_bits) |
Calculate the bit rate of Wave data
[in] | num_channels | number of channels of the data |
[in] | sampling_rate | sampling rate of the data |
[in] | num_bits | number of bits per sample |
#define criAtomEx_CalculateAiffBitrate | ( | num_channels, | |
sampling_rate, | |||
num_bits | |||
) | criAtom_CalculateAiffBitrate(num_channels, sampling_rate, num_bits) |
Calculate the bit rate of AIFF data
[in] | num_channels | number of channels of the data |
[in] | sampling_rate | sampling rate of the data |
[in] | num_bits | number of bits per sample |
#define criAtomEx_GetStreamingInfo | ( | streaming_info | ) | criAtom_GetStreamingInfo(streaming_info) |
Acquiring streaming information
[out] | streaming_info | Pointer to the location where streaming information is stored |
CRI_TRUE | Succeeded in acquiring the value |
CRI_FALSE | Failed in acquiring the value |
#define criAtomEx_SetFreeTimeBufferingFlagForDefaultDevice | ( | flag | ) | criAtom_SetFreeTimeBufferingFlagForDefaultDevice(flag) |
Enable or disable the loading of streams when there is free time during file I/O
[in] | flag | CRI_TRUE = Use free time during file I/O to perform streaming |
CRI_TRUE | The process finished normally. |
CRI_FALSE | An error occurred. |
typedef CriAtomMallocFunc CriAtomExMallocFunc |
Memory allocation function
typedef CriAtomFreeFunc CriAtomExFreeFunc |
Memory deallocation function
typedef enum CriAtomExThreadModelTag CriAtomExThreadModel |
Threading models
typedef enum CriAtomExCoordinateSystemTag CriAtomExCoordinateSystem |
Coordinate system
ACF designated type
typedef struct CriAtomExAcfRegistrationInfoTag CriAtomExAcfRegistrationInfo |
ACF location information
typedef struct CriAtomExConfigTag CriAtomExConfig |
Configuration structure used to initialize the Atom libraryThis structure is used to specify the behavior of the CRI Atom library.
It is passed to the criAtomEx_Initialize function.
The CRI Atom library will allocate internal resources as needed during initialization according to the settings specified in this structure.
The size of the work area required by the library varies depending on the parameters specified in this structure.
Performance information
typedef CriSint32 CriAtomExWaveId |
Waveform data ID
typedef CriSint32 CriAtomExVibrationId |
Vibration ID
typedef CriAtomFormat CriAtomExFormat |
Format type
typedef struct CriAtomExFormatInfoTag CriAtomExFormatInfo |
Audio data format information
typedef enum CriAtomExResumeModeTag CriAtomExResumeMode |
Resume target
typedef enum CriAtomExBiquadFilterTypeTag CriAtomExBiquadFilterType |
Type of biquad filter
typedef enum CriAtomExSilentModeTag CriAtomExSilentMode |
Silent mode
typedef enum CriAtomExPanTypeTag CriAtomExPanType |
Pan type
typedef enum CriAtomExPanSpeakerTypeTag CriAtomExPanSpeakerType |
Output speaker type for panning
typedef enum CriAtomExPanAngleTypeTag CriAtomExPanAngleType |
Panning angle type
typedef CriUint32 CriAtomExSpeakerSystem |
Order of the output speakers
typedef struct CriAtomExSphericalCoordinatesTag CriAtomExSphericalCoordinates |
Spherical Coordinate Structure
Distance attenuation parameter structure
typedef CriSint32 CriAtomExBlockIndex |
Block Index
typedef CriUint32 CriAtomExGameVariableId |
Game variable ID
typedef struct CriAtomExGameVariableInfoTag CriAtomExGameVariableInfo |
Structure for acquiring game variable information
Streaming information
typedef enum CriAtomExCharacterEncodingTag CriAtomExCharacterEncoding |
Character code
typedef struct CriAtomExResourceUsageTag CriAtomExResourceUsage |
Usage status of various resources
typedef enum CriAtomExCurveTypeTag CriAtomExCurveType |
typedef enum CriAtomExVoiceEventTag CriAtomExVoiceEvent |
Voice event
typedef struct CriAtomExVoiceInfoDetailTag CriAtomExVoiceInfoDetail |
Detailed information about a voice
typedef void( * CriAtomExVoiceEventCbFunc) (void *obj, CriAtomExVoiceEvent voice_event, const CriAtomExVoiceInfoDetail *request, const CriAtomExVoiceInfoDetail *removed, const CriAtomExVoiceInfoDetail *removed_in_group) |
Type definition of the Voice event callback
[in] | obj | user-specified object |
[in] | voice_event | event that occurred |
[in] | request | detailed informaton about the playback request |
[in] | removed | detailed information about the stopped voice |
[in] | removed_in_group | detailed information about the stopped voice in the group |
typedef void( * CriAtomExVoiceInfoCbFunc) (void *obj, const CriAtomExVoiceInfoDetail *voice_info) |
Type definition of the Voice information callback
[in] | obj | User-specified object |
[in] | voice_info | Voice information |
Structure for acquiring voice stop information
typedef CriSint32( * CriAtomExCueLinkCbFunc) (void *obj, const CriAtomExCueLinkInfo *info) |
CueLink callback
[in] | obj | User specified object |
[in] | info | CueLink information |
Playback cancel type
typedef void( * CriAtomExPlaybackCancelCbFunc) (void *obj, const CriAtomExPlaybackCancelInfo *info) |
Playback cancel callback
[in] | obj | User specified object |
[in] | info | Playback cancel information |
typedef void( * CriAtomExTrackTransitionBySelectorCbFunc) (void *obj, const CriAtomExTrackTransitionBySelectorInfo *info) |
Track transition by selector callback
[in] | obj | User specified object |
[in] | info | Information about the track transition by selector callback |
Threading models
枚举值 | |
---|---|
CRIATOMEX_THREAD_MODEL_MULTI | Multithreading
|
CRIATOMEX_THREAD_MODEL_MULTI_WITH_SONICSYNC | Multi-threaded low latency output
|
CRIATOMEX_THREAD_MODEL_MULTI_USER_DRIVEN | Multithreading (user-driven)
|
CRIATOMEX_THREAD_MODEL_USER_MULTI | User multithreading
|
CRIATOMEX_THREAD_MODEL_SINGLE | Single threading
|
Coordinate system
ACF designated type
枚举值 | |
---|---|
CRIATOMEX_ACF_LOCATION_INFO_TYPE_NONE | Not set |
CRIATOMEX_ACF_LOCATION_INFO_TYPE_NAME | File name |
CRIATOMEX_ACF_LOCATION_INFO_TYPE_ID | Content ID |
CRIATOMEX_ACF_LOCATION_INFO_TYPE_DATA | On memory data |
Resume target
Type of biquad filter
Silent mode
enum CriAtomExPanTypeTag |
Pan type
枚举值 | |
---|---|
CRIATOMEX_PAN_TYPE_UNKNOWN | Unknown
|
CRIATOMEX_PAN_TYPE_PAN3D | Pan3D
|
CRIATOMEX_PAN_TYPE_3D_POS | 3D Positioning
|
CRIATOMEX_PAN_TYPE_AUTO | Automatic
|
Output speaker type for panning
Panning angle type
枚举值 | |
---|---|
CRIATOMEX_PAN_ANGLE_TYPE_OFFSET | Offset
|
CRIATOMEX_PAN_ANGLE_TYPE_FIX | Fixed
|
CRIATOMEX_PAN_ANGLE_TYPE_AMBIENCE_MIX | Environmental sound mix
|
CRIATOMEX_PAN_ANGLE_TYPE_AMBIENCE_STRAIGHT | Environmental sound linear interpolation
|
Voice event
枚举值 | |
---|---|
CRIATOMEX_VOICE_EVENT_ALLOCATE | Allocate a voice
|
CRIATOMEX_VOICE_EVENT_ALLOCATE_AND_REMOVE | Steal a voice
|
CRIATOMEX_VOICE_EVENT_ALLOCATE_AND_REMOVE_IN_GROUP | Steal a voice from the same voice limit group
|
CRIATOMEX_VOICE_EVENT_ALOOCATE_AND_REMOVE_TWO | Steal a voice and adjust the number of voices
|
CRIATOMEX_VOICE_EVENT_REJECT | Reject a playback request
|
CRIATOMEX_VOICE_EVENT_REJECT_BY_GROUP_LIMIT | Reject a playback request in the same group
|
CRIATOMEX_VOICE_EVENT_REMOVE | Stop voice
|
Playback cancel type
CriSint32 criAtomEx_CalculateWorkSizeForUserPcmOutput | ( | const CriAtomExConfigForUserPcmOutput * | config | ) |
Calculate the size of the work area required for the user PCM output method
[in] | config | Configuration structure |
void criAtomEx_InitializeForUserPcmOutput | ( | const CriAtomExConfigForUserPcmOutput * | config, |
void * | work, | ||
CriSint32 | work_size | ||
) |
Initialization of the user PCM output
[in] | config | Configuration structure for initialization |
[in] | work | Work area |
[in] | work_size | Work area size |
void criAtomEx_FinalizeForUserPcmOutput | ( | void | ) |
End processing of user PCM output library
CriSint32 criAtomEx_CalculateWorkSize | ( | const CriAtomExConfig * | config | ) |
Calculate the size of the work buffer required to initialize the library
[in] | config | configuration structure used to initialize the library |
>= | 0 successfully completed |
-1 | error occurred |
CriBool criAtomEx_Initialize | ( | const CriAtomExConfig * | config, |
void * | work, | ||
CriSint32 | work_size | ||
) |
Initialize the library
[in] | config | configuration structure used to initialize the library |
[in] | work | work buffer |
[in] | work_size | size of the work buffer |
A code example is shown below.
[Initialization of the library using the Fixed Memory method]
The following lines show the procedure to initialize/finalize the library when the Fixed Memory method is used.
A code example is shown below.
void criAtomEx_Finalize | ( | void | ) |
Finalize the library
CriBool criAtomEx_IsInitialized | ( | void | ) |
Check the library initialization status
CRI_FALSE | uninitialized |
CRI_TRUE | initialized |
void criAtomEx_ExecuteMain | ( | void | ) |
Execute the server processing
void criAtomEx_ExecuteAudioProcess | ( | void | ) |
Execute the server processing for user multithreading.
void criAtomEx_Lock | ( | void | ) |
Prevent the server process interrupts
void criAtomEx_Unlock | ( | void | ) |
Cancel the server process interrupt prevention
CriUint64 criAtomEx_GetTimeMicro | ( | void | ) |
Get the time
void criAtomEx_ResetTimer | ( | void | ) |
Reset the timer
void criAtomEx_PauseTimer | ( | CriBool | sw | ) |
Pause the timer
[in] | sw | CRI_TRUE = Pause timer, CRI_FALSE = Resume timer |
void criAtomEx_SetConfigForWorkSizeCalculation | ( | const CriAtomExConfig * | config | ) |
Set the configuration structure used for the calculation of the work buffer sizes
[in] | config | Configuration structure |
CriSint32 criAtomEx_CalculateWorkSizeForRegisterAcfData | ( | void * | acf_data, |
CriSint32 | acf_data_size | ||
) |
Calculate the size of the work buffer required to register in-memory ACF data
[in] | acf_data | ACF data address |
[in] | acf_data_size | ACF data size |
>= | 0 successfully completed |
-1 | error occurred |
void criAtomEx_RegisterAcfData | ( | void * | acf_data, |
CriSint32 | acf_data_size, | ||
void * | work, | ||
CriSint32 | work_size | ||
) |
Register in-memory ACF data
[in] | acf_data | ACF data address |
[in] | acf_data_size | ACF data size |
[in] | work | work buffer |
[in] | work_size | work buffer size |
Both the ACF data buffer and the work buffer that are passed to this function must be maintained by the application until the criAtomEx_UnregisterAcf function is executed.
(Do not release the memory for the work buffer before calling the criAtomEx_UnregisterAcf function.) A part of the ACF data buffer is also used as a work buffer.
CriSint32 criAtomEx_CalculateWorkSizeForRegisterAcfFile | ( | CriFsBinderHn | binder, |
const CriChar8 * | path | ||
) |
Calculate the size of the work buffer required to register an ACF file
[in] | binder | binder handle |
[in] | path | file path |
>= | 0 successfully completed |
-1 | error occurred |
CriSint32 criAtomEx_CalculateWorkSizeForRegisterAcfFileById | ( | CriFsBinderHn | binder, |
CriUint16 | id | ||
) |
Calculate the size of the work buffer required to register an ACF file (specifying a CPK content ID)
[in] | binder | binder handle |
[in] | id | CPK content ID |
>= | 0 successfully completed |
-1 | error occurred |
CriBool criAtomEx_RegisterAcfFile | ( | CriFsBinderHn | binder, |
const CriChar8 * | path, | ||
void * | work, | ||
CriSint32 | work_size | ||
) |
Register an ACF file
[in] | binder | binder handle |
[in] | path | file path |
[in] | work | work buffer |
[in] | work_size | work buffer size |
This function allocates a loader with the criFsLoader_Create function when it begins its execution and destroys the loader with the criFsLoader_Destroy function when it finishes its execution.
Before calling this function, make sure to adjust the number of loaders so that there is at least one free load handle.
If you do not register an allocator using the criAtomEx_SetUserAllocator macro, and you specify a work area for the work size calculated by the criAtomEx_CalculateWorkSizeForRegisterAcfFile function and CRI_FALSE is returned when this function is called, the cause may be a lack of work area.
Make sure that the following members of the CriAtomExConfig structure that you specify at the time of library initialization are set to the correct values
CriBool criAtomEx_RegisterAcfFileById | ( | CriFsBinderHn | binder, |
CriUint16 | id, | ||
void * | work, | ||
CriSint32 | work_size | ||
) |
Register an ACF file (specifying a CPK content ID)
[in] | binder | binder handle |
[in] | id | CPK content ID |
[in] | work | work buffer |
[in] | work_size | work buffer size |
void criAtomEx_UnregisterAcf | ( | void | ) |
Unregister an ACF file
CriUint32 criAtomEx_GetAcfVersion | ( | void * | acf_data, |
CriSint32 | acf_data_size, | ||
CriBool * | flag | ||
) |
Get the version of an in-memory ACF
[in] | acf_data | ACF data address |
[in] | acf_data_size | ACF data size |
[out] | flag | flag that indicates whether the ACF can be registered or not |
CriUint32 criAtomEx_GetAcfVersionFromFile | ( | CriFsBinderHn | binder, |
const CriChar8 * | path, | ||
void * | work, | ||
CriSint32 | work_size, | ||
CriBool * | flag | ||
) |
Get the version of an ACF file
[in] | binder | binder handle |
[in] | path | file path |
[in] | work | work buffer |
[in] | work_size | work buffer size |
[out] | flag | flag that indicates whether the ACF can be registered or not |
CriUint32 criAtomEx_GetAcfVersionFromFileById | ( | CriFsBinderHn | binder, |
CriUint16 | id, | ||
void * | work, | ||
CriSint32 | work_size, | ||
CriBool * | flag | ||
) |
Get the version of an ACF file (specifying CPK content ID)
[in] | binder | binder handle |
[in] | id | CPK content ID |
[in] | work | work buffer |
[in] | work_size | work buffer size |
[out] | flag | flag that indicates whether the ACF can be registered or not |
void criAtomEx_GetSupportedAcfVersion | ( | CriUint32 * | version_low, |
CriUint32 * | version_high | ||
) |
Get what versions of an ACF file can be registered
[out] | version_low | lowest version that can be registered |
[out] | version_high | highest version that can be registered |
CriBool criAtomEx_AnalyzeAudioHeader | ( | const void * | buffer, |
CriSint32 | buffer_size, | ||
CriAtomExFormatInfo * | info | ||
) |
Analyze audio header
[in] | buffer | buffer that stores the audio data |
[in] | buffer_size | size of the buffer that stores the audio data |
[out] | info | format information |
void criAtomEx_SetRandomSeed | ( | CriUint32 | seed | ) |
Set a random seed
[in] | seed | random seed |
CriSint32 criAtomEx_CalculateWorkSizeForDspBusSetting | ( | const CriChar8 * | setting | ) |
Calculate the size of the work buffer required to attach a DSP bus setting
[in] | setting | name of the DSP bus setting |
>= | 0 successfully completed |
-1 | error occurred |
CriSint32 criAtomEx_CalculateWorkSizeForDspBusSettingFromAcfData | ( | void * | acf_data, |
CriSint32 | acf_buffer_size, | ||
const CriChar8 * | setting_name | ||
) |
Calculate the size of the work buffer required to attach a DSP bus setting
[in] | acf_data | ACF data |
[in] | acf_buffer_size | ACF data size |
[in] | setting_name | name of the DSP bus setting |
void criAtomEx_AttachDspBusSetting | ( | const CriChar8 * | setting, |
void * | work, | ||
CriSint32 | work_size | ||
) |
Attach a DSP bus setting
[in] | setting | name of the DSP bus setting |
[in] | work | work buffer |
[in] | work_size | work buffer size |
void criAtomEx_DetachDspBusSetting | ( | void | ) |
Detach a DSP bus setting
void criAtomEx_ApplyDspBusSnapshot | ( | const CriChar8 * | snapshot_name, |
CriSint32 | time_ms | ||
) |
Applying a DSP bus snapshot
[in] | snapshot_name | Name of the snapshot |
[in] | time_ms | Time (milliseconds) |
const CriChar8* criAtomEx_GetAppliedDspBusSnapshotName | ( | void | ) |
Get the name of the snapshot applied to a DSP bus
void criAtomEx_SetCueLinkCallback | ( | CriAtomExCueLinkCbFunc | func, |
void * | obj | ||
) |
Registering a CueLink callback function
[in] | func | CueLink callback function |
[in] | obj | User specified object |
void criAtomEx_SetSpeakerAngles | ( | CriFloat32 | angle_l, |
CriFloat32 | angle_r, | ||
CriFloat32 | angle_sl, | ||
CriFloat32 | angle_sr | ||
) |
Setting 5.1-ch speaker angles
[in] | angle_l | Angle of the front left speaker |
[in] | angle_r | Angle of the front right speaker |
[in] | angle_sl | Angle of the surround left speaker |
[in] | angle_sr | Angle of the surround right speaker |
void criAtomEx_SetSpeakerAngleArray | ( | CriAtomExSpeakerSystem | speaker_system, |
const CriFloat32 * | angle_array | ||
) |
Setting the speaker angles
[in] | speaker_system | Order of output speakers |
[in] | angle_array | Angles of output speakers |
void criAtomEx_SetVirtualSpeakerAngleArray | ( | CriAtomExSpeakerSystem | speaker_system, |
const CriFloat32 * | angle_array | ||
) |
Set the virtual speaker angle
[in] | speaker_system | Order of virtual speakers |
[in] | angle_array | Angles of virtual speakers |
void criAtomEx_ControlVirtualSpeakerSetting | ( | CriBool | sw | ) |
Virtual speaker setting ON/OFF
[in] | sw | Switch (CRI_FALSE = disable, CRI_TRUE = enable) |
CriSint32 criAtomEx_GetNumGameVariables | ( | void | ) |
Acquiring the total number of game variables
CriBool criAtomEx_GetGameVariableInfo | ( | CriUint16 | index, |
CriAtomExGameVariableInfo * | info | ||
) |
Acquiring game variable information (by specifying an index)
[in] | index | Game variable index |
[out] | info | Game variable information |
CriFloat32 criAtomEx_GetGameVariableById | ( | CriAtomExGameVariableId | id | ) |
Acquiring a game variable
[in] | id | Game variable ID |
CriFloat32 criAtomEx_GetGameVariableByName | ( | const CriChar8 * | name | ) |
Acquiring a game variable
[in] | name | Game variable name |
void criAtomEx_SetGameVariableById | ( | CriAtomExGameVariableId | id, |
CriFloat32 | value | ||
) |
Setting a game variable
[in] | id | Game variable ID |
[in] | value | Game variable value |
void criAtomEx_SetGameVariableByName | ( | const CriChar8 * | name, |
CriFloat32 | value | ||
) |
Setting a game variable
[in] | name | Game variable name |
[in] | value | Game variable value |
void criAtomEx_SetPlaybackCancelCallback | ( | CriAtomExPlaybackCancelCbFunc | func, |
void * | obj | ||
) |
Registering a playback cancel callback function
[in] | func | Playback cancel callback function |
[in] | obj | User specified object |
void criAtomEx_ControlAcfConsistencyCheck | ( | CriBool | sw | ) |
ACF consistency check function ON/OFF
[in] | sw | Switch (CRI_FALSE = Check disabled, CRI_TRUE = Check enabled) |
void criAtomEx_SetAcfConsistencyCheckErrorLevel | ( | CriErrorLevel | level | ) |
ACF consistency check error level setting
[in] | level | Error level |
void criAtomEx_SetTrackTransitionBySelectorCallback | ( | CriAtomExTrackTransitionBySelectorCbFunc | func, |
void * | obj | ||
) |
Registering a track transition by selector callback function
[in] | func | Track transition by selector callback function |
[in] | obj | User specified object |
void criAtomExAcf_SetGlobalLabelToSelectorByName | ( | const CriChar8 * | selsector_name, |
const CriChar8 * | label_name | ||
) |
Set a Global Reference Label for Selector
[in] | selsector_name | Selector name |
[in] | label_name | Label name |
void criAtomExAcf_SetGlobalLabelToSelectorByIndex | ( | CriUint16 | selsector_index, |
CriUint16 | label_index | ||
) |
Set a Global Reference Label for Selector
[in] | selsector_index | Selector index |
[in] | label_index | Label index |
CriAtomExOutputPortHn criAtomExAcf_GetOutputPortHnByName | ( | const CriChar8 * | name | ) |
Getting the output port handle of the ACF file by name
[in] | name | Output port name |
void criAtomExPlayer_EnumeratePlayers | ( | CriAtomExPlayerCbFunc | func, |
void * | obj | ||
) |
Enumerating players
[in] | func | Player callback function |
[in] | obj | User specified object |
void criAtomEx_SetVoiceEventCallback | ( | CriAtomExVoiceEventCbFunc | func, |
void * | obj | ||
) |
Register a voice event callback
[in] | func | Voice event callback function |
[in] | obj | User-specified object |
void criAtomEx_EnumerateVoiceInfos | ( | CriAtomExVoiceInfoCbFunc | func, |
void * | obj | ||
) |
Voice information enumerator
[in] | func | Voice information callback function |
[in] | obj | User-specified object |
void criAtomEx_SetMonitoringVoiceStopCallback | ( | CriAtomExMonitoringVoiceStopCbFunc | func, |
void * | obj | ||
) |
Registering a callback function for monitoring a voice stop
[in] | func | Callback function for monitoring a voice stop |
[in] | obj | User specified object |
void criAtomEx_SetMonitoringVoiceStopPlaybackId | ( | CriAtomExPlaybackId | playback_id | ) |
Registering a playback ID for monitoring a voice stop
[in] | playback_id | Playback ID for monitoring a voice stop |