cpal icon indicating copy to clipboard operation
cpal copied to clipboard

must_use on stream

Open samoylovfp opened this issue 3 years ago • 0 comments

I've been a happy user of cpal for playing around with sound but got bitten in my foot two times by the same behavior: I forget to persist the stream that come from build_input_stream and my program just silently does nothing.

I feel like this experience can be significantly improved if Streams had "must_use" attribute

samoylovfp avatar Jul 06 '21 10:07 samoylovfp