mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-30 06:32:36 +00:00
Removed some dead files from the waveout plugin.
This commit is contained in:
parent
99e7a48013
commit
60dd792760
@ -1,28 +0,0 @@
|
||||
set ( waveout_SOURCES
|
||||
WaveOut.cpp
|
||||
WaveOutBuffer.cpp
|
||||
pch.cpp
|
||||
waveout_plugin.cpp
|
||||
)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
add_definitions(-DWIN32)
|
||||
if(NOT DEFINED MINGW)
|
||||
|
||||
endif(NOT DEFINED MINGW)
|
||||
else(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fpermissive)
|
||||
endif(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
|
||||
add_definitions(
|
||||
-DXML_STATIC
|
||||
-D_CRT_SECURE_NO_DEPRECATE
|
||||
-D_DEBUG
|
||||
)
|
||||
|
||||
#include_directories( ../../core )
|
||||
|
||||
add_library( waveout SHARED ${waveout_SOURCES} )
|
||||
target_link_libraries( waveout ${musikCube_LINK_LIBS} winmm)
|
||||
|
||||
|
@ -1,47 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
class CriticalSectionX
|
||||
{
|
||||
protected:
|
||||
HANDLE mutex;
|
||||
|
||||
public:
|
||||
CriticalSection()
|
||||
{
|
||||
this->mutex = CreateMutex(NULL, false, NULL);
|
||||
}
|
||||
|
||||
~CriticalSection()
|
||||
{
|
||||
CloseHandle(this->mutex);
|
||||
}
|
||||
|
||||
void Lock()
|
||||
{
|
||||
WaitForSingleObject(this->mutex, INFINITE);
|
||||
}
|
||||
|
||||
void Unlock()
|
||||
{
|
||||
ReleaseMutex(this->mutex);
|
||||
}
|
||||
};
|
||||
|
||||
class AutoLockX
|
||||
{
|
||||
private:
|
||||
CriticalSection * CS;
|
||||
|
||||
public:
|
||||
|
||||
AutoLock(CriticalSection *aCS)
|
||||
{
|
||||
this->CS = aCS;
|
||||
this->CS->Lock();
|
||||
}
|
||||
|
||||
~AutoLock()
|
||||
{
|
||||
this->CS->Unlock();
|
||||
}
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user