Commit 06fbbe2d authored by Max Kellermann's avatar Max Kellermann

pcm/Volume: calculate PCM_VOLUME_1

parent 21d91cb1
......@@ -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;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment