MPD
decoder_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003-2010 The Music Player Daemon Project
3  * http://www.musicpd.org
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef MPD_DECODER_INTERNAL_H
21 #define MPD_DECODER_INTERNAL_H
22 
23 #include "decoder_command.h"
24 #include "pcm_convert.h"
25 #include "replay_gain_info.h"
26 
27 struct input_stream;
28 
29 struct decoder {
31 
33 
37  double timestamp;
38 
44 
52 
58  bool seeking;
59 
65  struct tag *song_tag;
66 
68  struct tag *stream_tag;
69 
71  struct tag *decoder_tag;
72 
74  struct music_chunk *chunk;
75 
77 
83 };
84 
91 struct music_chunk *
92 decoder_get_chunk(struct decoder *decoder, struct input_stream *is);
93 
97 void
99 
100 #endif