From 591ea9e9cabce1f019932d3314adb8b69156e773 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 30 Jun 2014 04:39:46 +0500 Subject: [PATCH] tweaks --- .../applications/mod_conference/mod_conference.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index 1e924917f5..07d23f649d 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -743,17 +743,15 @@ static void process_al(al_handle_t *al, void *data, switch_size_t datalen, int r if ((al->device = alcLoopbackOpenDeviceSOFT(NULL))) { static const ALshort silence[16] = { 0 }; - - //if ((al->device = alcOpenDevice( NULL ))) { - //float orient[6] = { /*fwd:*/ 0., 0., -1., /*up:*/ 0., 1., 0. }; + float orient[6] = { /*fwd:*/ 0., 0., -1., /*up:*/ 0., 1., 0. }; al->context = alcCreateContext(al->device, contextAttr); alcSetThreadContext(al->context); - /* listener at origin, facing down -z (ears at 1.5m height) */ - //alListener3f( AL_POSITION, 0. ,0, 0. ); - //alListener3f( AL_VELOCITY, 0., 0., 0. ); - //alListenerfv( AL_ORIENTATION, orient ); + /* listener at origin, facing down -z (ears at 0.0m height) */ + alListener3f( AL_POSITION, 0. ,0, 0. ); + alListener3f( AL_VELOCITY, 0., 0., 0. ); + alListenerfv( AL_ORIENTATION, orient ); alGenSources(1, &al->source); @@ -779,6 +777,7 @@ static void process_al(al_handle_t *al, void *data, switch_size_t datalen, int r if (al->setpos) { al->setpos = 0; alSource3f(al->source, AL_POSITION, al->pos_x, al->pos_y, al->pos_z); + //alSource3f(al->source, AL_VELOCITY, .01, 0., 0.); } if (processed > 0) {