From 56a33ef955e33609236527300188115a74ddf41c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 5 Jul 2017 12:32:19 -0700 Subject: Print the opened device in alffplay --- examples/alffplay.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp index f335760f..cd4507b2 100644 --- a/examples/alffplay.cpp +++ b/examples/alffplay.cpp @@ -1446,6 +1446,13 @@ int main(int argc, char *argv[]) return 1; } + const ALCchar *name = nullptr; + if(alcIsExtensionPresent(device, "ALC_ENUMERATE_ALL_EXT")) + name = alcGetString(device, ALC_ALL_DEVICES_SPECIFIER); + if(!name || alcGetError(device) != AL_NO_ERROR) + name = alcGetString(device, ALC_DEVICE_SPECIFIER); + std::cout<< "Opened \""<