forked from jfchapman/VUPlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HandlerPCM.cpp
69 lines (55 loc) · 1.18 KB
/
HandlerPCM.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "HandlerPCM.h"
#include "EncoderPCM.h"
HandlerPCM::HandlerPCM() :
Handler()
{
}
HandlerPCM::~HandlerPCM()
{
}
std::wstring HandlerPCM::GetDescription() const
{
std::wstring description = L"Waveform Audio File (PCM)";
return description;
}
std::set<std::wstring> HandlerPCM::GetSupportedFileExtensions() const
{
const std::set<std::wstring> fileTypes = { L"wav" };
return fileTypes;
}
bool HandlerPCM::GetTags( const std::wstring& /*filename*/, Tags& /*tags*/ ) const
{
return false;
}
bool HandlerPCM::SetTags( const std::wstring& /*filename*/, const Tags& /*tags*/ ) const
{
return false;
}
Decoder::Ptr HandlerPCM::OpenDecoder( const std::wstring& /*filename*/ ) const
{
return nullptr;
}
Encoder::Ptr HandlerPCM::OpenEncoder() const
{
Encoder::Ptr encoder( new EncoderPCM() );
return encoder;
}
bool HandlerPCM::IsDecoder() const
{
return false;
}
bool HandlerPCM::IsEncoder() const
{
return true;
}
bool HandlerPCM::CanConfigureEncoder() const
{
return false;
}
bool HandlerPCM::ConfigureEncoder( const HINSTANCE /*instance*/, const HWND /*parent*/, std::string& /*settings*/ ) const
{
return false;
}
void HandlerPCM::SettingsChanged( Settings& /*settings*/ )
{
}