![]() ![]() On Android via BT Audio, I get similar numbers (40 msec). In windows, the video event seems to precede the audio event by a greater interval. However, the video event seems a lot closer, on the time line, to the audio event, in Android. On Android, similar delay (33 msec and 50 msec observed, similar average to windows - ~40 msec). audio_dsp-buffer-size : default, audio clip type - wav - 14 msec.audio_dsp-buffer-size : default, audio clip type - ogg - 14 msec.audio_dsp-buffer-size : best latency, audio clip type - wav - 11 msec.audio_dsp-buffer-size : best latency, audio clip type - ogg - 11 msec.I averaged between 20 and 40 playbacks, for each setup. The build settings are for windows, and I use the internal-IDE Game window, direct sound. I know the audio clip length, and by subtracting it from the elapsed time (from the moment I call PlayOneShot() till the moment audio_source.isPlaying = false), I get the delay unity introduces. audio_dsp-buffer-size : default, audio clip type - wav. ![]() audio_dsp-buffer-size : default, audio clip type - ogg.audio_dsp-buffer-size : best latency, audio clip type - wav.audio_dsp-buffer-size : best latency, audio clip type - ogg. ![]() I came upon this thread, and as a result decided to measure the latency. display a new character, make a typewriter click sound. I have some code I created for a typewriter effect. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |