@@ -280,14 +280,13 @@ this generator as a stream source. The data can be provided in ``array`` type o
280280the audio data has, and the sample with in bytes.
281281
282282
283- * function* `` stream_with_callbacks (sample_stream: Generator[Union[bytes, array.array], int, NoneType], progress_callback: Optional[Callable[[int], NoneType]] = None, frame_process_method: Union[Callable[[array.array], array.array], None] = None, end_callback: Optional[Callable] = None) -> Generator[Union[bytes, array.array], int, NoneType] ``
284- > Convenience generator function to add callback and processing functionality to another stream. You can specify:
285- A callback function that gets called during play and takes an `` int ``
286- for the number of frames played.
287- A function that can be used to process raw data frames before they are yielded back
288- (takes an `` array.array `` and returns an `` array.array `` )
289- * Note: if the processing method is slow it will result in audio glitchiness*
290- A callback function that gets called when the stream ends playing.
283+ * function* `` stream_with_callbacks (sample_stream: Generator[Union[bytes, array.array], int, NoneType], progress_callback: Optional[Callable[[int], NoneType]] = None, frame_process_method: Optional[Callable[[Union[bytes, array.array]], Union[bytes, array.array]]] = None, end_callback: Optional[Callable] = None) -> Generator[Union[bytes, array.array], int, NoneType] ``
284+ > Convenience generator function to add callback and processing functionality to another stream. You
285+ can specify : > A callback function that gets called during play and takes an int for the number of
286+ frames played. > A function that can be used to process raw data frames before they are yielded
287+ back (takes an array.array or bytes, returns an array.array or bytes) * Note: if the processing
288+ method is slow it will result in audio glitchiness > A callback function that gets called when the
289+ stream ends playing.
291290
292291
293292* function* `` vorbis_get_file_info (filename: str) -> miniaudio.SoundFileInfo ``
@@ -419,12 +418,14 @@ already be started before passing it in)
419418
420419* class* `` IceCastClient ``
421420
422- `` IceCastClient (self, url: str, update_stream_title: Callable[[ForwardRef('IceCastClient'), str], NoneType] = None) ``
421+ `` IceCastClient (self, url: str, update_stream_title: Callable[[ForwardRef('IceCastClient'), str], NoneType] = None, ssl_context: 'ssl.SSLContext' = None ) ``
423422> A simple client for IceCast audio streams as miniaudio streamable source. If the stream has Icy
424- Meta Data, the stream_title attribute will be updated with the actual title taken from the meta
425- data. You can also provide a callback to be called when a new stream title is available. The
426- downloading of the data from the internet is done in a background thread and it tries to keep a
427- (small) buffer filled with available data to read.
423+ MetaData, the stream_title attribute will be updated with the actual title taken from the metadata.
424+ You can also provide a callback to be called when a new stream title is available. The downloading
425+ of the data from the internet is done in a background thread and it tries to keep a (small) buffer
426+ filled with available data to read. You can optionally provide a custom ssl.SSLContext in the
427+ ssl_context parameter, if you need to change the way SSL connections are configured (certificates,
428+ checks, etc).
428429
429430> * method* `` close (self) ``
430431> > Stop the stream, aborting the background downloading.
@@ -464,7 +465,7 @@ The generator should already be started before passing it in.
464465
465466* class* `` SoundFileInfo ``
466467
467- `` SoundFileInfo (self, name: str, file_format: miniaudio.FileFormat, nchannels: int, sample_rate: int, sample_format: miniaudio.SampleFormat, duration: float, num_frames: int) ``
468+ `` SoundFileInfo (self, name: str, file_format: miniaudio.FileFormat, nchannels: int, sample_rate: int, sample_format: miniaudio.SampleFormat, duration: float, num_frames: int, sub_format: int = None ) ``
468469> Contains various properties of an audio file.
469470
470471
0 commit comments