channelmap: make sure a mask is generated is 64 bit int

This commit is contained in:
Lennart Poettering 2009-06-17 03:06:54 +02:00
parent 26d5f28f8a
commit 4f36cc76f2

View file

@ -209,7 +209,7 @@ typedef enum pa_channel_position {
typedef uint64_t pa_channel_position_mask_t; typedef uint64_t pa_channel_position_mask_t;
/** Makes a bit mask from a channel position. \since 0.9.16 */ /** Makes a bit mask from a channel position. \since 0.9.16 */
#define PA_CHANNEL_POSITION_MASK(f) ((pa_channel_position_mask_t) (1 << (f))) #define PA_CHANNEL_POSITION_MASK(f) ((pa_channel_position_mask_t) (1ULL << (f)))
/** A list of channel mapping definitions for pa_channel_map_init_auto() */ /** A list of channel mapping definitions for pa_channel_map_init_auto() */
typedef enum pa_channel_map_def { typedef enum pa_channel_map_def {