summaryrefslogtreecommitdiff
path: root/shared-bindings/audiomixer/Mixer.c
diff options
context:
space:
mode:
authorsommersoft <sommersoft@gmail.com>2019-09-03 22:44:43 -0500
committersommersoft <sommersoft@gmail.com>2019-09-03 22:44:43 -0500
commitda912e8c747e45baf6d11e28dba4f852ed10db04 (patch)
treea116be60adcf79d3086474ed497c20b1f4623b76 /shared-bindings/audiomixer/Mixer.c
parentedfcee29ff88faa35a75a979cb74ad64553289a6 (diff)
doc cleanup
Diffstat (limited to 'shared-bindings/audiomixer/Mixer.c')
-rw-r--r--shared-bindings/audiomixer/Mixer.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/shared-bindings/audiomixer/Mixer.c b/shared-bindings/audiomixer/Mixer.c
index 37ea958ea..ed7b95d9e 100644
--- a/shared-bindings/audiomixer/Mixer.c
+++ b/shared-bindings/audiomixer/Mixer.c
@@ -52,7 +52,7 @@
//|
//| :param int voice_count: The maximum number of voices to mix
//| :param int buffer_size: The total size in bytes of the buffers to mix into
-//| :param int channel_count: The maximum number of samples to mix at once
+//| :param int channel_count: The number of channels the source samples contain. 1 = mono; 2 = stereo.
//| :param int bits_per_sample: The bits per sample of the samples being played
//| :param bool samples_signed: Samples are signed (True) or unsigned (False)
//| :param int sample_rate: The sample rate to be used for all samples
@@ -65,15 +65,11 @@
//| import audiomixer
//| import digitalio
//|
-//| # Required for CircuitPlayground Express
-//| speaker_enable = digitalio.DigitalInOut(board.SPEAKER_ENABLE)
-//| speaker_enable.switch_to_output(value=True)
-//|
+//| a = audioio.AudioOut(board.A0)
//| music = audiocore.WaveFile(open("cplay-5.1-16bit-16khz.wav", "rb"))
//| drum = audiocore.WaveFile(open("drum.wav", "rb"))
//| mixer = audiomixer.Mixer(voice_count=2, sample_rate=16000, channel_count=1,
//| bits_per_sample=16, samples_signed=True)
-//| a = audioio.AudioOut(board.A0)
//|
//| print("playing")
//| # Have AudioOut play our Mixer source