implement more API

Implement the sink/source volume/mute api
This commit is contained in:
Wim Taymans 2019-01-04 10:00:57 +01:00
parent 3d95ea4d13
commit 9062145e13
4 changed files with 295 additions and 74 deletions

View file

@ -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)