提交 d6b0a603 编写于 作者: P Palana

coreaudio-encoder: Move to C++

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