00001 /* Audacious - Cross-platform multimedia player 00002 * Copyright (C) 2005-2011 Audacious development team 00003 * 00004 * Based on BMP: 00005 * Copyright (C) 2003-2004 BMP development team 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; under version 3 of the License. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program. If not, see <http://www.gnu.org/licenses>. 00018 * 00019 * The Audacious team does not consider modular code linking to 00020 * Audacious or using our public API to be a derived work. 00021 */ 00022 00023 #ifndef AUDACIOUS_PLAYBACK_H 00024 #define AUDACIOUS_PLAYBACK_H 00025 00026 #include <libaudcore/core.h> 00027 00028 void playback_play (int seek_time, bool_t pause); 00029 int playback_get_time(void); 00030 void playback_pause(void); 00031 void playback_stop(void); 00032 bool_t playback_get_playing(void); 00033 bool_t playback_get_ready (void); 00034 bool_t playback_get_paused(void); 00035 void playback_seek(int time); 00036 00037 char * playback_get_filename (void); /* pooled */ 00038 char * playback_get_title (void); /* pooled */ 00039 int playback_get_length (void); 00040 void playback_get_info (int * bitrate, int * samplerate, int * channels); 00041 00042 void playback_get_volume (int * l, int * r); 00043 void playback_set_volume (int l, int r); 00044 00045 #endif /* AUDACIOUS_PLAYBACK_H */