Running with the environment variable CWLIB_DEBUG=0xFFFFFFFE makes cwlib emit interesting debug info. These two lines hint at the problem:
cwlib tries to set the fragment size to 2^7 == 128, but on one soundcard with the problem, I get: > cw: dsp fragment size not set, 131 Then when cwlib tries to write "about 1 second of audio", it only manages to write 2096 bytes (~ 1/4 second) before the audio fragment buffers are full: > cw: dsp data buffered, 800 Hz, 2096 By fiddling with the DSP rate setting code and/or the fragment size setting code, I am able to resolve the "fragment size not set" issue, but even with valid fragment sizes I still can only get about 1/4 second of audio into the buffer. Note: On soundcards which don't show this cwlib problem, the fragment size does get set to 128, and the data buffered in the first write is 8192 bytes (one second of audio). -- truncated CW dah's on some audio devices https://bugs.launchpad.net/bugs/513942 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
