probonopd 3 weeks ago committed by GitHub
commit fe3ac5d5cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      src/minidexed.cpp
  2. 2
      src/minidexed.ini

@ -23,6 +23,7 @@
#include <circle/sound/pwmsoundbasedevice.h> #include <circle/sound/pwmsoundbasedevice.h>
#include <circle/sound/i2ssoundbasedevice.h> #include <circle/sound/i2ssoundbasedevice.h>
#include <circle/sound/hdmisoundbasedevice.h> #include <circle/sound/hdmisoundbasedevice.h>
#include <circle/sound/usbsoundbasedevice.h>
#include <circle/gpiopin.h> #include <circle/gpiopin.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
@ -200,6 +201,16 @@ CMiniDexed::CMiniDexed (CConfig *pConfig, CInterruptSystem *pInterrupt,
// The channels are swapped by default in the HDMI sound driver. // The channels are swapped by default in the HDMI sound driver.
// TODO: Remove this line, when this has been fixed in the driver. // TODO: Remove this line, when this has been fixed in the driver.
m_bChannelsSwapped = !m_bChannelsSwapped; 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 #endif
} }
else else

@ -7,7 +7,7 @@
SoundDevice=pwm SoundDevice=pwm
#SoundDevice=hdmi #SoundDevice=hdmi
SampleRate=48000 SampleRate=48000
#ChunkSize=256 #ChunkSize=384
DACI2CAddress=0 DACI2CAddress=0
ChannelsSwapped=0 ChannelsSwapped=0
# Engine Type ( 1=Modern ; 2=Mark I ; 3=OPL ) # Engine Type ( 1=Modern ; 2=Mark I ; 3=OPL )

Loading…
Cancel
Save