summaryrefslogtreecommitdiffstats
path: root/src/read-sound-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-05-27 11:32:37 +0000
committerLennart Poettering <lennart@poettering.net>2008-05-27 11:32:37 +0000
commite3a1fe4f5f7714aa972f3cf7b9803636ffa853f0 (patch)
treeb6a0ad7c828f643d531ae9f74afe08c3866ebfe1 /src/read-sound-file.c
parent7ac8038c3690eb5547cfdff83235f3636f87c303 (diff)
make the whole mess compile
git-svn-id: file:///home/lennart/svn/public/libcanberra/trunk@15 01b60673-d06a-42c0-afdd-89cb8e0f78ac
Diffstat (limited to 'src/read-sound-file.c')
-rw-r--r--src/read-sound-file.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/read-sound-file.c b/src/read-sound-file.c
index b753e6f..a0e24fc 100644
--- a/src/read-sound-file.c
+++ b/src/read-sound-file.c
@@ -186,3 +186,12 @@ int ca_sound_file_read_arbitrary(ca_sound_file *f, void *d, size_t *n) {
return ret;
}
+
+size_t ca_sound_file_get_size(ca_sound_file *f) {
+ ca_return_val_if_fail(f, CA_ERROR_INVALID);
+
+ if (f->wav)
+ return ca_wav_get_size(f->wav);
+ else
+ return ca_vorbis_get_size(f->vorbis);
+}