summaryrefslogtreecommitdiffstats
path: root/libao2
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-19 16:03:05 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-19 16:03:05 +0000
commit54af60865f145e9c5a1310810a0657216ae24dc1 (patch)
treecba62dbdfbbcab32ded98dfcb3f1e472d57f85b7 /libao2
parent0d0c303ebee39413eb2d2c2843bd52c23080b132 (diff)
downloadmpv-54af60865f145e9c5a1310810a0657216ae24dc1.tar.bz2
mpv-54af60865f145e9c5a1310810a0657216ae24dc1.tar.xz
OpenAL: untested support for 8-channel audio.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29542 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2')
-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 829eb7ae58..a5d007f93b 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;