Ejemplo n.º 1
0
    public static void SetConfigParameters(int max_virtual_voices,
                                           int max_voice_limit_groups, int max_categories,
                                           int num_standard_memory_voices, int num_standard_streaming_voices,
                                           int num_hca_mx_memory_voices, int num_hca_mx_streaming_voices,
                                           int output_sampling_rate, int num_asr_output_channels,
                                           bool uses_in_game_preview, float server_frequency,
                                           int max_parameter_blocks, int categories_per_playback,
                                           int num_buses, bool vr_mode)
    {
        IntPtr spatializer_core_interface = IntPtr.Zero;

        /* Ambisonic データの再生に必要な初期化パラメータを取得する */
        if (vr_mode)
        {
#if UNITY_EDITOR || UNITY_STANDALONE_WIN || UNITY_ANDROID
            spatializer_core_interface = CriAtomPlugin.GetSpatializerCoreInterfaceFromAtomOculusAudioBridge();
#endif
        }
        criAtomUnity_SetConfigParameters(max_virtual_voices,
                                         max_voice_limit_groups, max_categories,
                                         num_standard_memory_voices, num_standard_streaming_voices,
                                         num_hca_mx_memory_voices, num_hca_mx_streaming_voices,
                                         output_sampling_rate, num_asr_output_channels,
                                         uses_in_game_preview, server_frequency,
                                         max_parameter_blocks, categories_per_playback,
                                         num_buses, vr_mode,
                                         spatializer_core_interface);
    }