rodio icon indicating copy to clipboard operation
rodio copied to clipboard

method to get which stream was opened

Open yara-blue opened this issue 1 year ago • 1 comments

For context see: https://github.com/RustAudio/rodio/issues/662#issuecomment-2558506267

maybe a method on OutputStream would work?

yara-blue avatar Dec 22 '24 17:12 yara-blue

There are 3 options:

  1. 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...
  2. Just write this info to logs (through tracing).
  3. 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).

PetrGlad avatar Dec 24 '24 19:12 PetrGlad