aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alffplay.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-01 01:14:53 -0800
committerChris Robinson <[email protected]>2018-01-01 01:14:53 -0800
commite277f5e268ee9179bddb5bb02f545126a0bcde83 (patch)
tree073445f2e3b4397ecdeb18ed182b9ef44a46a344 /examples/alffplay.cpp
parent145bf52b7a6b4c1bc4738deb3d04d8cf8ee6743c (diff)
Rename the do_direct_out variable
Diffstat (limited to 'examples/alffplay.cpp')
-rw-r--r--examples/alffplay.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp
index 68e101a0..3a930f56 100644
--- a/examples/alffplay.cpp
+++ b/examples/alffplay.cpp
@@ -41,7 +41,7 @@ namespace {
const std::string AppName("alffplay");
-bool do_direct_out = false;
+bool EnableDirectOut = false;
LPALGETSOURCEI64VSOFT alGetSourcei64vSOFT;
const std::chrono::seconds AVNoSyncThreshold(10);
@@ -682,7 +682,7 @@ int AudioState::handler()
alGenBuffers(mBuffers.size(), mBuffers.data());
alGenSources(1, &mSource);
- if(do_direct_out)
+ if(EnableDirectOut)
alSourcei(mSource, AL_DIRECT_CHANNELS_SOFT, AL_TRUE);
while(alGetError() == AL_NO_ERROR && !mMovie.mQuit.load(std::memory_order_relaxed))
@@ -1459,7 +1459,7 @@ int main(int argc, char *argv[])
else
{
std::cout<< "Found AL_SOFT_direct_channels" <<std::endl;
- do_direct_out = true;
+ EnableDirectOut = true;
}
}