Skip to content

Commit f8c1c07

Browse files
committed
Add DeviceList with a __repr__(), remove print_devices()
1 parent aec8c15 commit f8c1c07

File tree

3 files changed

+149
-121
lines changed

3 files changed

+149
-121
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Device Selection
198198

199199
In many cases, the default input/output device(s) will be the one(s) you want,
200200
but it is of course possible to choose a different device.
201-
Use `sounddevice.print_devices()` to get a list of supported devices.
201+
Use `sounddevice.query_devices()` to get a list of supported devices.
202202
You can use the corresponding device ID to select a desired device by assigning
203203
to `sounddevice.default.device` or by passing it as *device* argument to
204204
`sounddevice.play()`, `sounddevice.Stream()` etc.

doc/index.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ API Documentation
2121
:undoc-members:
2222
:exclude-members: RawInputStream, RawOutputStream, RawStream,
2323
InputStream, OutputStream, Stream,
24-
CallbackFlags, CallbackStop, CallbackAbort, PortAudioError
24+
CallbackFlags, CallbackStop, CallbackAbort,
25+
PortAudioError, DeviceList
2526

2627
.. autoclass:: Stream
2728
:members:
@@ -39,6 +40,8 @@ API Documentation
3940

4041
.. autoclass:: RawOutputStream
4142

43+
.. autoclass:: DeviceList
44+
4245
.. autoclass:: CallbackFlags
4346
:members:
4447

0 commit comments

Comments
 (0)