12 int ds3d_update_listener(vector *pos, vector *vel, matrix *orient)
15 ALfloat posv[] = { pos->x, pos->y, pos->z };
16 ALfloat velv[] = { vel->x, vel->y, vel->z };
17 ALfloat oriv[] = { orient->a1d[0],
18 orient->a1d[1], orient->a1d[2],
19 orient->a1d[3], orient->a1d[4],
21 alListenerfv(AL_POSITION, posv);
22 alListenerfv(AL_VELOCITY, velv);
23 alListenerfv(AL_ORIENTATION, oriv);
28 int ds3d_init (int unused)
30 ALfloat pos[] = { 0.0, 0.0, 0.0 },
31 vel[] = { 0.0, 0.0, 0.0 },
32 ori[] = { 0.0, 0.0, 1.0, 0.0, -1.0, 0.0 };
34 alListenerfv (AL_POSITION, pos);
35 alListenerfv (AL_VELOCITY, vel);
36 alListenerfv (AL_ORIENTATION, ori);
38 if(alGetError() != AL_NO_ERROR)