CRIWARE Unity Plugin Manual
Last Updated: 2024-07-12
|
If you use the default settings of the CRI Atom library, noise may be generated (sound is interrupted) or no sound may play on some Android devices.
This problem can be improved by adjusting the sound decoding buffer as shown below.
On some devices, the default sound decoding buffer is not large enough, leading to noise or no sound.
To avoid this, you can adjust the following CriWare.CriWareInitializer component setting to increase the sound decoding buffer until the problem is solved.
The figure below shows CriWare.CriWareInitializer in Inspector of Unity Editor.
The section surrounded by a red square shows
from top to bottom. By default, the values below are specified.
At (a), adjust the size of the sound decoding buffer. At (b), specify how much sound data to accumulate before starting playback (milliseconds).
How much to increase depends on the device and the load status on the application. You must determine appropriate values for each device.
Repeat increasing (a) and (b) by the same number until no noise is generated and sound is played properly.
Then, if you use Low-latency sound playback on Android , sound playback is delayed by the value of (b). Reduce only the value of (b) so that no sound is interrupted.
CRI have confirmed noise (interrupted sound) on the devices below.
For example, for F-05D, we have confirmed that the setting below at CRI SDK generates no noise.
We have also confirmed no playback sound on the device below.
For AT200, we have confirmed that ADX sound is played with the following setting.
Basically, use the default values. Only for a specific device where sound is interrupted or no sound is played, identify the device model on the application side and adjust the buffer times.
# Sample code for identifying a model with code
# Reducing the playback start latency