CRIWARE Unity Plugin Manual  Last Updated: 2024-07-12
[CriAtom] Object-based audio with Sound xR

Sample contents

Summary

This is a sample of stereophonic sound using object-based audio using Sound xR .

cri4u_samples_criatom_expansion_soundxr_scene01_main.png

How to operate

  • [Play] button
    • Generate one moving sound source and play audio. The number of sound sources increases each time you press it
  • [Stop All] button
    • Stop all audio and delete all sound source objects.
  • [Disable Binauralizer / Enable Binauralizer] button
    • Enables/disables Sound xR each time you press it.

Scene information

Middleware CRI ADX(CRI Atom)
Sample Expansion sample
Storage location /CRIWARE/SDK/unity/samples/UnityProject/Assets/Scenes/criatom/expansion/SoundxR
Scene file Scene_01_SoundxR_Preview.unity
ACF file /CRIWARE/SDK/unity/samples/UnityProject/Assets/StreamingAssets/Object_Based_Audio_Project.acf
ACB file /CRIWARE/SDK/unity/samples/UnityProject/Assets/StreamingAssets/Object_Based_Audio_CueSheet.acb


Explanation

Creating Sound xR compatible data

This sample uses ACF/ACB files compatible with Sound xR.
Configure Sound xR as a software binauralizer in CRI AtomCraft.
Please also refer to the tool manual for details.

CriSoundxRInitializer component placement/initialization settings

In order to enable Sound xR, Sound xR initialization processing is required.
In this sample, initialization is performed automatically by placing the CriSoundxRInitializer component in the scene.
If you want to initialize explicitly from the program, call CriWare.CriSoundxR.RegisterInterface() before initializing the Atom library.
Additional settings for LibraryInitializer are also required.
Please initialize with binauralizer compatibility by enabling [Use Spatializer].

Enabling/disabling binauralizer

The [Disable Binauralizer / Enable Binauralizer] button calls CriWare.CriAtomExAsr.EnableBinauralizer,
Enabling/disabling Sound xR.
Depending on the playback environment, such as when using speaker output, you may not be able to obtain the binauralizer effect.
For this reason, we recommend that you enable/disable the binauralizer based on information about the playback environment and user settings within the app.

   THIS SERVICE MAY CONTAIN TRANSLATIONS POWERED BY GOOGLE. GOOGLE DISCLAIMS ALL WARRANTIES RELATED TO THE TRANSLATIONS, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF ACCURACY, RELIABILITY, AND ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.