summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common.c2
-rw-r--r--common.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/common.c b/common.c
index d311b75..9810633 100644
--- a/common.c
+++ b/common.c
@@ -135,7 +135,7 @@ int sa_stream_destroy(sa_stream_t *s) {
sa_free(s->read_volume);
sa_free(s->write_volume);
- for (u = 0; u < META_NAMES_MAX; u++)
+ for (u = 0; u < _META_NAMES_MAX; u++)
sa_free(s->meta_data[u]);
sa_free(s);
diff --git a/common.h b/common.h
index 5af7268..2e838b0 100644
--- a/common.h
+++ b/common.h
@@ -3,7 +3,7 @@
#include "sydney.h"
-#define META_NAMES_MAX 8
+#define _META_NAMES_MAX 9
typedef struct pcm_attrs {
sa_pcm_format_t format;
@@ -52,8 +52,8 @@ struct sa_stream {
void *private; /* driver specific data */
- void *meta_data[META_NAMES_MAX];
- size_t meta_data_size[META_NAMES_MAX];
+ void *meta_data[_META_NAMES_MAX];
+ size_t meta_data_size[_META_NAMES_MAX];
};
size_t get_pcm_sample_size(sa_pcm_format_t f);