1 /*
2  *  Copyright (C) 2009-2012  Christian Heckendorf <heckendorfc@gmail.com>
3  *
4  *  This program is free software: you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation, either version 3 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef _SNDUTIL_H
19 #define _SNDUTIL_H
20 
21 #include <unistd.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24 
25 #include "defs.h"
26 #include "player.h"
27 
28 //sndutil.c
29 int snd_init(struct playerHandles *ph);
30 int snd_param_init(struct playerHandles *ph, int *enc, int *channels, unsigned int *rate);
31 void toggleMute(struct playerHandles *ph, int *mute);
32 void changeVolume(struct playerHandles *ph, int mod);
33 void snd_clear(struct playerHandles *ph);
34 int writei_snd(struct playerHandles *ph, const char *out, const unsigned int size);
35 int writen_snd(struct playerHandles *ph, void *out[], const unsigned int size);
36 void snd_close(struct playerHandles *ph);
37 
38 void crOutput(struct playerflag *pflag, struct outputdetail *details);
39 
40 #endif
41