diff --git a/src/minidexed.cpp b/src/minidexed.cpp index 2e45f46..7748156 100644 --- a/src/minidexed.cpp +++ b/src/minidexed.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -200,6 +201,16 @@ CMiniDexed::CMiniDexed (CConfig *pConfig, CInterruptSystem *pInterrupt, // The channels are swapped by default in the HDMI sound driver. // TODO: Remove this line, when this has been fixed in the driver. m_bChannelsSwapped = !m_bChannelsSwapped; +#endif + } + else if (strcmp (pDeviceName, "usb") == 0) + { +#if RASPPI<=3 + LOGNOTE ("USB mode NOT supported on RPI 1-3."); +#else + LOGNOTE ("USB mode"); + + m_pSoundDevice = new CUSBSoundBaseDevice (pConfig->GetSampleRate ()); #endif } else