我正在开发一个使用Audiotrack播放相关音频的应用程序.App允许用户随意暂停和播放音频。暂停和播放2-3次后,我的日志显示音频时听不到任何音频还在播放。在音频响起之前,我得到CPU Rendering VSync enable = true
02-27 10:06:42.705 21811-21811/tuningforkexperiment I/System.out: Pausing...
02-27 10:06:44.715 21811-21811/tuningforkexperiment I/System.out: Playing...
02-27 10:06:53.435 21811-21811/tuningforkexperiment I/System.out: Pausing...
02-27 10:06:56.625 21811-21811/tuningforkexperiment I/System.out: Playing...
02-27 10:07:00.375 21811-21811/tuningforkexperiment I/System.out: Pausing...
02-27 10:07:00.375 21811-21811/tuningforkexperiment I/System.out: Playing...
02-27 10:07:00.385 21811-21811/tuningforkexperiment I/ViewRootImpl: CPU Rendering VSync enable = true
02-27 10:07:04.055 21811-21811/tuningforkexperiment I/System.out: Pausing...
02-27 10:07:06.075 21811-21811/tuningforkexperiment I/System.out: Playing...
02-27 10:07:06.585 21811-21811/tuningforkexperiment I/System.out: Pausing...
02-27 10:07:06.585 21811-21811/tuningforkexperiment I/System.out: Playing...
02-27 10:07:06.595 21811-21811/tuningforkexperiment I/ViewRootImpl: CPU Rendering VSync enable = true
02-27 10:07:13.105 21811-21811/tuningforkexperiment I/System.out: Pausing...
02-27 10:07:14.845 21811-21811/tuningforkexperiment I/System.out: Playing...
02-27 10:07:14.855 21811-21811/tuningforkexperiment I/ViewRootImpl: CPU Rendering VSync enable = true
根据我的理解,通过此 link,VSync将某些事件同步到显示的刷新周期。我无法理解为什么它会影响播放的音频。感谢链接或代码/建议 提前致谢。