summaryrefslogtreecommitdiff
path: root/src/audioio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/audioio.cc')
-rw-r--r--src/audioio.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/audioio.cc b/src/audioio.cc
index bb04762..75457da 100644
--- a/src/audioio.cc
+++ b/src/audioio.cc
@@ -268,6 +268,16 @@ int aio_get_samplerate(struct aio_t *h)
return MISSING_HANDLE;
}
+int aio_get_buffer_size(struct aio_t *h)
+{
+ CHECK_HANDLE(h);
+
+ if(h->source) return h->source->frames();
+ else if(h->sink) return h->sink->frames();
+
+ return MISSING_HANDLE;
+}
+
int aio_close(struct aio_t *h)
{
CHECK_HANDLE(h);