cleanup
This commit is contained in:
@@ -7,6 +7,9 @@
|
|||||||
#include <mmsystem.h>
|
#include <mmsystem.h>
|
||||||
#include <dsound.h>
|
#include <dsound.h>
|
||||||
|
|
||||||
|
#pragma comment(lib, "dsound.lib")
|
||||||
|
#pragma comment(lib, "dxguid.lib")
|
||||||
|
|
||||||
DSound::DSound()
|
DSound::DSound()
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|||||||
@@ -19,9 +19,6 @@
|
|||||||
|
|
||||||
RageSoundManager *SOUNDMAN = NULL;
|
RageSoundManager *SOUNDMAN = NULL;
|
||||||
|
|
||||||
#pragma comment(lib, "dsound.lib")
|
|
||||||
#pragma comment(lib, "dxguid.lib")
|
|
||||||
|
|
||||||
const int channels = 2;
|
const int channels = 2;
|
||||||
const int samplesize = 2 * channels; /* 16-bit */
|
const int samplesize = 2 * channels; /* 16-bit */
|
||||||
const int samplerate = 44100;
|
const int samplerate = 44100;
|
||||||
|
|||||||
@@ -2,15 +2,6 @@
|
|||||||
#include "RageSoundDriver_DSound_Software.h"
|
#include "RageSoundDriver_DSound_Software.h"
|
||||||
#include "DSoundHelpers.h"
|
#include "DSoundHelpers.h"
|
||||||
|
|
||||||
/* Known problems:
|
|
||||||
*
|
|
||||||
* Skips between screen changes in the software mixer. This is because we use
|
|
||||||
* a smaller buffer. The hardware mixer uses a larger buffer, so the CPU used
|
|
||||||
* loading the new screen isn't a problem. We can't just stop sounds; we want
|
|
||||||
* music to keep playing while we're between screens. Throw a few SDL_Sleep(0)s
|
|
||||||
* in strategic places?
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "../../RageTimer.h"
|
#include "../../RageTimer.h"
|
||||||
#include "../../RageLog.h"
|
#include "../../RageLog.h"
|
||||||
#include "../../RageSound.h"
|
#include "../../RageSound.h"
|
||||||
|
|||||||
@@ -1,15 +1,7 @@
|
|||||||
#include "../../stdafx.h"
|
#include "../../stdafx.h"
|
||||||
#include "RageSoundDriver_WaveOut.h"
|
#include "RageSoundDriver_WaveOut.h"
|
||||||
// #include "DSoundHelpers.h"
|
|
||||||
|
|
||||||
/* Known problems:
|
#pragma comment(lib, "winmm.lib")
|
||||||
*
|
|
||||||
* Skips between screen changes in the software mixer. This is because we use
|
|
||||||
* a smaller buffer. The hardware mixer uses a larger buffer, so the CPU used
|
|
||||||
* loading the new screen isn't a problem. We can't just stop sounds; we want
|
|
||||||
* music to keep playing while we're between screens. Throw a few SDL_Sleep(0)s
|
|
||||||
* in strategic places?
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "../../RageTimer.h"
|
#include "../../RageTimer.h"
|
||||||
#include "../../RageLog.h"
|
#include "../../RageLog.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user