diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2017-04-06 23:04:20 -0700 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2017-04-06 23:04:20 -0700 |
commit | d6e7e04edb3e2049eb9bd6632f06480ba2e7b848 (patch) | |
tree | 0823aaa0cf19aae4c5a842b1a8c229cccb0916c7 /src | |
parent | f1080d33378a26b25647868c58db9c9aba0f3de2 (diff) |
added limits for frames and channels
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 4 | ||||
-rw-r--r-- | src/limits.c | 12 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index cde8267..56159d6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -16,13 +16,15 @@ INCLUDE_DIRS = -I ../include override CFLAGS := $(WARNINGS) $(INCLUDE_DIRS) -fPIC $(CFLAGS) VPATH = ../include/tinyalsa -OBJECTS = mixer.o pcm.o +OBJECTS = limits.o mixer.o pcm.o .PHONY: all all: libtinyalsa.a libtinyalsa.so pcm.o: pcm.c pcm.h +limits.o: limits.c limits.h + mixer.o: mixer.c mixer.h libtinyalsa.a: $(OBJECTS) diff --git a/src/limits.c b/src/limits.c new file mode 100644 index 0000000..25bd352 --- /dev/null +++ b/src/limits.c @@ -0,0 +1,12 @@ +#include <tinyalsa/limits.h> + +const struct tinyalsa_unsigned_interval tinyalsa_channels_limit = { + .max = TINYALSA_CHANNELS_MAX, + .min = TINYALSA_CHANNELS_MIN +}; + +const struct tinyalsa_unsigned_interval tinyalsa_frames_limit = { + .max = TINYALSA_FRAMES_MAX, + .min = TINYALSA_FRAMES_MIN +}; + |