Other arches. Untested.
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "ALSA9Dynamic.h"
|
#include "ALSA9Dynamic.h"
|
||||||
|
|
||||||
|
REGISTER_SOUND_DRIVER_CLASS( ALSA9 );
|
||||||
|
|
||||||
const int channels = 2;
|
const int channels = 2;
|
||||||
const int samplerate = 44100;
|
const int samplerate = 44100;
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ private:
|
|||||||
|
|
||||||
void GetData();
|
void GetData();
|
||||||
};
|
};
|
||||||
#define USE_RAGE_SOUND_ALSA9
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
||||||
|
REGISTER_SOUND_DRIVER_CLASS2( ALSA-sw, ALSA9_Software );
|
||||||
|
|
||||||
static const int channels = 2;
|
static const int channels = 2;
|
||||||
static const int samples_per_frame = channels;
|
static const int samples_per_frame = channels;
|
||||||
static const int bytes_per_frame = sizeof(int16_t) * samples_per_frame;
|
static const int bytes_per_frame = sizeof(int16_t) * samples_per_frame;
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ private:
|
|||||||
Alsa9Buf *m_pPCM;
|
Alsa9Buf *m_pPCM;
|
||||||
RageThread m_MixingThread;
|
RageThread m_MixingThread;
|
||||||
};
|
};
|
||||||
#define USE_RAGE_SOUND_ALSA9_SOFTWARE
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "archutils/Win32/ErrorStrings.h"
|
#include "archutils/Win32/ErrorStrings.h"
|
||||||
|
|
||||||
|
REGISTER_SOUND_DRIVER_CLASS2( DirectSound, DSound );
|
||||||
|
|
||||||
const int channels = 2;
|
const int channels = 2;
|
||||||
const int bytes_per_frame = 2 * channels; /* 16-bit */
|
const int bytes_per_frame = 2 * channels; /* 16-bit */
|
||||||
const int samplerate = 44100;
|
const int samplerate = 44100;
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ private:
|
|||||||
|
|
||||||
int GetSampleRate( int rate ) const { return rate; }
|
int GetSampleRate( int rate ) const { return rate; }
|
||||||
};
|
};
|
||||||
#define USE_RAGE_SOUND_DSOUND
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "archutils/Win32/ErrorStrings.h"
|
#include "archutils/Win32/ErrorStrings.h"
|
||||||
|
|
||||||
|
REGISTER_SOUND_DRIVER_CLASS2( DirectSound-sw, DSound_Software );
|
||||||
|
|
||||||
static const int channels = 2;
|
static const int channels = 2;
|
||||||
static const int bytes_per_frame = channels*2; /* 16-bit */
|
static const int bytes_per_frame = channels*2; /* 16-bit */
|
||||||
static const int safe_writeahead = 1024*4; /* in frames */
|
static const int safe_writeahead = 1024*4; /* in frames */
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ private:
|
|||||||
void MixerThread();
|
void MixerThread();
|
||||||
RageThread m_MixingThread;
|
RageThread m_MixingThread;
|
||||||
};
|
};
|
||||||
#define USE_RAGE_SOUND_DSOUND_SOFTWARE
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
#include <sys/soundcard.h>
|
#include <sys/soundcard.h>
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
|
||||||
|
REGISTER_SOUND_DRIVER_CLASS( OSS );
|
||||||
|
|
||||||
/* samples */
|
/* samples */
|
||||||
const int channels = 2;
|
const int channels = 2;
|
||||||
const int bytes_per_frame = channels*2; /* 16-bit */
|
const int bytes_per_frame = channels*2; /* 16-bit */
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ public:
|
|||||||
RString Init();
|
RString Init();
|
||||||
~RageSound_OSS();
|
~RageSound_OSS();
|
||||||
};
|
};
|
||||||
#define USE_RAGE_SOUND_OSS
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
#include "PrefsManager.h"
|
#include "PrefsManager.h"
|
||||||
#include "archutils/Win32/ErrorStrings.h"
|
#include "archutils/Win32/ErrorStrings.h"
|
||||||
|
|
||||||
|
REGISTER_SOUND_DRIVER_CLASS( WaveOut );
|
||||||
|
|
||||||
const int channels = 2;
|
const int channels = 2;
|
||||||
const int bytes_per_frame = channels*2; /* 16-bit */
|
const int bytes_per_frame = channels*2; /* 16-bit */
|
||||||
const int buffersize_frames = 1024*8; /* in frames */
|
const int buffersize_frames = 1024*8; /* in frames */
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ private:
|
|||||||
bool m_bShutdown;
|
bool m_bShutdown;
|
||||||
int m_iLastCursorPos;
|
int m_iLastCursorPos;
|
||||||
};
|
};
|
||||||
#define USE_RAGE_SOUND_WAVE_OUT
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user