rodio
rodio copied to clipboard
method to get which stream was opened
For context see: https://github.com/RustAudio/rodio/issues/662#issuecomment-2558506267
maybe a method on OutputStream would work?
There are 3 options:
- Return as another value when opening the stream (
(info, stream-handle)). This would force users to ignore info part, and it again looks like the older version of the API... - Just write this info to logs (through
tracing). - Keep the information in the stream handle, and let users to read it.
Yes, the latter seems to give users most choices, and does not interfere if they do not care. I think we'll need to show not only actual device name, but also the actual stream format. So there is possibility for sources to adjust if they can (#646).