diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-05-27 11:32:37 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-05-27 11:32:37 +0000 |
commit | e3a1fe4f5f7714aa972f3cf7b9803636ffa853f0 (patch) | |
tree | b6a0ad7c828f643d531ae9f74afe08c3866ebfe1 /src/read-sound-file.c | |
parent | 7ac8038c3690eb5547cfdff83235f3636f87c303 (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.c | 9 |
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); +} |