audio: Remove confusing comments

This commit is contained in:
Hajime Hoshi 2016-05-29 13:19:17 +09:00
parent e4ca01db31
commit a329f7939d

View File

@ -45,7 +45,6 @@ func newHeader(waveOut C.HWAVEOUT, bufferSize int) (*header, error) {
dwBufferLength: C.DWORD(bufferSize), dwBufferLength: C.DWORD(bufferSize),
}, },
} }
// TODO: Need to unprepare to avoid memory leak?
if err := C.waveOutPrepareHeader(waveOut, &h.waveHdr, C.sizeOfWavehdr); err != C.MMSYSERR_NOERROR { if err := C.waveOutPrepareHeader(waveOut, &h.waveHdr, C.sizeOfWavehdr); err != C.MMSYSERR_NOERROR {
return nil, fmt.Errorf("driver: waveOutPrepareHeader error: %d", err) return nil, fmt.Errorf("driver: waveOutPrepareHeader error: %d", err)
} }