mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-12 13:30:15 -05:00
implement more API
Implement the sink/source volume/mute api
This commit is contained in:
parent
3d95ea4d13
commit
9062145e13
4 changed files with 295 additions and 74 deletions
|
|
@ -81,6 +81,17 @@ extern "C" {
|
|||
#define PA_CLAMP_UNLIKELY(x, low, high) (PA_UNLIKELY((x) > (high)) ? (high) : (PA_UNLIKELY((x) < (low)) ? (low) : (x)))
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define PA_ROUND_DOWN(a, b) \
|
||||
__extension__ ({ \
|
||||
typeof(a) _a = (a); \
|
||||
typeof(b) _b = (b); \
|
||||
(_a / _b) * _b; \
|
||||
})
|
||||
#else
|
||||
#define PA_ROUND_DOWN(a, b) (((a) / (b)) * (b))
|
||||
#endif
|
||||
|
||||
|
||||
#define pa_init_i18n()
|
||||
#define _(String) (String)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue