English 中文(简体)
下水时通知?
原标题:ALSA: notification when underrun occurs?

当重播期间出现下调时,是否有可能(通过回调或类似方式)得到ALSA的通知?

我会使用snd_async_handler_t,但不幸的是, 失败,告诉我这一功能没有执行。

最佳回答

ALSA不会注意到,直到它读出当前位置之前 已经发生了一个亏空

  • when your application calls an ALSA function that needs the position, or
  • in the interrupt handler, which will wake up any currently waiting snd_pcm_write*() call.

因此,在实践中,单独通知是没有道理的。

通常情况下, 您只需检查 snd_ pcm_ write * () 的返回值, 或者明确调用 snd_ pcm_ status () 。

问题回答

暂无回答




相关问题
Alert email in TFS and power tools

I have a problem with TFS and email notifications. I can not receive any emails from TFS server for work item tracking. I correctly have configured web.config in ...Web ServicesServices in TFS ...

3 notifications instead of one

I m developing simple MVC app in Cocoa/Objective-C. I have a strange issue (or misunderstanding) with notifications and KVO. I have AppController object in MainMenu.xib, hence I implement ...

Notification when laptop is switch on (boot)

I need to know, is that possible to get a notification through email whenever my laptop is switched on or is connected to internet ? An alternative is to get notification when set service Starts on ...

Feedback service for Push notification

I wrote the below script to read the feedback data. But, for some reasons, I am not receiving any data from the server. Can you kindly let me know whats wrong with the script. Also, if you have any ...

热门标签