Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cSoundMixer Class Reference

#include <cSoundMixer.h>

Inheritance diagram for GrayLib::cSoundMixer:
GrayLib::cSoundBase

Public Member Functions

 cSoundMixer () noexcept
 
 ~cSoundMixer (void)
 
 operator HMIXER () const noexcept
 
HMIXER get_Handle () const noexcept
 
bool isOpen () const noexcept
 
HRESULT OpenMixer (UINT uMixerDeviceID=0, DWORD_PTR dwCallback=0, DWORD_PTR dwInstanceData=0, DWORD dwOpenFlags=MIXER_OBJECTF_MIXER)
 
void CloseMixer ()
 
 UNITTEST_FRIEND (cSoundMixer)
 

Additional Inherited Members

- Static Public Member Functions inherited from GrayLib::cSoundBase
static LONG GRAYCALL FToDecibelI (float v)
 
static float GRAYCALL DecibelItoF (LONG d)
 
static float GRAYCALL VolToF (SOUND_VOL_t v) noexcept
 
static SOUND_VOL_t GRAYCALL FToVol (float v) noexcept
 
static LONG GRAYCALL VolToDecibelI (SOUND_VOL_t v)
 
static SOUND_VOL_t GRAYCALL DecibelItoVol (LONG d)
 
- Static Public Attributes inherited from GrayLib::cSoundBase
static const SOUND_VOL_t k_VOL_MIN = 0
 silent More...
 
static const SOUND_VOL_t k_VOL_MAX = 0xFFFF
 mono linear max perceived volume from waveOutGetVolume() M$ docs. NOT decibels which is logarithmic with perception. More...
 

Detailed Description

Manage an open mixer device. HMIXER (same as HMIXEROBJ) This is App specific in >= Vista. Use mixerGetNumDevs() to count devices available.

Note
auxGetVolume() might do the same thing ? (NOT in Win7) or IMMDeviceEnumerator IAudioEndpointVolume (ONLY FOR >= M$ VISTA)

Constructor & Destructor Documentation

◆ cSoundMixer()

GrayLib::cSoundMixer::cSoundMixer ( )
noexcept

◆ ~cSoundMixer()

GrayLib::cSoundMixer::~cSoundMixer ( void  )

Member Function Documentation

◆ CloseMixer()

void GrayLib::cSoundMixer::CloseMixer ( )

◆ get_Handle()

HMIXER GrayLib::cSoundMixer::get_Handle ( ) const
inlinenoexcept

◆ isOpen()

bool GrayLib::cSoundMixer::isOpen ( ) const
inlinenoexcept

◆ OpenMixer()

HRESULT GrayLib::cSoundMixer::OpenMixer ( UINT  uMixerDeviceID = 0,
DWORD_PTR  dwCallback = 0,
DWORD_PTR  dwInstanceData = 0,
DWORD  dwOpenFlags = MIXER_OBJECTF_MIXER 
)

dwOpenFlags = MIXER_OBJECTF_MIXER, MIXER_OBJECTF_WAVEIN, MIXER_OBJECTF_WAVEOUT

◆ operator HMIXER()

GrayLib::cSoundMixer::operator HMIXER ( ) const
inlinenoexcept

◆ UNITTEST_FRIEND()

GrayLib::cSoundMixer::UNITTEST_FRIEND ( cSoundMixer  )

The documentation for this class was generated from the following files: