Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correctly initialize default listener orientation.
  • Loading branch information
icculus committed Apr 13, 2018
1 parent 38c5d48 commit 40cf061
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mojoal.c
Expand Up @@ -831,6 +831,8 @@ ALCcontext* alcCreateContext(ALCdevice *device, const ALCint* attrlist)
retval->doppler_velocity = 1.0f;
retval->speed_of_sound = 343.3f;
retval->listener.gain = 1.0f;
retval->listener.orientation[2] = -1.0f;
retval->listener.orientation[4] = 1.0f;
retval->device = device;
SDL_AtomicSet(&retval->processing, 1); /* contexts default to processing */

Expand Down

0 comments on commit 40cf061

Please sign in to comment.