Removed some dead files from the waveout plugin.

This commit is contained in:
casey langen 2016-11-18 21:48:20 -08:00
parent 99e7a48013
commit 60dd792760
2 changed files with 0 additions and 75 deletions

View File

@ -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)

View File

@ -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();
}
};