CRIWARE Unity Plugin Manual
Last Updated: 2024-07-12
|
CRI Atom初始化参数 更多...
类 | |
class | AndroidLowLatencyStandardVoicePoolConfig |
class | EditorPcmOutputConfig |
class | HcaMxVoicePoolConfig |
class | InGamePreviewConfig |
class | StandardVoicePoolConfig |
Public 类型 | |
enum | InGamePreviewSwitchMode { , Enable, FollowBuildSetting, Default } |
CRI Atom初始化参数
|
strong |
string acfFileName = "" |
ACF文件名
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
InGamePreviewSwitchMode inGamePreviewMode = InGamePreviewSwitchMode.Default |
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 |
最大参数块数量
CriAtomEx.SoundRendererType soundRendererType = CriAtomEx.SoundRendererType.Native |
是否使用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(低延迟播放)播放开始缓冲时间
AndroidLowLatencyStandardVoicePoolConfig androidLowLatencyStandardVoicePoolConfig = new AndroidLowLatencyStandardVoicePoolConfig() |
[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] 串流类型设置