mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
- add get_max_rate timing API call
- change ast_settimeout() to honor max rate in edge cases of file playback (this will make some warning messages go away at the end of playing back a file) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -72,6 +72,7 @@ struct ast_timing_functions {
|
||||
int (*timer_enable_continuous)(int handle);
|
||||
int (*timer_disable_continuous)(int handle);
|
||||
enum ast_timing_event (*timer_get_event)(int handle);
|
||||
unsigned int (*timer_get_max_rate)(int handle);
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -175,6 +176,15 @@ int ast_timer_disable_continuous(int handle);
|
||||
*/
|
||||
enum ast_timing_event ast_timer_get_event(int handle);
|
||||
|
||||
/*!
|
||||
* \brief Get maximum rate supported for a timing handle
|
||||
*
|
||||
* \arg handle timing fd returned by timer_open()
|
||||
*
|
||||
* \return maximum rate supported for timing handle
|
||||
*/
|
||||
unsigned int ast_timer_get_max_rate(int handle);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user