~ubuntu-dev/ubuntu/lucid/mpd/lucid-201002101854

« back to all changes in this revision

Viewing changes to src/decoder_control.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2009-10-23 12:38:20 UTC
  • mfrom: (1.1.12 upstream) (2.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091023123820-rxt21lmekscxbkbt
Tags: 0.15.4-1ubuntu1
* Merge from debian unstable, Ubuntu remaining changes:
  - debian/control:
    + Don't build-depends on libmikmod2-dev (Debian bug #510675).
    + Move avahi-daemon from Suggests field to Recommends field.
  - debian/mpd.init.d:
    + Read mpd user from mpd.conf.
* Also fixes LP: #332332.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* the Music Player Daemon (MPD)
2
 
 * Copyright (C) 2003-2007 by Warren Dukes (warren.dukes@gmail.com)
3
 
 * Copyright (C) 2008 Max Kellermann <max@duempel.org>
4
 
 * This project's homepage is: http://www.musicpd.org
 
1
/*
 
2
 * Copyright (C) 2003-2009 The Music Player Daemon Project
 
3
 * http://www.musicpd.org
5
4
 *
6
5
 * This program is free software; you can redistribute it and/or modify
7
6
 * it under the terms of the GNU General Public License as published by
12
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
13
 * GNU General Public License for more details.
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
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
18
 */
19
19
 
20
20
#ifndef MPD_DECODER_CONTROL_H
21
21
#define MPD_DECODER_CONTROL_H
22
22
 
23
 
#include "decoder_api.h"
24
 
 
 
23
#include "decoder_command.h"
25
24
#include "audio_format.h"
26
25
#include "notify.h"
27
26
 
45
44
};
46
45
 
47
46
struct decoder_control {
 
47
        /** the handle of the decoder thread, or NULL if the decoder
 
48
            thread isn't running */
 
49
        GThread *thread;
 
50
 
48
51
        struct notify notify;
49
52
 
50
53
        volatile enum decoder_state state;
51
54
        volatile enum decoder_command command;
 
55
        bool quit;
52
56
        bool seek_error;
53
57
        bool seekable;
54
58
        volatile double seek_where;
62
66
        struct song *current_song;
63
67
        struct song *next_song;
64
68
        float total_time;
 
69
 
 
70
        /** the #music_chunk allocator */
 
71
        struct music_buffer *buffer;
 
72
 
 
73
        /** the destination pipe for decoded chunks */
 
74
        struct music_pipe *pipe;
65
75
};
66
76
 
67
77
extern struct decoder_control dc;
122
132
bool
123
133
dc_seek(struct notify *notify, double where);
124
134
 
 
135
void
 
136
dc_quit(void);
 
137
 
125
138
#endif