You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WASAPI supports loopback, where you are provided a listening device for each output device. There are a handful of libraries which support this, might be nice to have here?
I'm poking around at the source to see if I can figure it out, but I am quite inexperienced with Rust (and winapi, for that matter). winapi provides a flag for this (used in other libraries I have found): AUDCLNT_STREAMFLAGS_LOOPBACK. Simply adding this doesn't work, at least for device enumeration.
Going to keep digging, but also curious if this is something that has been discussed/considered before. Thanks!
Edit: Oof, randomly found this while perusing some examples: // note that AUDCLNT_STREAMFLAGS_LOOPBACK and AUDCLNT_STREAMFLAGS_EVENTCALLBACK // do not work together... so this may not be doable, since this lib is using that flag.
The text was updated successfully, but these errors were encountered:
lucy
added a commit
to lucy/cpal
that referenced
this issue
Oct 12, 2019
This works by detecting output devices in build_input_stream() and
setting the AUDCLNT_STREAMFLAGS_LOOPBACK flag to enable loopback
recording.
closesRustAudio#251
This works by detecting output devices in build_input_stream() and
setting the AUDCLNT_STREAMFLAGS_LOOPBACK flag to enable loopback
recording.
closesRustAudio#251
The WASAPI supports loopback, where you are provided a listening device for each output device. There are a handful of libraries which support this, might be nice to have here?
I'm poking around at the source to see if I can figure it out, but I am quite inexperienced with Rust (and winapi, for that matter).
winapi
provides a flag for this (used in other libraries I have found):AUDCLNT_STREAMFLAGS_LOOPBACK
. Simply adding this doesn't work, at least for device enumeration.Going to keep digging, but also curious if this is something that has been discussed/considered before. Thanks!
Edit: Oof, randomly found this while perusing some examples:
// note that AUDCLNT_STREAMFLAGS_LOOPBACK and AUDCLNT_STREAMFLAGS_EVENTCALLBACK // do not work together...
so this may not be doable, since this lib is using that flag.The text was updated successfully, but these errors were encountered: