pauliorew.blogg.se

Mediasonic hw180stb video and audio delay
Mediasonic hw180stb video and audio delay







  1. Mediasonic hw180stb video and audio delay driver#
  2. Mediasonic hw180stb video and audio delay android#

I am often frustrated with things like little delays, and/or crackles with audio in Unity. I am just going to throw a suggestion into the (excuse the pun) mix, here. Hopefully more experienced game and audio programmers can note on ways the delay can be more accurately measured.

mediasonic hw180stb video and audio delay

Mediasonic hw180stb video and audio delay driver#

The additional delay caused by the low level driver or HW, or by the next communication channel (bluetooth), is not reflected by the state returned by isPlaying(). a lower level audio driver (direct sound) or block (BT). So, polling AudioSource.isPlaying proved to measure the time it took AudioSource to delegate the audio clip to the next block, i.e. However, I see that this measurement does not reflect reality, because a significant delay is apparent when observing the time difference between the visual and the audio, clearly several 100ths of milliseconds.

Mediasonic hw180stb video and audio delay android#

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.

mediasonic hw180stb video and audio delay

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.

mediasonic hw180stb video and audio delay

  • 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.









    Mediasonic hw180stb video and audio delay