#include "SampleFormat.hxx"
#include "PcmBuffer.hxx"
#include "PcmDither.hxx"
#include <assert.h>
Go to the source code of this file.
◆ pcm_float_to_volume()
static int pcm_float_to_volume |
( |
float |
volume | ) |
|
|
inlinestatic |
Converts a float value (0.0 = silence, 1.0 = 100% volume) to an integer volume value (1000 = 100%).
Definition at line 49 of file Volume.hxx.
◆ pcm_volume_to_float()
static float pcm_volume_to_float |
( |
int |
volume | ) |
|
|
inlinestatic |
◆ PCM_VOLUME_1
constexpr unsigned PCM_VOLUME_1 = 1024 |
|
static |
This value means "100% volume".
Definition at line 41 of file Volume.hxx.
◆ PCM_VOLUME_1S
◆ PCM_VOLUME_BITS
constexpr unsigned PCM_VOLUME_BITS = 10 |
|
static |
Number of fractional bits for a fixed-point volume value.
Definition at line 36 of file Volume.hxx.