mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
alsa: also define area_addr when version check missing
This commit is contained in:
parent
aa971187d7
commit
bd42e54c21
1 changed files with 1 additions and 3 deletions
|
|
@ -354,8 +354,7 @@ static inline int ratelimit_test(struct ratelimit *r, uint64_t now)
|
||||||
return missed;
|
return missed;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(SND_LIB_VER)
|
#if defined(SND_LIB_VER) && SND_LIB_VERSION >= SND_LIB_VER(1, 2, 6)
|
||||||
#if SND_LIB_VERSION >= SND_LIB_VER(1, 2, 6)
|
|
||||||
#define channel_area_addr snd_pcm_channel_area_addr
|
#define channel_area_addr snd_pcm_channel_area_addr
|
||||||
#else
|
#else
|
||||||
static inline void *channel_area_addr(const snd_pcm_channel_area_t *area, snd_pcm_uframes_t offset)
|
static inline void *channel_area_addr(const snd_pcm_channel_area_t *area, snd_pcm_uframes_t offset)
|
||||||
|
|
@ -363,7 +362,6 @@ static inline void *channel_area_addr(const snd_pcm_channel_area_t *area, snd_pc
|
||||||
return (char *)area->addr + (area->first + area->step * offset) / 8;
|
return (char *)area->addr + (area->first + area->step * offset) / 8;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} /* extern "C" */
|
} /* extern "C" */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue