Skip to content

Instantly share code, notes, and snippets.

@2bits
Created October 20, 2011 10:11
Show Gist options
  • Select an option

  • Save 2bits/1300815 to your computer and use it in GitHub Desktop.

Select an option

Save 2bits/1300815 to your computer and use it in GitHub Desktop.
Patch for AudioCore/ADM_deviceAudioCore.h to fix the channels to be uint32_t not uint8_t
--- a/plugins/ADM_audioDevices/AudioCore/ADM_deviceAudioCore.h 2008-07-03 12:29:25.000000000 -0700
+++ b/plugins/ADM_audioDevices/AudioCore/ADM_deviceAudioCore.h 2011-10-20 03:06:58.000000000 -0700
@@ -17,7 +17,7 @@
uint8_t _inUse;
public:
coreAudioDevice(void);
- virtual uint8_t init(uint8_t channels, uint32_t fq);
+ virtual uint8_t init(uint32_t channels, uint32_t fq);
virtual uint8_t play(uint32_t len, float *data);
virtual uint8_t stop(void);
virtual uint8_t setVolume(int volume);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment