Commit Graph

14 Commits

Author SHA1 Message Date
Dan Kortschak 5f4bcb61e0 device/alsa: check error 2022-01-13 16:08:02 +10:30
Dan Kortschak baef3c0585 device/alsa,revid: clarify type conditions and remove redundant condition 2022-01-13 16:08:02 +10:30
Trek H 1d67ab65a4 alsa: refactor DataSize function 2020-12-24 10:55:44 +10:30
Saxon Nelson-Milton 606b784f5e fixed various things particularly use of %w formatting directive in wrong places to satisfy repo testing 2020-12-19 13:43:23 +10:30
Trek H 744a33d6be alsa: improve error handling 2020-09-03 16:44:22 +09:30
Trek H c86e3c4ce9 alsa: improve error checking 2020-08-21 14:34:13 +09:30
Trek H 456b711b28 alsa: test files updated to use Setup instead of Set 2020-08-13 15:51:24 +09:30
Scott c682f49071 device: use fatal instead of skip in tests 2020-01-31 14:02:45 +10:30
Scott 9ddd4be089 device: use constants for test code 2020-01-31 12:22:48 +10:30
Scott f1d1fe2cad device: add tests for IsRunning
To check that the IsRunning method is working, some tests are needed. These tests shall be skipped when an AVdevice is not connected, such as when testing within Circle-CI.
2020-01-30 11:21:06 +10:30
Trek H cd63d0d95a alsa: unexported ringbuffer chunksize
Chunksize can be calculated without needing an ALSA device instance.

Added a DataSize function to pcm package for calculating size of pcm data given relevant attributes.

Removed ChunkSize from config revid config struct.

Changed NewByteLexer to accept an in rather than a pointer.
2019-11-13 19:56:13 +10:30
Saxon dec39a3636 revid: now using AVDevice implementations
Also renamed constructors of devices to reduce stutter e.g. raspivid.NewRaspivid to
raspivid.New
2019-11-13 14:11:29 +10:30
Alan Noble 7da3778485 Fix license hyperlink in comment. 2019-11-12 05:35:01 +00:00
Trek H b6dd737034 device: audio package name changed to alsa
yobert/alsa imports changed to yalsa
directory and file names changed to reflect package name change
2019-11-12 13:28:53 +10:30