HephAudio
v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
Loading...
Searching...
No Matches
HephAudio
HeaderFiles
NativeAudio
WinAudioBase.h
Go to the documentation of this file.
1
#pragma once
2
#if defined(_WIN32)
3
#include "
HephAudioShared.h
"
4
#include "
NativeAudio.h
"
5
#include "
AudioEvents/AudioDeviceEventArgs.h
"
6
#include "
AudioEvents/AudioCaptureEventArgs.h
"
7
#include "
StringHelpers.h
"
8
#include <wrl.h>
9
#include <mmeapi.h>
10
#include <mmreg.h>
11
#include <comdef.h>
12
15
namespace
HephAudio
16
{
17
namespace
Native
18
{
23
class
HEPH_API
WinAudioBase
:
public
NativeAudio
24
{
25
public
:
27
WinAudioBase
();
28
29
WinAudioBase
(
const
WinAudioBase
&) =
delete
;
30
WinAudioBase
& operator=(
const
WinAudioBase
&) =
delete
;
31
33
virtual
~WinAudioBase
() =
default
;
34
35
protected
:
40
void
InitializeCOM
()
const
;
41
46
static
AudioFormatInfo
WFX2AFI
(
const
WAVEFORMATEXTENSIBLE& wfx);
47
52
static
WAVEFORMATEXTENSIBLE
AFI2WFX
(
const
AudioFormatInfo
& afi);
53
58
static
std::string
GetComErrorMessage
(HRESULT hr);
59
};
60
}
61
}
62
#endif
AudioCaptureEventArgs.h
AudioDeviceEventArgs.h
HephAudioShared.h
HEPH_API
#define HEPH_API
Definition
HephShared.h:132
NativeAudio.h
StringHelpers.h
HephAudio::Native::NativeAudio
base class for the classes that interact with the native audio APIs.
Definition
NativeAudio.h:28
HephAudio::Native::WinAudioBase
base class for classes that interact with the Windows audio APIs.
Definition
WinAudioBase.h:24
HephAudio::Native::WinAudioBase::GetComErrorMessage
static std::string GetComErrorMessage(HRESULT hr)
HephAudio::Native::WinAudioBase::WFX2AFI
static AudioFormatInfo WFX2AFI(const WAVEFORMATEXTENSIBLE &wfx)
HephAudio::Native::WinAudioBase::AFI2WFX
static WAVEFORMATEXTENSIBLE AFI2WFX(const AudioFormatInfo &afi)
HephAudio::Native::WinAudioBase::~WinAudioBase
virtual ~WinAudioBase()=default
HephAudio::Native::WinAudioBase::InitializeCOM
void InitializeCOM() const
HephAudio::Native::WinAudioBase::WinAudioBase
WinAudioBase()
HephAudio::AudioFormatInfo
stores the properties of the audio signals
Definition
AudioFormatInfo.h:20
Generated by
1.11.0