*/
#include "CoreAudioStream.h"
+#include "CoreAudioDevice.h"
#include "CoreAudioHelpers.h"
#include "utils/log.h"
std::string formatString;
+ // suppress callbacks for the default output device change
+ // for the next 2 seconds because setting format
+ // might trigger a change (when setting/unsetting an encoded
+ // passthrough format)
+ CCoreAudioDevice::SuppressDefaultOutputDeviceCB(2000);
+
+
if (!m_OriginalVirtualFormat.mFormatID)
{
// Store the original format (as we found it) so that it can be restored later
std::string formatString;
+ // suppress callbacks for the default output device change
+ // for the next 2 seconds because setting format
+ // might trigger a change (when setting/unsetting an encoded
+ // passthrough format)
+ CCoreAudioDevice::SuppressDefaultOutputDeviceCB(2000);
+
if (!m_OriginalPhysicalFormat.mFormatID)
{
// Store the original format (as we found it) so that it can be restored later