summaryrefslogtreecommitdiffstats
path: root/libao2/ao_openal.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-08-22 04:31:30 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-08-22 04:31:30 +0300
commit7431eabaabb7d5d72f26b6d46a3333aa9cf0cd96 (patch)
tree4990bd44fde568a7cd7440eb895008e0bc760c00 /libao2/ao_openal.c
parent95da34aa071d64b21ef3e952b987ba3dcee84ca0 (diff)
parent2b8b5b7053030fd77ee53cc2069a8f44838564d4 (diff)
downloadmpv-7431eabaabb7d5d72f26b6d46a3333aa9cf0cd96.tar.bz2
mpv-7431eabaabb7d5d72f26b6d46a3333aa9cf0cd96.tar.xz
Merge svn changes up to r29544
Diffstat (limited to 'libao2/ao_openal.c')
-rw-r--r--libao2/ao_openal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libao2/ao_openal.c b/libao2/ao_openal.c
index b00a77364a..3cf7d43a9d 100644
--- a/libao2/ao_openal.c
+++ b/libao2/ao_openal.c
@@ -52,7 +52,7 @@ static const ao_info_t info =
LIBAO_EXTERN(openal)
-#define MAX_CHANS 6
+#define MAX_CHANS 8
#define NUM_BUF 128
#define CHUNK_SIZE 512
static ALuint buffers[MAX_CHANS][NUM_BUF];
@@ -95,10 +95,11 @@ static void print_help(void) {
static int init(int rate, int channels, int format, int flags) {
float position[3] = {0, 0, 0};
float direction[6] = {0, 0, 1, 0, -1, 0};
- float sppos[6][3] = {
+ float sppos[MAX_CHANS][3] = {
{-1, 0, 0.5}, {1, 0, 0.5},
{-1, 0, -1}, {1, 0, -1},
{0, 0, 1}, {0, 0, 0.1},
+ {-1, 0, 0}, {1, 0, 0},
};
ALCdevice *dev = NULL;
ALCcontext *ctx = NULL;