diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-05-26 22:00:19 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-05-26 22:00:19 +0000 |
commit | d7fd6a45e50475cddf0b8bad8baab01b33cf3c1f (patch) | |
tree | 4f210adb96478280df083b6d4802053f93b59192 /read-sound-file.h | |
parent | 48178a5e2813546b61706d1f97fab761934a97f0 (diff) |
move sources to src/ subdir
git-svn-id: file:///home/lennart/svn/public/libcanberra/trunk@12 01b60673-d06a-42c0-afdd-89cb8e0f78ac
Diffstat (limited to 'read-sound-file.h')
-rw-r--r-- | read-sound-file.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/read-sound-file.h b/read-sound-file.h deleted file mode 100644 index 5ab7e66..0000000 --- a/read-sound-file.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef foocareadsoundfilehfoo -#define foocareadsoundfilehfoo - -/* $Id$ */ - -/*** - This file is part of libcanberra. - - Copyright 2008 Lennart Poettering - - libcanberra is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation, either version 2.1 of the - License, or (at your option) any later version. - - libcanberra is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with libcanberra. If not, If not, see - <http://www.gnu.org/licenses/>. -***/ - -typedef enum ca_sample_type { - CA_SAMPLE_S16NE, - CA_SAMPLE_S16RE, - CA_SAMPLE_U8 -} ca_sample_type_t; - -typedef struct ca_sound_file wa_sound_file; - -int ca_sound_file_open(ca_sound_file *f, const char *fn); -void ca_sound_file_close(ca_sound_file *f); - -unsigned ca_sound_file_get_nchannels(ca_sound_file *f); -unsigned ca_sound_file_get_rate(ca_sound_file *f); -ca_sample_type_t ca_sound_file_get_sample_type(ca_sound_file *f); - -size_t ca_sound_file_get_size(ca_sound_file *f); - -int ca_sound_file_read_int16(ca_sound_file *f, int16_t *d, unsigned *n); -int ca_sound_file_read_uint8(ca_sound_file *f, uint8_t *d, unsigned *n); - -int ca_sound_file_read_arbitrary(ca_sound_file *f, void *d, size_t *n); - -#endif |