@@ -354,6 +354,22 @@ variable number of frames per call.
354354> An audio device provided by miniaudio, for audio capture (recording).
355355
356356
357+ > * method* `` close (self) ``
358+
359+ > > Halt playback or capture and close down the device.
360+
361+
362+ > * method* `` start (self, callback_generator: Generator[NoneType, Union[bytes, array.array], NoneType]) ``
363+
364+ > > Start the audio device: capture (recording) begins. The recorded audio data is sent to the given
365+ callback generator as raw bytes. (it should already be started before)
366+
367+
368+ > * method* `` stop (self) ``
369+
370+ > > Halt playback or capture.
371+
372+
357373* class* `` DecodeError ``
358374
359375`` DecodeError (self, /, *args, **kwargs) ``
@@ -375,13 +391,40 @@ variable number of frames per call.
375391> Query the audio playback and record devices that miniaudio provides
376392
377393
394+ > * method* `` get_captures (self) -> List[Dict[str, Any]] ``
395+
396+ > > Get a list of capture devices and some details about them
397+
398+
399+ > * method* `` get_playbacks (self) -> List[Dict[str, Any]] ``
400+
401+ > > Get a list of playback devices and some details about them
402+
403+
378404* class* `` DuplexStream ``
379405
380406`` DuplexStream (self, playback_format: miniaudio.SampleFormat = <SampleFormat.SIGNED16: 2>, playback_channels: int = 2, capture_format: miniaudio.SampleFormat = <SampleFormat.SIGNED16: 2>, capture_channels: int = 2, sample_rate: int = 44100, buffersize_msec: int = 200, playback_device_id: Union[_cffi_backend.CData, NoneType] = None, capture_device_id: Union[_cffi_backend.CData, NoneType] = None) ``
381407
382408> Joins a capture device and a playback device.
383409
384410
411+ > * method* `` close (self) ``
412+
413+ > > Halt playback or capture and close down the device.
414+
415+
416+ > * method* `` start (self, callback_generator: Generator[Union[bytes, array.array], Union[bytes, array.array], NoneType]) ``
417+
418+ > > Start the audio device: playback and capture begin. The audio data for playback is provided by
419+ the given callback generator, which is sent the recorded audio data at the same time. (it should
420+ already be started before passing it in)
421+
422+
423+ > * method* `` stop (self) ``
424+
425+ > > Halt playback or capture.
426+
427+
385428* class* `` MiniaudioError ``
386429
387430`` MiniaudioError (self, /, *args, **kwargs) ``
@@ -396,6 +439,24 @@ variable number of frames per call.
396439> An audio device provided by miniaudio, for audio playback.
397440
398441
442+ > * method* `` close (self) ``
443+
444+ > > Halt playback or capture and close down the device.
445+
446+
447+ > * method* `` start (self, callback_generator: Generator[Union[bytes, array.array], int, NoneType]) ``
448+
449+ > > Start the audio device: playback begins. The audio data is provided by the given callback
450+ generator. The generator gets sent the required number of frames and should yield the sample data as
451+ raw bytes, a memoryview, an array.array, or as a numpy array with shape (numframes, numchannels).
452+ The generator should already be started before passing it in.
453+
454+
455+ > * method* `` stop (self) ``
456+
457+ > > Halt playback or capture.
458+
459+
399460* class* `` SoundFileInfo ``
400461
401462`` SoundFileInfo (self, name: str, file_format: str, nchannels: int, sample_rate: int, sample_format: miniaudio.SampleFormat, duration: float, num_frames: int) ``
@@ -410,4 +471,14 @@ variable number of frames per call.
410471> An IO stream that reads as a .wav file, and which gets its pcm samples from the provided producer
411472
412473
474+ > * method* `` close (self) ``
475+
476+ > > Close the file
477+
478+
479+ > * method* `` read (self, amount: int = 9223372036854775807) -> Union[bytes, NoneType] ``
480+
481+ > > Read up to the given amount of bytes from the file.
482+
483+
413484
0 commit comments