File: input.h

package info (click to toggle)
ices2 2.0.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,064 kB
  • ctags: 782
  • sloc: sh: 8,350; ansic: 6,448; xml: 121; makefile: 94
file content (48 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* input.h
 * - Input functions
 *
 * $Id: input.h,v 1.9 2003/03/22 01:14:35 karl Exp $
 *
 * Copyright (c) 2001 Michael Smith <msmith@labyrinth.net.au>
 *
 * This program is distributed under the terms of the GNU General
 * Public License, version 2. You may use, modify, and redistribute
 * it under the terms of this license. A copy should be included
 * with this source.
 */

#ifndef __INPUT_H__
#define __INPUT_H__

#include <shout/shout.h>
#include <vorbis/codec.h>

#include "cfgparse.h"
#include "inputmodule.h"
#include "stream.h"
#include "reencode.h"
#include "encode.h"
#include "audio.h"

typedef struct {
    instance_t *stream;
    input_module_t *input;
    reencode_state *reenc;
    encoder_state *enc;
    downmix_state *downmix;
    resample_state *resamp;
    shout_t *shout;
    vorbis_comment vc;
} stream_description;


void input_loop(void);
void input_flush_queue(buffer_queue *queue, int keep_critical);
void input_sleep(void);
int  input_calculate_ogg_sleep(ogg_page *og);
int  input_calculate_pcm_sleep(unsigned bytes, unsigned bytes_per_sec);


#endif /* __INPUT_H__ */