audio/internal/readerdriver: Add comments (Windows)

Updates #1549
This commit is contained in:
Hajime Hoshi 2021-06-04 23:58:30 +09:00
parent 7f8248cb44
commit 3fb469d5a5

View File

@ -276,6 +276,7 @@ func (p *playerImpl) playImpl() {
nBlockAlign: uint16(numBlockAlign),
}
// TOOD: What about using an event instead of a callback? PortAudio and other libraries do that.
w, err := waveOutOpen(f, waveOutOpenCallback)
const elementNotFound = 1168
if e, ok := err.(*winmmError); ok && e.errno == elementNotFound {