Unity Android Sound Latency Fix(유니티 안드로이드 사운드 지연 문제 이슈)
안드로이드에서 사운드 지연 문제 이슈와 해결 방법으로 올라와 있어서 링크 해 놓음..
참조2 : http://tsubakit1.hateblo.jp/entry/2015/05/19/011835
If you're developing mobile games for Android, you've probably noticed ridiculous sound delay on some devices.
No more. With this plugin, your sounds will play almost immediately. Check out this demo video:
Features:
- Play in-game sounds without any delay on Android devices
- Simultaneous playback of several sounds
- All kinds of Android built-in audio file formats are supported
- Plugin uses Android Sound Pool for managing and using sound files
- Doesn't conflict with Unity sound system
It works by issuing direct calls to the Android OS, bypassing everything that Unity has in its audio system. It means that sounds won't be affected by distance, Doppler, project volume settings etc, which is perfectly acceptable for most of the Android games. In our game, music is played by Unity and short sounds are managed by this plugin, with no issues.
Usage is simple:
- Send filename of sound and get its ID's with AudioCenter.loadSound(path_to_file) method
- Play it with AudioCenter.playSound(sound_id) method
- Unload it with AudioCenter.unloadSound(sound_id) method to save memory
For more detailed instructions, refer to the .pdf, supplied with the plugin.
Download it directly from our website: http://catsknead.me/static/plugin.zip
In the archive you'll find .unitypackage, .pdf with detailed instructions, .java file, containing full source of the Android-side of the plugin and a test scene, in which you can compare two playback methods.
If you see no sound delay in the provided example scene - you probably have a lucky device, try another one
Coming to the Asset Store soon.
출처 : http://forum.unity3d.com/threads/android-sound-latency-fix.319943/
'Unity3D > Tips' 카테고리의 다른 글
Android Manifest File (0) | 2015.08.25 |
---|---|
Unity Editor command line arguments (0) | 2015.08.12 |
iOS Native 관련.. (0) | 2015.05.12 |
Scene뷰에서 Handles.Label() (0) | 2015.05.08 |
[링크] 유니티5 업그레이드 가이드 (0) | 2015.03.30 |