常规定时器(实际上是恒定的间隔) [英] Regular Timer (with actually constant intervalls)

查看:102
本文介绍了常规定时器(实际上是恒定的间隔)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是WP开发的新手,所以这可能是一个愚蠢的问题:我如何安排事件以便定期发生?我已经尝试过Timer功能,但问题在于它的准确性。我试着开发一个简单的节拍器,但有时候
的音调会有很小的延迟(或者有时会很快)。偏差真的很小,但如果你仔细聆听,你就可以听到它。

I'm new to WP development, so maybe this is a stupid question: how can I schedule events so they occur on a regular basis? I have already tried the Timer function, but the problem is its accuracy. I tried to develop a simple metronome, but the ticks sometimes are played with a tiny delay (or sometime a bit to soon). The deviations are really really small, but if you listen closely, you can hear it.

我只是在模拟器中尝试过,但我认为这与模拟器本身无关在真正的手机上也是如此?!

I only tried in the emulator, but I think this has nothing to do with the emulator itself and will be like this on a real phone as well?!

推荐答案

这是有点难以重现你的问题。如果可能,您可以使用简单的样本发布。所以我可以查看样本并帮助您解决这个问题。

It is bit hard to reproduce your issue. If possible can you post with a simple sample. So i can check with the sample and help you out to resolve this if possible.


这篇关于常规定时器(实际上是恒定的间隔)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆