summaryrefslogtreecommitdiff
path: root/shared-bindings/audiomp3/MP3Decoder.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-07-28 14:15:02 -0400
committerDan Halbert <halbert@halwitz.org>2020-07-28 14:15:02 -0400
commitaa97ea25016c60edf688b51f6495f8fbd740cc8e (patch)
treef5b24b64a8f55f0e940e2aabb947e2825729c6e9 /shared-bindings/audiomp3/MP3Decoder.c
parente5e132a36436aa5aa0a6124b28edd44536fc38c7 (diff)
parent9fc7118861a118b9e0a7e37b6bc902654ee11401 (diff)
Merge remote-tracking branch 'adafruit/main' into blm_badge
Diffstat (limited to 'shared-bindings/audiomp3/MP3Decoder.c')
-rw-r--r--shared-bindings/audiomp3/MP3Decoder.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/shared-bindings/audiomp3/MP3Decoder.c b/shared-bindings/audiomp3/MP3Decoder.c
index b7bb44957..0e427951c 100644
--- a/shared-bindings/audiomp3/MP3Decoder.c
+++ b/shared-bindings/audiomp3/MP3Decoder.c
@@ -34,7 +34,7 @@
#include "shared-bindings/util.h"
#include "supervisor/shared/translate.h"
-//| class MP3:
+//| class MP3Decoder:
//| """Load a mp3 file for audio playback"""
//|
//| def __init__(self, file: typing.BinaryIO, buffer: WriteableBuffer) -> None:
@@ -124,7 +124,7 @@ STATIC mp_obj_t audiomp3_mp3file_obj___exit__(size_t n_args, const mp_obj_t *arg
}
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(audiomp3_mp3file___exit___obj, 4, 4, audiomp3_mp3file_obj___exit__);
-//| file: file = ...
+//| file: file
//| """File to play back."""
//|
STATIC mp_obj_t audiomp3_mp3file_obj_get_file(mp_obj_t self_in) {
@@ -154,7 +154,7 @@ const mp_obj_property_t audiomp3_mp3file_file_obj = {
-//| sample_rate: int = ...
+//| sample_rate: int
//| """32 bit value that dictates how quickly samples are loaded into the DAC
//| in Hertz (cycles per second). When the sample is looped, this can change
//| the pitch output without changing the underlying sample."""
@@ -181,7 +181,7 @@ const mp_obj_property_t audiomp3_mp3file_sample_rate_obj = {
(mp_obj_t)&mp_const_none_obj},
};
-//| bits_per_sample: int = ...
+//| bits_per_sample: int
//| """Bits per sample. (read only)"""
//|
STATIC mp_obj_t audiomp3_mp3file_obj_get_bits_per_sample(mp_obj_t self_in) {
@@ -198,7 +198,7 @@ const mp_obj_property_t audiomp3_mp3file_bits_per_sample_obj = {
(mp_obj_t)&mp_const_none_obj},
};
-//| channel_count: int = ...
+//| channel_count: int
//| """Number of audio channels. (read only)"""
//|
STATIC mp_obj_t audiomp3_mp3file_obj_get_channel_count(mp_obj_t self_in) {
@@ -215,7 +215,7 @@ const mp_obj_property_t audiomp3_mp3file_channel_count_obj = {
(mp_obj_t)&mp_const_none_obj},
};
-//| rms_level: float = ...
+//| rms_level: float
//| """The RMS audio level of a recently played moment of audio. (read only)"""
//|
STATIC mp_obj_t audiomp3_mp3file_obj_get_rms_level(mp_obj_t self_in) {