CRIWARE Unity Plugin Manual  Last Updated: 2024-07-12
CriAtomConfig类 参考

CRI Atom初始化参数 更多...

class  AndroidLowLatencyStandardVoicePoolConfig
 
class  EditorPcmOutputConfig
 
class  HcaMxVoicePoolConfig
 
class  InGamePreviewConfig
 
class  StandardVoicePoolConfig
 

Public 类型

enum  InGamePreviewSwitchMode { , Enable, FollowBuildSetting, Default }
 

Public 属性

string acfFileName = ""
 ACF文件名 更多...
 
int maxVirtualVoices = 32
 
int maxVoiceLimitGroups = 32
 
int maxCategories = 32
 
int maxAisacs = 8
 
int maxBusSends = 8
 
int maxSequenceEventsPerFrame = 2
 
int maxBeatSyncCallbacksPerFrame = 1
 
int maxCueLinkCallbacksPerFrame = 1
 
StandardVoicePoolConfig standardVoicePoolConfig = new StandardVoicePoolConfig()
 
HcaMxVoicePoolConfig hcaMxVoicePoolConfig = new HcaMxVoicePoolConfig()
 
int outputSamplingRate = 0
 
bool usesInGamePreview = false
 
InGamePreviewSwitchMode inGamePreviewMode = InGamePreviewSwitchMode.Default
 
InGamePreviewConfig inGamePreviewConfig = new InGamePreviewConfig()
 
float serverFrequency = 60.0f
 
CriAtom.SpeakerMapping speakerMapping
 
int asrOutputChannels = 0
 
bool useRandomSeedWithTime = true
 
int categoriesPerPlayback = 4
 
int maxFaders = 4
 
int maxBuses = 8
 
float maxPitch = 2400f
 
int maxParameterBlocks = 1024
 
CriAtomEx.SoundRendererType soundRendererType = CriAtomEx.SoundRendererType.Native
 
bool keepPlayingSoundOnPause = true
 
bool enableSonicSync = true
 
EditorPcmOutputConfig editorPcmOutputConfig = new EditorPcmOutputConfig()
 
int pcBufferingTime = 0
 
bool useMicrosoftSpatialSound = true
 
bool iosEnableSonicSync = true
 
int iosBufferingTime = 50
 
bool iosOverrideIPodMusic = false
 
bool androidEnableSonicSync = true
 
int androidBufferingTime = 133
 
int androidStartBufferingTime = 100
 
AndroidLowLatencyStandardVoicePoolConfig androidLowLatencyStandardVoicePoolConfig = new AndroidLowLatencyStandardVoicePoolConfig()
 
bool androidUsesAndroidFastMixer = true
 
bool androidForceToUseAsrForDefaultPlayback = true
 
bool androidUsesAAudio = false
 
int androidStreamType = 0
 

详细描述

CRI Atom初始化参数

成员枚举类型说明

In-Game Preview设置

枚举值
Enable 

禁用

FollowBuildSetting 

启用

Default 

仅对Development Build有效 "usesInGamePreview"

类成员变量说明

string acfFileName = ""

ACF文件名

注意:
ACF文件需要配置于StreamingAssets文件夹中。
int maxVirtualVoices = 32

最大虚拟Voice数

int maxVoiceLimitGroups = 32

最大Voice限制组数量

int maxCategories = 32

最大类型数

int maxAisacs = 8

最大AISAC数

int maxBusSends = 8

总线发送的最大数量

int maxSequenceEventsPerFrame = 2

每帧中序列事件的最大数量

int maxBeatSyncCallbacksPerFrame = 1

每帧中节拍同步回调的最大数量

int maxCueLinkCallbacksPerFrame = 1

每帧Cue链接回调的最大数量

StandardVoicePoolConfig standardVoicePoolConfig = new StandardVoicePoolConfig()

标准Voice池创建参数

HcaMxVoicePoolConfig hcaMxVoicePoolConfig = new HcaMxVoicePoolConfig()

HCA-MX Voice池创建参数

int outputSamplingRate = 0

输出采样率

bool usesInGamePreview = false

是否使用In-Game Preview

In-Game Preview设置(仅在Inspector中设置时有效)

InGamePreviewConfig inGamePreviewConfig = new InGamePreviewConfig()

In-Game Preview参数

float serverFrequency = 60.0f

Server频率

CriAtom.SpeakerMapping speakerMapping

ASR的扬声器映射

int asrOutputChannels = 0

ASR输出声道数

bool useRandomSeedWithTime = true

是否以时间(System.DateTime.Now.Ticks)为随机种子

int categoriesPerPlayback = 4

每个播放的类型参照数

int maxFaders = 4

最大渐变器数目

int maxBuses = 8

最大总线数

float maxPitch = 2400f

更改音高的上限值

int maxParameterBlocks = 1024

最大参数块数量

是否使用VR音频输出模式

bool keepPlayingSoundOnPause = true

在StandAlone平台或者Unity编辑器中暂停时是否暂停音频输出

bool enableSonicSync = true

是否启用SonicSYNC(安卓/iOS/Switch除外)

EditorPcmOutputConfig editorPcmOutputConfig = new EditorPcmOutputConfig()

[编辑器] 用户PCM输出模式相关参数

int pcBufferingTime = 0

[PC] 输出缓冲时间

bool useMicrosoftSpatialSound = true

[PC] Microsoft Spatial Sound启用标记

bool iosEnableSonicSync = true

[iOS] 启用SonicSYNC模式

int iosBufferingTime = 50

[iOS] 输出缓冲时间(毫秒)

bool iosOverrideIPodMusic = false

[iOS] 是否覆盖iPod播放

bool androidEnableSonicSync = true

[Android] 启用SonicSYNC模式

int androidBufferingTime = 133

[Android] ASR(正常播放)输出缓冲时间

int androidStartBufferingTime = 100

[Android] NSR(低延迟播放)播放开始缓冲时间

[Android] 低延迟播放Voice池的创建参数

bool androidUsesAndroidFastMixer = true

[Android] 是否使用安卓的Fast Mixer功能以减少音频播放期间的发音延迟。会影响ASR/NSR的发音延迟和延迟推测功能的结果

bool androidForceToUseAsrForDefaultPlayback = true

[Android] 低延迟播放启用时是否强制CriAtomSource使用ASR播放

bool androidUsesAAudio = false

[Android] Beta功能: 是否启用AAudio

int androidStreamType = 0

[Android] 串流类型设置


该类的文档由以下文件生成: