[0] | 1 | //esdsample.c: |
---|
| 2 | |
---|
[705] | 3 | /* |
---|
| 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008 |
---|
| 5 | * The code (may) include prototypes and comments (and maybe |
---|
| 6 | * other code fragements) from EsounD. |
---|
| 7 | * They are mostly copyrighted by Eric B. Mitchell (aka 'Ricdude) |
---|
| 8 | * <ericmit@ix.netcom.com>. For more information see AUTHORS.esd. |
---|
| 9 | * |
---|
| 10 | * This file is part of libroaresd a part of RoarAudio, |
---|
| 11 | * a cross-platform sound system for both, home and professional use. |
---|
| 12 | * See README for details. |
---|
| 13 | * |
---|
| 14 | * This file is free software; you can redistribute it and/or modify |
---|
| 15 | * it under the terms of the GNU General Public License version 3 |
---|
| 16 | * as published by the Free Software Foundation. |
---|
| 17 | * |
---|
| 18 | * RoarAudio is distributed in the hope that it will be useful, |
---|
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 21 | * GNU General Public License for more details. |
---|
| 22 | * |
---|
| 23 | * You should have received a copy of the GNU General Public License |
---|
| 24 | * along with this software; see the file COPYING. If not, write to |
---|
| 25 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
| 26 | * |
---|
| 27 | * NOTE for everyone want's to change something and send patches: |
---|
| 28 | * read README and HACKING! There a addition information on |
---|
| 29 | * the license of this document you need to read before you send |
---|
| 30 | * any patches. |
---|
| 31 | * |
---|
| 32 | * NOTE for uses of non-GPL (LGPL,...) software using libesd, libartsc |
---|
| 33 | * or libpulse*: |
---|
| 34 | * The libs libroaresd, libroararts and libroarpulse link this libroar |
---|
| 35 | * and are therefore GPL. Because of this it may be illigal to use |
---|
| 36 | * them with any software that uses libesd, libartsc or libpulse*. |
---|
| 37 | */ |
---|
| 38 | |
---|
[0] | 39 | #include "libroaresd.h" |
---|
| 40 | |
---|
| 41 | // TODO: add support for all of thiese funcs |
---|
| 42 | |
---|
| 43 | /* cache a sample in the server returns sample id, < 0 = error */ |
---|
| 44 | int esd_sample_cache( int esd, esd_format_t format, const int rate, |
---|
| 45 | const int length, const char *name ) { |
---|
| 46 | return -1; |
---|
| 47 | } |
---|
| 48 | int esd_confirm_sample_cache( int esd ) { |
---|
| 49 | return -1; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | /* get the sample id for an already-cached sample */ |
---|
| 53 | int esd_sample_getid( int esd, const char *name) { |
---|
| 54 | return -1; |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | /* uncache a sample in the server */ |
---|
| 58 | int esd_sample_free( int esd, int sample ) { |
---|
| 59 | return -1; |
---|
| 60 | } |
---|
| 61 | |
---|
| 62 | /* play a cached sample once */ |
---|
| 63 | int esd_sample_play( int esd, int sample ) { |
---|
| 64 | return -1; |
---|
| 65 | } |
---|
| 66 | /* make a cached sample loop */ |
---|
| 67 | int esd_sample_loop( int esd, int sample ) { |
---|
| 68 | return -1; |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | /* stop the looping sample at end */ |
---|
| 72 | int esd_sample_stop( int esd, int sample ) { |
---|
| 73 | return -1; |
---|
| 74 | } |
---|
| 75 | /* stop a playing sample immed. */ |
---|
| 76 | int esd_sample_kill( int esd, int sample ) { |
---|
| 77 | return -1; |
---|
| 78 | } |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | //ll |
---|