mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
sink,source: support for rate update
Avoid resampling or use integer resampling when supported by the sinks/sources Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
parent
5bcfd2b630
commit
f0ec495938
7 changed files with 219 additions and 0 deletions
|
|
@ -826,6 +826,11 @@ static inline int PA_SINK_IS_OPENED(pa_sink_state_t x) {
|
|||
return x == PA_SINK_RUNNING || x == PA_SINK_IDLE;
|
||||
}
|
||||
|
||||
/** Returns non-zero if sink is running. \since 1.0 */
|
||||
static inline int PA_SINK_IS_RUNNING(pa_sink_state_t x) {
|
||||
return x == PA_SINK_RUNNING;
|
||||
}
|
||||
|
||||
/** \cond fulldocs */
|
||||
#define PA_SINK_INVALID_STATE PA_SINK_INVALID_STATE
|
||||
#define PA_SINK_RUNNING PA_SINK_RUNNING
|
||||
|
|
@ -937,6 +942,11 @@ static inline int PA_SOURCE_IS_OPENED(pa_source_state_t x) {
|
|||
return x == PA_SOURCE_RUNNING || x == PA_SOURCE_IDLE;
|
||||
}
|
||||
|
||||
/** Returns non-zero if source is running \since 1.0 */
|
||||
static inline int PA_SOURCE_IS_RUNNING(pa_source_state_t x) {
|
||||
return x == PA_SOURCE_RUNNING;
|
||||
}
|
||||
|
||||
/** \cond fulldocs */
|
||||
#define PA_SOURCE_INVALID_STATE PA_SOURCE_INVALID_STATE
|
||||
#define PA_SOURCE_RUNNING PA_SOURCE_RUNNING
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue