pcm/Volume: calculate PCM_VOLUME_1

This commit is contained in:
Max Kellermann 2019-07-05 18:26:26 +02:00
parent 21d91cb1d1
commit 06fbbe2d7b

View File

@ -38,7 +38,7 @@ static constexpr unsigned PCM_VOLUME_BITS = 10;
/**
* This value means "100% volume".
*/
static constexpr unsigned PCM_VOLUME_1 = 1024;
static constexpr unsigned PCM_VOLUME_1 = 1u << PCM_VOLUME_BITS;
static constexpr int PCM_VOLUME_1S = PCM_VOLUME_1;
/**