1 /* Sound stream object
2 
3    Copyright 2000 Hans de Goede
4 
5    This file and the acompanying files in this directory are free software;
6    you can redistribute them and/or modify them under the terms of the GNU
7    Library General Public License as published by the Free Software Foundation;
8    either version 2 of the License, or (at your option) any later version.
9 
10    These files are distributed in the hope that they will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Library General Public License for more details.
14 
15    You should have received a copy of the GNU Library General Public
16    License along with these files; see the file COPYING.LIB.  If not,
17    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18    Boston, MA 02111-1307, USA.
19 */
20 #ifndef __SYSDEP_SOUND_STREAM_PRIV_H
21 #define __SYSDEP_SOUND_STREAM_PRIV_H
22 #include "sysdep_dsp.h"
23 #include "begin_code.h"
24 
25 struct sample_buf_fifo_struct;
26 
27 struct sysdep_sound_stream_sample_buf {
28    int length;
29    int pos;
30    unsigned char *data;
31 };
32 
33 struct sysdep_sound_stream_struct {
34    struct sysdep_dsp_struct *dsp;
35    int bytes_per_sample;
36    int sample_buf_size;
37    int sample_buf_count;
38    int output_buf_size;
39    unsigned char *output_buf;
40    struct sysdep_sound_stream_sample_buf *sample_buf;
41    struct sample_buf_fifo_struct *sample_buf_fifo;
42    struct sample_buf_fifo_struct *empty_sample_buf_fifo;
43 };
44 
45 #include "end_code.h"
46 #endif /* ifndef __SYSDEP_SOUND_STREAM_PRIV_H */
47