Commit Graph

20 Commits

Author SHA1 Message Date
Nick Moriarty 8915ce1525 Fix ALSA latency (causing ALSA not to block).
With arbitrarily large latency setting (unsigned int)-1, ALSA will happily
accept all the samples we want to throw at it.

Reducing to a reasonably long (but still sub-second) value of 100ms, we
cause ALSA writes to block and work properly with --tx-carrier.
2015-04-22 17:48:28 +01:00
Mike Tedesco 577b84d7f2 (portability) use stdlib.h not malloc.h 2012-10-04 18:10:33 -07:00
Kamal Mostafa 2af26a4d06 simpleaudio-alsa: allow max latency
Request "maximum possible allowed latency", to help avoid underruns.
2012-10-01 19:06:27 -07:00
Kamal Mostafa 151ee0e004 simpleaudio-alsa: handle underruns better; print '#' 2012-10-01 19:02:39 -07:00
Kamal Mostafa d603fc444d minimodem: --alsa[=plughw:X,Y] 2012-09-09 15:24:35 -07:00
Kamal Mostafa 5ee6a23c42 simpleaudio: backend_device support 2012-09-09 15:24:01 -07:00
Kamal Mostafa c2bb5c6205 simpleaudio-alsa: fix bogus latency, set 200 ms 2012-09-09 15:03:40 -07:00
Kamal Mostafa 6d749c7771 simpleaudio-alsa: enable ALSA soft-resample 2012-08-29 21:26:47 -07:00
Kamal Mostafa 6671138471 simpleaudio: S16 format handling for backends 2012-08-12 15:39:04 -07:00
Kamal Mostafa a65a20d274 simpleaudio: generalize r/w buf pointer types 2012-08-12 14:39:23 -07:00
Kamal Mostafa 4d326a8c82 simpleaudio: generalized simpleaudio_open_stream 2012-08-12 14:24:55 -07:00
Kamal Mostafa 3053ea78bc simpleaudio: SA_SAMPLE_FORMAT framework 2012-08-11 21:00:37 -07:00
Kamal Mostafa 39bee9adf1 simpleaudio: get_framesize 2012-08-11 20:40:20 -07:00
Kamal Mostafa 22317f54fc simpleaudio: handle any audio sample rate 2012-08-11 10:07:12 -07:00
Kamal Mostafa 500208ba81 simpleaudio-alsa: do not allow soft_resample 2012-08-11 10:28:20 -07:00
Kamal Mostafa d1f8966ff1 simpleaudio-alsa: correct comments 2012-08-08 18:56:01 -07:00
Kamal Mostafa 7cb56487f8 simpleaudio-alsa: do not fiddle with sw params at all 2012-08-08 18:53:24 -07:00
Kamal Mostafa 2baf78cba6 simpleaudio-alsa: use default latency, not minimum 2012-08-08 18:35:11 -07:00
Kamal Mostafa deed39904d simpleaudio-alsa: loop in the sa_ routine; fix xruns 2012-08-08 16:24:44 -07:00
Kamal Mostafa e01ccb1d71 simpleaudio: alsa back-end 2012-08-08 14:25:53 -07:00