Skip to content

Commit

Permalink
Music should loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-n committed Oct 10, 2015
1 parent 8a89bbd commit 231cad6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ void AudioManager::playMusic(std::string filename)

alSourcei(_musicSource, AL_BUFFER, _musicBuffer);
alSource3f(_musicSource, AL_POSITION, 0, 0, 0);
alSourcei(_musicSource, AL_LOOPING, 1);
alSourcePlay(_musicSource);
}

Expand Down

0 comments on commit 231cad6

Please sign in to comment.