[398] | 1 | //libroarpulse.h: |
---|
| 2 | |
---|
[706] | 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 libpulse*. They are mostly copyrighted by: |
---|
| 7 | * Lennart Poettering <poettering@users.sourceforge.net> and |
---|
| 8 | * Pierre Ossman <drzeus@drzeus.cx> |
---|
| 9 | * |
---|
| 10 | * This file is part of libroarpulse 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 |
---|
[3517] | 25 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
| 26 | * Boston, MA 02110-1301, USA. |
---|
[706] | 27 | * |
---|
| 28 | * NOTE for everyone want's to change something and send patches: |
---|
| 29 | * read README and HACKING! There a addition information on |
---|
| 30 | * the license of this document you need to read before you send |
---|
| 31 | * any patches. |
---|
| 32 | * |
---|
| 33 | * NOTE for uses of non-GPL (LGPL,...) software using libesd, libartsc |
---|
| 34 | * or libpulse*: |
---|
| 35 | * The libs libroaresd, libroararts and libroarpulse link this libroar |
---|
| 36 | * and are therefore GPL. Because of this it may be illigal to use |
---|
| 37 | * them with any software that uses libesd, libartsc or libpulse*. |
---|
| 38 | */ |
---|
| 39 | |
---|
[398] | 40 | #ifndef _LIBROARPULSE_H_ |
---|
| 41 | #define _LIBROARPULSE_H_ |
---|
| 42 | |
---|
| 43 | #include <roaraudio.h> |
---|
| 44 | #include <pulse/pulseaudio.h> |
---|
[400] | 45 | #include <pulse/simple.h> |
---|
| 46 | |
---|
| 47 | #include <libroarpulse/simple.h> |
---|
| 48 | |
---|
[3410] | 49 | #define ROAR_PA_DEFAULT_SINK "RoarAudio_default_sink" |
---|
| 50 | #define ROAR_PA_DEFAULT_SOURCE "RoarAudio_default_source" |
---|
| 51 | |
---|
[400] | 52 | // POSIX does not clearly specify what happens on NULL |
---|
| 53 | #define ROAR_STRDUP(x) ((x) == NULL ? NULL : strdup((x))) |
---|
[398] | 54 | |
---|
[408] | 55 | int roar_codec_pulse2roar (int codec); |
---|
| 56 | |
---|
[3383] | 57 | int roar_pa_sspec2auinfo (struct roar_audio_info * info, const pa_sample_spec * ss); |
---|
[3408] | 58 | int roar_pa_auinfo2sspec (pa_sample_spec * ss, const struct roar_audio_info * info); |
---|
[3382] | 59 | |
---|
[3388] | 60 | char * roar_pa_find_server (char * server); |
---|
| 61 | |
---|
[3406] | 62 | struct roar_connection * roar_pa_context_get_con(pa_context * c); |
---|
[3438] | 63 | pa_mainloop_api * roar_pa_context_get_api(pa_context * c); |
---|
[3406] | 64 | |
---|
[3401] | 65 | pa_operation *roar_pa_operation_new(pa_operation_state_t initstate); |
---|
| 66 | |
---|
[3405] | 67 | #define roar_pa_op_new_done() roar_pa_operation_new(PA_OPERATION_DONE) |
---|
| 68 | |
---|
[398] | 69 | #endif |
---|
| 70 | |
---|
| 71 | //ll |
---|