using namespace Platform;
#pragma comment(lib, "mmdevapi.lib")
-using namespace std::placeholders;
+namespace stps = std::placeholders;
using namespace Microsoft::WRL;
namespace {
// : public RuntimeClass< RuntimeClassFlags< ClassicCom >, FtmBase, IActivateAudioInterfaceCompletionHandler >
{
- impl() : bufferIndex_(0),eventHolder_(nullptr),processBuffer_(std::bind(&SoundDriver::impl::DefaultProcessBuffer,this,_1,_2)),isStart_(false)
+ impl() : bufferIndex_(0),eventHolder_(nullptr),processBuffer_(std::bind(&SoundDriver::impl::DefaultProcessBuffer,this,stps::_1,stps::_2)),isStart_(false)
{
//::AvMMAvSetMmThreadCharacteristics
String^ deviceID = MediaDevice::GetDefaultAudioRenderId(AudioDeviceRole::Default);
void ResetProcessBufferFunc()
{
Stop();
- processBuffer_ = std::move(std::bind(&SoundDriver::impl::DefaultProcessBuffer,this,_1,_2));
+ processBuffer_ = std::move(std::bind(&SoundDriver::impl::DefaultProcessBuffer,this,stps::_1,stps::_2));
Start();
}