Audacious
$Id:Doxyfile42802007-03-2104:39:00Znenolod$
|
00001 /* 00002 * drct-api.h 00003 * Copyright 2010-2011 John Lindgren 00004 * 00005 * This file is part of Audacious. 00006 * 00007 * Audacious is free software: you can redistribute it and/or modify it under 00008 * the terms of the GNU General Public License as published by the Free Software 00009 * Foundation, version 2 or version 3 of the License. 00010 * 00011 * Audacious is distributed in the hope that it will be useful, but WITHOUT ANY 00012 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00013 * A PARTICULAR PURPOSE. See the GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along with 00016 * Audacious. If not, see <http://www.gnu.org/licenses/>. 00017 * 00018 * The Audacious team does not consider modular code linking to Audacious or 00019 * using our public API to be a derived work. 00020 */ 00021 00022 /* Do not include this file directly; use drct.h instead. */ 00023 00024 /* CAUTION: These functions are not thread safe. */ 00025 00026 /* --- PROGRAM CONTROL --- */ 00027 00028 AUD_FUNC0 (void, drct_quit) 00029 00030 /* --- PLAYBACK CONTROL --- */ 00031 00032 AUD_FUNC0 (void, drct_play) 00033 AUD_FUNC0 (void, drct_pause) 00034 AUD_FUNC0 (void, drct_stop) 00035 AUD_FUNC0 (gboolean, drct_get_playing) 00036 AUD_FUNC0 (gboolean, drct_get_paused) 00037 AUD_FUNC0 (gchar *, drct_get_title) 00038 AUD_FUNC3 (void, drct_get_info, gint *, bitrate, gint *, samplerate, gint *, 00039 channels) 00040 AUD_FUNC0 (gint, drct_get_time) 00041 AUD_FUNC0 (gint, drct_get_length) 00042 AUD_FUNC1 (void, drct_seek, gint, time) 00043 00044 /* --- VOLUME CONTROL --- */ 00045 00046 AUD_FUNC2 (void, drct_get_volume, gint *, left, gint *, right) 00047 AUD_FUNC2 (void, drct_set_volume, gint, left, gint, right) 00048 AUD_FUNC1 (void, drct_get_volume_main, gint *, volume) 00049 AUD_FUNC1 (void, drct_set_volume_main, gint, volume) 00050 AUD_FUNC1 (void, drct_get_volume_balance, gint *, balance) 00051 AUD_FUNC1 (void, drct_set_volume_balance, gint, balance) 00052 00053 /* --- PLAYLIST CONTROL --- */ 00054 00055 AUD_FUNC0 (gint, drct_pl_get_length) 00056 AUD_FUNC0 (void, drct_pl_next) 00057 AUD_FUNC0 (void, drct_pl_prev) 00058 AUD_FUNC0 (gint, drct_pl_get_pos) 00059 AUD_FUNC1 (void, drct_pl_set_pos, gint, pos) 00060 00061 AUD_FUNC0 (gboolean, drct_pl_repeat_is_enabled) 00062 AUD_FUNC0 (void, drct_pl_repeat_toggle) 00063 AUD_FUNC0 (gboolean, drct_pl_shuffle_is_enabled) 00064 AUD_FUNC0 (void, drct_pl_shuffle_toggle) 00065 00066 AUD_FUNC1 (gchar *, drct_pl_get_file, gint, entry) 00067 AUD_FUNC1 (gchar *, drct_pl_get_title, gint, entry) 00068 AUD_FUNC1 (gint, drct_pl_get_time, gint, entry) 00069 00070 AUD_FUNC2 (void, drct_pl_add, const gchar *, filename, gint, at) 00071 AUD_FUNC2 (void, drct_pl_add_list, GList *, list, gint, at) 00072 AUD_FUNC1 (void, drct_pl_open, const gchar *, filename) 00073 AUD_FUNC1 (void, drct_pl_open_list, GList *, list) 00074 AUD_FUNC1 (void, drct_pl_open_temp, const gchar *, filename) 00075 AUD_FUNC1 (void, drct_pl_open_temp_list, GList *, list) 00076 00077 AUD_FUNC1 (void, drct_pl_delete, gint, entry) 00078 AUD_FUNC0 (void, drct_pl_delete_selected) 00079 AUD_FUNC0 (void, drct_pl_clear) 00080 00081 /* --- PLAYLIST QUEUE CONTROL --- */ 00082 00083 AUD_FUNC0 (gint, drct_pq_get_length) 00084 AUD_FUNC1 (gint, drct_pq_get_entry, gint, queue_position) 00085 AUD_FUNC1 (gboolean, drct_pq_is_queued, gint, entry) 00086 AUD_FUNC1 (gint, drct_pq_get_queue_position, gint, entry) 00087 AUD_FUNC1 (void, drct_pq_add, gint, entry) 00088 AUD_FUNC1 (void, drct_pq_remove, gint, entry) 00089 AUD_FUNC0 (void, drct_pq_clear) 00090 00091 /* New in 2.5-alpha2 */ 00092 AUD_FUNC0 (gboolean, drct_get_ready)