mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
OpenALStream: Remove audio stretching
This commit is contained in:
parent
29344cb5ff
commit
6a4945090c
2 changed files with 19 additions and 79 deletions
|
@ -26,18 +26,6 @@
|
|||
#include <AL/alext.h>
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
// Avoid conflict with objc.h (on Windows, ST uses the system BOOL type, so this doesn't work)
|
||||
#define BOOL SoundTouch_BOOL
|
||||
#endif
|
||||
|
||||
#include <soundtouch/STTypes.h>
|
||||
#include <soundtouch/SoundTouch.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
#undef BOOL
|
||||
#endif
|
||||
|
||||
#define SFX_MAX_SOURCE 1
|
||||
#define OAL_MAX_BUFFERS 32
|
||||
#define OAL_MAX_SAMPLES 256
|
||||
|
@ -89,7 +77,7 @@ private:
|
|||
Common::Event soundSyncEvent;
|
||||
|
||||
short realtimeBuffer[OAL_MAX_SAMPLES * STEREO_CHANNELS];
|
||||
soundtouch::SAMPLETYPE sampleBuffer[OAL_MAX_SAMPLES * SURROUND_CHANNELS * OAL_MAX_BUFFERS];
|
||||
float sampleBuffer[OAL_MAX_SAMPLES * SURROUND_CHANNELS * OAL_MAX_BUFFERS];
|
||||
ALuint uiBuffers[OAL_MAX_BUFFERS];
|
||||
ALuint uiSource;
|
||||
ALfloat fVolume;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue