andrewrk / andrewrk/libsoundio

Unable to pause WASAPI output stream from callback

Đang mở
#235 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
2.1k
Fork
254
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

As the title says, I'm trying to pause a sound output stream from the callback.

The corresponding code is here: https://github.com/dingusdev/dingusppc/blob/ba81094fa278cfa3c59b9996f307e05c2109e845/devices/awacs.cpp#L179-L187

The above code works flawlessly with CoreAudio.

When running it with the WASAPI backend, `soundio_outstream_pause()` seems to have no effect. libsoundio continues to invoke the callback at infinitum.

The ability to pause a stream when data is exhausted is a requirement for us.

We're emulating a vintage sound DMA that should go idle when there is no more data. An operating system that runs in another thread polls the internal state of the DMA channel and blocks as long as the DMA channel is active.

Is there a possibility to make it work with WASAPI?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.