Skip to content

Commit

Permalink
flag for asynchronous file reading
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni Barth committed Jun 6, 2018
1 parent 7aedd5f commit c6b2d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcview/tcview/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Sound::Sound(std::wstring filename)

void Sound::load(std::wstring filename)
{
this->sound = BASS_StreamCreateFile(false, filename.c_str(), 0, 0, BASS_STREAM_AUTOFREE | BASS_UNICODE);
this->sound = BASS_StreamCreateFile(false, filename.c_str(), 0, 0, BASS_STREAM_AUTOFREE | BASS_ASYNCFILE | BASS_UNICODE);
if(this->sound == 0)
throw std::invalid_argument("invalid filename");
}
Expand Down

0 comments on commit c6b2d26

Please sign in to comment.