mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-30 22:27:51 +00:00
Now OpenAL works, at least.
But Dolphin's sound stream system really needs a rethink. Because this is the root cause of constant blocking. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4711 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7b6a0f9b72
commit
51163196d3
4 changed files with 80 additions and 80 deletions
|
@ -34,8 +34,9 @@
|
|||
#include "AL/alc.h"
|
||||
#endif // WIN32
|
||||
// public use
|
||||
#define SFX_MAX_SOURCE 1
|
||||
#define OAL_BUFFER_SIZE 1024*1024
|
||||
#define SFX_MAX_SOURCE 1
|
||||
#define OAL_NUM_BUFFERS 2
|
||||
#define OAL_BUFFER_SIZE (1024 * 8)
|
||||
#endif
|
||||
|
||||
class OpenALStream: public SoundStream
|
||||
|
@ -60,9 +61,9 @@ private:
|
|||
Common::CriticalSection soundCriticalSection;
|
||||
Common::Event soundSyncEvent;
|
||||
|
||||
short realtimeBuffer[OAL_BUFFER_SIZE];
|
||||
ALuint g_uiSource;
|
||||
ALuint *g_uiBuffers;
|
||||
short realtimeBuffer[OAL_BUFFER_SIZE/sizeof(short)];
|
||||
ALuint uiBuffers[OAL_NUM_BUFFERS];
|
||||
ALuint uiSource;
|
||||
#else
|
||||
public:
|
||||
OpenALStream(CMixer *mixer, void *hWnd = NULL): SoundStream(mixer) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue