coastline 0.0.4
Loading...
Searching...
No Matches
volume.h
Go to the documentation of this file.
1#ifndef COASTLINE_EAR_VOLUME_H
2#define COASTLINE_EAR_VOLUME_H
3
4#include <stdint.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
17int32_t __stdcall ConvertPercentGainToDirectSoundVolume(double gain);
18
26int32_t __stdcall ConvertPercentGainToLeftPan(double gain);
27
35int32_t __stdcall ConvertPercentGainToRightPan(double gain);
36
42extern double g_dMasterAttenuationLevel;
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* COASTLINE_EAR_VOLUME_H */
int32_t __stdcall ConvertPercentGainToLeftPan(double gain)
Convert a percentage gain to the DirectSound pan of the left side.
int32_t __stdcall ConvertPercentGainToRightPan(double gain)
Convert a percentage gain to the DirectSound pan of the right side.
int32_t __stdcall ConvertPercentGainToDirectSoundVolume(double gain)
Approximate percentage gain as DirectSound attenuation using the native quartic polynomial.