Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beep example: bad file descriptor #16

Closed
djadala opened this issue Nov 27, 2020 · 1 comment
Closed

beep example: bad file descriptor #16

djadala opened this issue Nov 27, 2020 · 1 comment

Comments

@djadala
Copy link

djadala commented Nov 27, 2020

Hi,
if i change duration in cmd/beep to 10 seconds,
at around 3-4 seconds playing i receive error:

go run test.go
2020/11/27 11:07:37 start
HDA Intel PCH
─── ALC255 Analog
Negotiated parameters: 2 channels, 44100 hz, S16_LE, 2048 period size, 4096 buffer size
Closing device.
2020/11/27 11:07:40 ioctl write (24 bytes) 0x4150 failed: bad file descriptor
error when beeping device: ioctl write (24 bytes) 0x4150 failed: bad file descriptor
─── HDMI 0
Negotiated parameters: 2 channels, 44100 hz, S16_LE, 2048 period size, 4096 buffer size
Closing device.
2020/11/27 11:07:44 ioctl write (24 bytes) 0x4150 failed: bad file descriptor
error when beeping device: ioctl write (24 bytes) 0x4150 failed: bad file descriptor

log lines show timing of errors

@djadala
Copy link
Author

djadala commented Nov 27, 2020

sorry for noise, just found that timing constants are at multiple locations in source.
closing now

@djadala djadala closed this as completed Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant