提交 d6b0a603 编写于 作者: P Palana

coreaudio-encoder: Move to C++

上级 02a09fde
project(coreaudio-encoder) project(coreaudio-encoder)
set(coreaudio-encoder_SOURCES set(coreaudio-encoder_SOURCES
encoder.c) encoder.cpp)
if (WIN32) if (WIN32)
set(coreaudio-encoder_HEADERS windows-imports.h) set(coreaudio-encoder_HEADERS windows-imports.h)
......
...@@ -387,7 +387,7 @@ static void release_lib(void) ...@@ -387,7 +387,7 @@ static void release_lib(void)
static bool load_lib(void) static bool load_lib(void)
{ {
PWSTR common_path; PWSTR common_path;
if (SHGetKnownFolderPath(&FOLDERID_ProgramFilesCommon, 0, NULL, if (SHGetKnownFolderPath(FOLDERID_ProgramFilesCommon, 0, NULL,
&common_path) != S_OK) { &common_path) != S_OK) {
CA_LOG(LOG_WARNING, "Could not retrieve common files path"); CA_LOG(LOG_WARNING, "Could not retrieve common files path");
return false; return false;
...@@ -433,6 +433,10 @@ static void unload_core_audio(void) ...@@ -433,6 +433,10 @@ static void unload_core_audio(void)
release_lib(); release_lib();
} }
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4706)
#endif
static bool load_core_audio(void) static bool load_core_audio(void)
{ {
if (!load_lib()) if (!load_lib())
...@@ -465,3 +469,6 @@ unload_everything: ...@@ -465,3 +469,6 @@ unload_everything:
return false; return false;
} }
#ifdef _MSC_VER
#pragma warning(pop)
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册