Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Functions | Variables
audctrl.c File Reference
#include <stdlib.h>
#include <glib.h>
#include <string.h>
#include <dbus/dbus-glib.h>
#include "audacious/dbus.h"
#include "audacious/dbus-client-bindings.h"
#include "audctrl.h"

Go to the source code of this file.

Functions

EXPORT void audacious_remote_playlist (DBusGProxy *proxy, gchar **list, gint num, gboolean enqueue)
 Sends a list of URIs to Audacious, either replacing current playlist or enqueuing them. More...
 
EXPORT gchar * audacious_remote_get_version (DBusGProxy *proxy)
 Queries Audacious for its version identifier. More...
 
EXPORT void audacious_remote_playlist_add (DBusGProxy *proxy, GList *list)
 Sends a list of URIs to Audacious to add to the playlist. More...
 
EXPORT void audacious_remote_playlist_open_list (DBusGProxy *proxy, GList *list)
 Sends a list of URIs for Audacious to open. More...
 
EXPORT void audacious_remote_playlist_open_list_to_temp (DBusGProxy *proxy, GList *list)
 Sends a list of URIs for Audacious to open in a temporary playlist. More...
 
EXPORT void audacious_remote_playlist_delete (DBusGProxy *proxy, guint pos)
 Deletes a playlist entry from current playlist in given position. More...
 
EXPORT void audacious_remote_play (DBusGProxy *proxy)
 Requests audacious to begin playback. More...
 
EXPORT void audacious_remote_pause (DBusGProxy *proxy)
 Tells audacious to pause. More...
 
EXPORT void audacious_remote_stop (DBusGProxy *proxy)
 Tells audacious to stop. More...
 
EXPORT gboolean audacious_remote_is_playing (DBusGProxy *proxy)
 Queries audacious about whether it is playing or not. More...
 
EXPORT gboolean audacious_remote_is_paused (DBusGProxy *proxy)
 audacious_remote_is_paused: More...
 
EXPORT gint audacious_remote_get_playlist_pos (DBusGProxy *proxy)
 audacious_remote_get_playlist_pos: More...
 
EXPORT void audacious_remote_set_playlist_pos (DBusGProxy *proxy, guint pos)
 audacious_remote_set_playlist_pos: More...
 
EXPORT gint audacious_remote_get_playlist_length (DBusGProxy *proxy)
 audacious_remote_get_playlist_length: More...
 
EXPORT void audacious_remote_playlist_clear (DBusGProxy *proxy)
 audacious_remote_playlist_clear: More...
 
EXPORT gint audacious_remote_get_output_time (DBusGProxy *proxy)
 audacious_remote_get_output_time: More...
 
EXPORT void audacious_remote_jump_to_time (DBusGProxy *proxy, guint pos)
 audacious_remote_jump_to_time: More...
 
EXPORT void audacious_remote_get_volume (DBusGProxy *proxy, gint *vl, gint *vr)
 Queries audacious for the current volume settings. More...
 
EXPORT gint audacious_remote_get_main_volume (DBusGProxy *proxy)
 Queries audacious about the current volume. More...
 
EXPORT gint audacious_remote_get_balance (DBusGProxy *proxy)
 Queries audacious about the current balance. More...
 
EXPORT void audacious_remote_set_volume (DBusGProxy *proxy, gint vl, gint vr)
 Sets the volume for the left and right channels in Audacious. More...
 
EXPORT void audacious_remote_set_main_volume (DBusGProxy *proxy, gint v)
 Sets the volume in Audacious. More...
 
EXPORT void audacious_remote_set_balance (DBusGProxy *proxy, gint b)
 Sets the balance in Audacious. More...
 
EXPORT gchar * audacious_remote_get_playlist_file (DBusGProxy *proxy, guint pos)
 Queries Audacious about a playlist entry's file. More...
 
EXPORT gchar * audacious_remote_get_playlist_title (DBusGProxy *proxy, guint pos)
 Queries Audacious about a playlist entry's title. More...
 
EXPORT gint audacious_remote_get_playlist_time (DBusGProxy *proxy, guint pos)
 Queries Audacious about a playlist entry's length. More...
 
EXPORT void audacious_remote_get_info (DBusGProxy *proxy, gint *rate, gint *freq, gint *nch)
 Queries Audacious about the current audio format. More...
 
EXPORT void audacious_remote_main_win_toggle (DBusGProxy *proxy, gboolean show)
 Toggles the main window's visibility. More...
 
EXPORT gboolean audacious_remote_is_main_win (DBusGProxy *proxy)
 Queries Audacious about the main window's visibility. More...
 
EXPORT void audacious_remote_show_prefs_box (DBusGProxy *proxy)
 Tells audacious to show the preferences pane. More...
 
EXPORT void audacious_remote_toggle_prefs_box (DBusGProxy *proxy, gboolean show)
 Tells audacious to show/hide the preferences pane. More...
 
EXPORT void audacious_remote_show_about_box (DBusGProxy *proxy)
 Tells audacious to show the about box. More...
 
EXPORT void audacious_remote_toggle_about_box (DBusGProxy *proxy, gboolean show)
 Tells audacious to show/hide the about box. More...
 
EXPORT void audacious_remote_toggle_aot (DBusGProxy *proxy, gboolean ontop)
 Tells audacious to set the always-on-top feature. More...
 
EXPORT void audacious_remote_eject (DBusGProxy *proxy)
 Tells audacious to display the open files pane. More...
 
EXPORT void audacious_remote_playlist_prev (DBusGProxy *proxy)
 audacious_remote_playlist_prev: More...
 
EXPORT void audacious_remote_playlist_next (DBusGProxy *proxy)
 Tells audacious to move forward in the playlist. More...
 
EXPORT void audacious_remote_playlist_add_url_string (DBusGProxy *proxy, gchar *string)
 Tells audacious to add an URI to the playlist. More...
 
EXPORT gboolean audacious_remote_is_running (DBusGProxy *proxy)
 Check if an Audacious instance is running. More...
 
EXPORT void audacious_remote_toggle_repeat (DBusGProxy *proxy)
 Tells audacious to toggle the repeat feature. More...
 
EXPORT void audacious_remote_toggle_shuffle (DBusGProxy *proxy)
 Tells audacious to toggle the shuffle feature. More...
 
EXPORT void audacious_remote_toggle_stop_after (DBusGProxy *proxy)
 
EXPORT gboolean audacious_remote_is_repeat (DBusGProxy *proxy)
 Queries audacious about whether or not the repeat feature is active. More...
 
EXPORT gboolean audacious_remote_is_shuffle (DBusGProxy *proxy)
 Queries audacious about whether or not the shuffle feature is active. More...
 
EXPORT gboolean audacious_remote_is_stop_after (DBusGProxy *proxy)
 
EXPORT void audacious_remote_get_eq (DBusGProxy *proxy, gdouble *preamp, GArray **bands)
 Queries audacious about the equalizer settings. More...
 
EXPORT gdouble audacious_remote_get_eq_preamp (DBusGProxy *proxy)
 Queries audacious about the equalizer preamp's setting. More...
 
EXPORT gdouble audacious_remote_get_eq_band (DBusGProxy *proxy, gint band)
 Queries audacious about an equalizer band's value. More...
 
EXPORT void audacious_remote_set_eq (DBusGProxy *proxy, gdouble preamp, GArray *bands)
 Tells audacious to set the equalizer up using the provided values. More...
 
EXPORT void audacious_remote_set_eq_preamp (DBusGProxy *proxy, gdouble preamp)
 Tells audacious to set the equalizer's preamp setting. More...
 
EXPORT void audacious_remote_set_eq_band (DBusGProxy *proxy, gint band, gdouble value)
 Tells audacious to set an equalizer band's setting. More...
 
EXPORT void audacious_remote_quit (DBusGProxy *proxy)
 Requests audacious to quit. More...
 
EXPORT void audacious_remote_play_pause (DBusGProxy *proxy)
 Tells audacious to toggle between play and pause. More...
 
EXPORT void audacious_remote_playlist_ins_url_string (DBusGProxy *proxy, gchar *string, guint pos)
 Tells audacious to add an URI to the playlist at a specific position. More...
 
EXPORT void audacious_remote_playqueue_add (DBusGProxy *proxy, guint pos)
 Tells audacious to add a playlist entry to the playqueue. More...
 
EXPORT void audacious_remote_playqueue_remove (DBusGProxy *proxy, guint pos)
 Tells audacious to remove a playlist entry from the playqueue. More...
 
EXPORT gint audacious_remote_get_playqueue_length (DBusGProxy *proxy)
 Queries audacious about the playqueue's length. More...
 
EXPORT void audacious_remote_toggle_advance (DBusGProxy *proxy)
 Tells audacious to toggle the no-playlist-advance feature. More...
 
EXPORT gboolean audacious_remote_is_advance (DBusGProxy *proxy)
 audacious_remote_is_advance: More...
 
EXPORT void audacious_remote_show_jtf_box (DBusGProxy *proxy)
 Tells audacious to show the Jump-to-File pane. More...
 
EXPORT void audacious_remote_toggle_jtf_box (DBusGProxy *proxy, gboolean show)
 Tells audacious to show/hide the Jump-to-File pane. More...
 
EXPORT void audacious_remote_toggle_filebrowser (DBusGProxy *proxy, gboolean show)
 Tells audacious to show the filebrowser dialog. More...
 
EXPORT void audacious_remote_playqueue_clear (DBusGProxy *proxy)
 audacious_remote_playqueue_clear: More...
 
EXPORT gboolean audacious_remote_playqueue_is_queued (DBusGProxy *proxy, guint pos)
 Queries audacious about whether or not a playlist entry is in the playqueue. More...
 
EXPORT gint audacious_remote_get_playqueue_queue_position (DBusGProxy *proxy, guint pos)
 Queries audacious about what the playqueue position is for a playlist entry. More...
 
EXPORT gint audacious_remote_get_playqueue_list_position (DBusGProxy *proxy, guint qpos)
 Queries audacious what is the playlist position for given a playqueue entry index. More...
 
EXPORT void audacious_remote_playlist_enqueue_to_temp (DBusGProxy *proxy, gchar *string)
 Tells audacious to add an URI to a temporary playlist. More...
 
EXPORT gchar * audacious_get_tuple_field_data (DBusGProxy *proxy, gchar *field, guint pos)
 Queries Audacious about a playlist entry's tuple information. More...
 
EXPORT void audacious_remote_eq_activate (DBusGProxy *proxy, gboolean active)
 Toggles the equalizer. More...
 
EXPORT gchar ** audacious_remote_get_tuple_fields (DBusGProxy *proxy)
 Returns a array of strings with available tuple field names. More...
 
EXPORT gchar * audacious_remote_playlist_get_active_name (DBusGProxy *proxy)
 Returns the active playlist name. More...
 

Variables

static GError * error = NULL
 

Function Documentation

EXPORT gchar* audacious_get_tuple_field_data ( DBusGProxy *  proxy,
gchar *  field,
guint  pos 
)

Queries Audacious about a playlist entry's tuple information.

Parameters
[in]proxyDBus proxy for audacious
[in]fieldThe name of the tuple field to retrieve.
[in]posThe playlist position to query for.
Returns
The requested field's data for the entry in the playlist at pos position.

Definition at line 921 of file audctrl.c.

EXPORT void audacious_remote_eject ( DBusGProxy *  proxy)

Tells audacious to display the open files pane.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 528 of file audctrl.c.

EXPORT void audacious_remote_eq_activate ( DBusGProxy *  proxy,
gboolean  active 
)

Toggles the equalizer.

Parameters
[in]proxyDBus proxy for audacious
[in]activeWhether or not to activate the equalizer.

Definition at line 966 of file audctrl.c.

EXPORT gint audacious_remote_get_balance ( DBusGProxy *  proxy)

Queries audacious about the current balance.

Parameters
[in]proxyDBus proxy for audacious
Returns
The current balance.

Definition at line 323 of file audctrl.c.

Referenced by audacious_remote_set_main_volume().

EXPORT void audacious_remote_get_eq ( DBusGProxy *  proxy,
gdouble *  preamp,
GArray **  bands 
)

Queries audacious about the equalizer settings.

Parameters
[in]proxyDBus proxy for audacious
[out]preampPointer to value for preamp setting.
[out]bandsPointer to array of band settings.

Definition at line 651 of file audctrl.c.

EXPORT gdouble audacious_remote_get_eq_band ( DBusGProxy *  proxy,
gint  band 
)

Queries audacious about an equalizer band's value.

Parameters
[in]proxyDBus proxy for audacious
[in]bandWhich band to lookup the value for.
Returns
The equalizer band's value.

Definition at line 678 of file audctrl.c.

EXPORT gdouble audacious_remote_get_eq_preamp ( DBusGProxy *  proxy)

Queries audacious about the equalizer preamp's setting.

Parameters
[in]proxyDBus proxy for audacious
Returns
The equalizer preamp's setting.

Definition at line 662 of file audctrl.c.

EXPORT void audacious_remote_get_info ( DBusGProxy *  proxy,
gint *  rate,
gint *  freq,
gint *  nch 
)

Queries Audacious about the current audio format.

Parameters
[in]proxyDBus proxy for audacious
[out]ratePointer to an integer containing the bitrate.
[out]freqPointer to an integer containing the frequency.
[out]nchPointer to an integer containing the number of channels.

Definition at line 442 of file audctrl.c.

EXPORT gint audacious_remote_get_main_volume ( DBusGProxy *  proxy)

Queries audacious about the current volume.

Parameters
[in]proxyDBus proxy for audacious
Returns
The current volume (0-100).

Definition at line 309 of file audctrl.c.

Referenced by audacious_remote_set_balance().

EXPORT gint audacious_remote_get_output_time ( DBusGProxy *  proxy)

audacious_remote_get_output_time:

Parameters
[in]proxyDBus proxy for audacious

Queries audacious about the current output position.

Returns
The current output position.

Definition at line 272 of file audctrl.c.

EXPORT gchar* audacious_remote_get_playlist_file ( DBusGProxy *  proxy,
guint  pos 
)

Queries Audacious about a playlist entry's file.

Parameters
[in]proxyDBus proxy for audacious
[in]posThe playlist position to query for.
Returns
A path to the file in the playlist at pos position.

Definition at line 399 of file audctrl.c.

EXPORT gint audacious_remote_get_playlist_length ( DBusGProxy *  proxy)

audacious_remote_get_playlist_length:

Parameters
[in]proxyDBus proxy for audacious

Queries audacious about the current playlist length.

Returns
The amount of entries in the playlist.

Definition at line 246 of file audctrl.c.

EXPORT gint audacious_remote_get_playlist_pos ( DBusGProxy *  proxy)

audacious_remote_get_playlist_pos:

Parameters
[in]proxyDBus proxy for audacious

Queries audacious about the current playlist position.

Returns
The current playlist position.

Definition at line 219 of file audctrl.c.

EXPORT gint audacious_remote_get_playlist_time ( DBusGProxy *  proxy,
guint  pos 
)

Queries Audacious about a playlist entry's length.

Parameters
[in]proxyDBus proxy for audacious
[in]posThe playlist position to query for.
Returns
The length of the entry in the playlist at pos position.

Definition at line 427 of file audctrl.c.

EXPORT gchar* audacious_remote_get_playlist_title ( DBusGProxy *  proxy,
guint  pos 
)

Queries Audacious about a playlist entry's title.

Parameters
[in]proxyDBus proxy for audacious
[in]posThe playlist position to query for.
Returns
The title for the entry in the playlist at pos position.

Definition at line 413 of file audctrl.c.

EXPORT gint audacious_remote_get_playqueue_length ( DBusGProxy *  proxy)

Queries audacious about the playqueue's length.

Bug:
This returns the length of the playlist, NOT the length of the playqueue.
Parameters
[in]proxyDBus proxy for audacious
Returns
The number of entries in the playqueue.

Definition at line 784 of file audctrl.c.

EXPORT gint audacious_remote_get_playqueue_list_position ( DBusGProxy *  proxy,
guint  qpos 
)

Queries audacious what is the playlist position for given a playqueue entry index.

Parameters
[in]proxyDBus proxy for audacious
[in]qposPosition to check queue for.
Returns
the playlist position for a playqueue entry

Definition at line 894 of file audctrl.c.

EXPORT gint audacious_remote_get_playqueue_queue_position ( DBusGProxy *  proxy,
guint  pos 
)

Queries audacious about what the playqueue position is for a playlist entry.

Parameters
[in]proxyDBus proxy for audacious
[in]posPosition to check queue for.
Returns
the playqueue position for a playlist entry

Definition at line 879 of file audctrl.c.

EXPORT gchar** audacious_remote_get_tuple_fields ( DBusGProxy *  proxy)

Returns a array of strings with available tuple field names.

Parameters
[in]proxyDBus proxy for audacious
Returns
Array of strings.

Definition at line 977 of file audctrl.c.

EXPORT gchar* audacious_remote_get_version ( DBusGProxy *  proxy)

Queries Audacious for its version identifier.

Parameters
[in]proxyDBus proxy for audacious
Returns
String describing the version of Audacious.

Definition at line 72 of file audctrl.c.

EXPORT void audacious_remote_get_volume ( DBusGProxy *  proxy,
gint *  vl,
gint *  vr 
)

Queries audacious for the current volume settings.

Parameters
[in]proxyDBus proxy for audacious
[out]vlPointer to integer containing the left channel's volume (0-100).
[out]vrPointer to integer containing the right channel's volume (0-100).

Definition at line 298 of file audctrl.c.

Referenced by audacious_remote_get_main_volume().

EXPORT gboolean audacious_remote_is_advance ( DBusGProxy *  proxy)

audacious_remote_is_advance:

Parameters
[in]proxyDBus proxy for audacious

Queries audacious about whether or not the no-playlist-advance feature is active.

Returns
TRUE if yes, otherwise FALSE.

Definition at line 809 of file audctrl.c.

EXPORT gboolean audacious_remote_is_main_win ( DBusGProxy *  proxy)

Queries Audacious about the main window's visibility.

Parameters
[in]proxyDBus proxy for audacious
Returns
TRUE if visible, FALSE otherwise.

Definition at line 465 of file audctrl.c.

EXPORT gboolean audacious_remote_is_paused ( DBusGProxy *  proxy)

audacious_remote_is_paused:

Parameters
[in]proxyDBus proxy for audacious

Queries audacious about whether it is paused or not.

Returns
TRUE if playing, FALSE otherwise.

Definition at line 204 of file audctrl.c.

EXPORT gboolean audacious_remote_is_playing ( DBusGProxy *  proxy)

Queries audacious about whether it is playing or not.

Parameters
[in]proxyDBus proxy for audacious
Returns
TRUE if playing, FALSE otherwise.

Definition at line 189 of file audctrl.c.

EXPORT gboolean audacious_remote_is_repeat ( DBusGProxy *  proxy)

Queries audacious about whether or not the repeat feature is active.

Parameters
[in]proxyDBus proxy for audacious
Returns
TRUE if yes, otherwise FALSE.

Definition at line 616 of file audctrl.c.

EXPORT gboolean audacious_remote_is_running ( DBusGProxy *  proxy)

Check if an Audacious instance is running.

Parameters
[in]proxyDBus proxy for audacious
Returns
TRUE if yes, otherwise FALSE.

Definition at line 572 of file audctrl.c.

Referenced by do_remote().

EXPORT gboolean audacious_remote_is_shuffle ( DBusGProxy *  proxy)

Queries audacious about whether or not the shuffle feature is active.

Parameters
[in]proxyDBus proxy for audacious
Returns
TRUE if yes, otherwise FALSE.

Definition at line 629 of file audctrl.c.

EXPORT gboolean audacious_remote_is_stop_after ( DBusGProxy *  proxy)

Definition at line 636 of file audctrl.c.

EXPORT void audacious_remote_jump_to_time ( DBusGProxy *  proxy,
guint  pos 
)

audacious_remote_jump_to_time:

Parameters
[in]proxyDBus proxy for audacious
[in]posThe time (in milliseconds) to jump to.

Tells audacious to seek to a new time position.

Definition at line 286 of file audctrl.c.

EXPORT void audacious_remote_main_win_toggle ( DBusGProxy *  proxy,
gboolean  show 
)

Toggles the main window's visibility.

Parameters
[in]proxyDBus proxy for audacious
[in]showWhether or not to show the main window.

Definition at line 454 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_pause ( DBusGProxy *  proxy)

Tells audacious to pause.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 168 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_play ( DBusGProxy *  proxy)

Requests audacious to begin playback.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 158 of file audctrl.c.

Referenced by audacious_remote_playlist(), and do_remote().

EXPORT void audacious_remote_play_pause ( DBusGProxy *  proxy)

Tells audacious to toggle between play and pause.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 737 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_playlist ( DBusGProxy *  proxy,
gchar **  list,
gint  num,
gboolean  enqueue 
)

Sends a list of URIs to Audacious, either replacing current playlist or enqueuing them.

Parameters
[in]proxyDBus proxy for Audacious
[in]listAn array of URI strings to add.
[in]numNumber of URIs to add.
[in]enqueueWhether or not the new playlist should be added on, or replace the current playlist.

Definition at line 41 of file audctrl.c.

EXPORT void audacious_remote_playlist_add ( DBusGProxy *  proxy,
GList *  list 
)

Sends a list of URIs to Audacious to add to the playlist.

Parameters
[in]proxyDBus proxy for audacious
[in]listA GList of URIs to add to the playlist.

Definition at line 86 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_playlist_add_url_string ( DBusGProxy *  proxy,
gchar *  string 
)

Tells audacious to add an URI to the playlist.

Parameters
[in]proxyDBus proxy for audacious
[in]stringThe URI to add.

Definition at line 560 of file audctrl.c.

EXPORT void audacious_remote_playlist_clear ( DBusGProxy *  proxy)

audacious_remote_playlist_clear:

Parameters
[in]proxyDBus proxy for audacious

Clears the playlist.

Definition at line 259 of file audctrl.c.

Referenced by audacious_remote_playlist().

EXPORT void audacious_remote_playlist_delete ( DBusGProxy *  proxy,
guint  pos 
)

Deletes a playlist entry from current playlist in given position.

Parameters
[in]proxyDBus proxy for audacious
[in]posThe playlist position to delete.

Definition at line 148 of file audctrl.c.

EXPORT void audacious_remote_playlist_enqueue_to_temp ( DBusGProxy *  proxy,
gchar *  string 
)

Tells audacious to add an URI to a temporary playlist.

Parameters
[in]proxyDBus proxy for audacious
[in]stringThe URI to enqueue to a temporary playlist.

Definition at line 907 of file audctrl.c.

EXPORT gchar* audacious_remote_playlist_get_active_name ( DBusGProxy *  proxy)

Returns the active playlist name.

Definition at line 987 of file audctrl.c.

EXPORT void audacious_remote_playlist_ins_url_string ( DBusGProxy *  proxy,
gchar *  string,
guint  pos 
)

Tells audacious to add an URI to the playlist at a specific position.

Parameters
[in]proxyDBus proxy for audacious
[in]stringThe URI to add.
[in]posThe position to add the URI at.

Definition at line 748 of file audctrl.c.

EXPORT void audacious_remote_playlist_next ( DBusGProxy *  proxy)

Tells audacious to move forward in the playlist.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 549 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_playlist_open_list ( DBusGProxy *  proxy,
GList *  list 
)

Sends a list of URIs for Audacious to open.

New in Audacious 2.3.

Parameters
[in]proxyDBus proxy for audacious
[in]listA GList of URIs to open

Definition at line 106 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_playlist_open_list_to_temp ( DBusGProxy *  proxy,
GList *  list 
)

Sends a list of URIs for Audacious to open in a temporary playlist.

New in Audacious 2.3.

Parameters
[in]proxyDBus proxy for audacious
[in]listA GList of URIs to open

Definition at line 127 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_playlist_prev ( DBusGProxy *  proxy)

audacious_remote_playlist_prev:

Parameters
[in]proxyDBus proxy for audacious

Tells audacious to move backwards in the playlist.

Definition at line 539 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_playqueue_add ( DBusGProxy *  proxy,
guint  pos 
)

Tells audacious to add a playlist entry to the playqueue.

Parameters
[in]proxyDBus proxy for audacious
[in]posThe playlist position to add to the queue.

Definition at line 760 of file audctrl.c.

EXPORT void audacious_remote_playqueue_clear ( DBusGProxy *  proxy)

audacious_remote_playqueue_clear:

Parameters
[in]proxyDBus proxy for audacious

Tells audacious to clear the playqueue.

Definition at line 853 of file audctrl.c.

EXPORT gboolean audacious_remote_playqueue_is_queued ( DBusGProxy *  proxy,
guint  pos 
)

Queries audacious about whether or not a playlist entry is in the playqueue.

Parameters
[in]proxyDBus proxy for audacious
[in]posPosition to check queue for.
Returns
TRUE if yes, FALSE otherwise.

Definition at line 865 of file audctrl.c.

EXPORT void audacious_remote_playqueue_remove ( DBusGProxy *  proxy,
guint  pos 
)

Tells audacious to remove a playlist entry from the playqueue.

Parameters
[in]proxyDBus proxy for audacious
[in]posThe playlist position to remove from the queue.

Definition at line 771 of file audctrl.c.

EXPORT void audacious_remote_quit ( DBusGProxy *  proxy)

Requests audacious to quit.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 727 of file audctrl.c.

EXPORT void audacious_remote_set_balance ( DBusGProxy *  proxy,
gint  b 
)

Sets the balance in Audacious.

Parameters
[in]proxyDBus proxy for audacious
[in]bThe balance to set.

Definition at line 371 of file audctrl.c.

EXPORT void audacious_remote_set_eq ( DBusGProxy *  proxy,
gdouble  preamp,
GArray *  bands 
)

Tells audacious to set the equalizer up using the provided values.

Parameters
[in]proxyDBus proxy for audacious
[in]preampValue for preamp setting.
[in]bandsArray of band settings.

Definition at line 694 of file audctrl.c.

EXPORT void audacious_remote_set_eq_band ( DBusGProxy *  proxy,
gint  band,
gdouble  value 
)

Tells audacious to set an equalizer band's setting.

Parameters
[in]proxyDBus proxy for audacious
[in]bandThe band to set the value for.
[in]valueThe value to set that band to.

Definition at line 717 of file audctrl.c.

EXPORT void audacious_remote_set_eq_preamp ( DBusGProxy *  proxy,
gdouble  preamp 
)

Tells audacious to set the equalizer's preamp setting.

Parameters
[in]proxyDBus proxy for audacious
[in]preampValue for preamp setting.

Definition at line 705 of file audctrl.c.

EXPORT void audacious_remote_set_main_volume ( DBusGProxy *  proxy,
gint  v 
)

Sets the volume in Audacious.

Parameters
[in]proxyDBus proxy for audacious
[in]vThe volume to set (0-100).

Definition at line 349 of file audctrl.c.

EXPORT void audacious_remote_set_playlist_pos ( DBusGProxy *  proxy,
guint  pos 
)

audacious_remote_set_playlist_pos:

Parameters
[in]proxyDBus proxy for audacious
[in]posPlaylist position to jump to.

Tells audacious to jump to a different playlist position.

Definition at line 233 of file audctrl.c.

EXPORT void audacious_remote_set_volume ( DBusGProxy *  proxy,
gint  vl,
gint  vr 
)

Sets the volume for the left and right channels in Audacious.

Parameters
[in]proxyDBus proxy for audacious
[in]vlThe volume for the left channel (0-100).
[in]vrThe volume for the right channel (0-100).

Definition at line 337 of file audctrl.c.

Referenced by audacious_remote_set_balance(), and audacious_remote_set_main_volume().

EXPORT void audacious_remote_show_about_box ( DBusGProxy *  proxy)

Tells audacious to show the about box.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 497 of file audctrl.c.

EXPORT void audacious_remote_show_jtf_box ( DBusGProxy *  proxy)

Tells audacious to show the Jump-to-File pane.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 821 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_show_prefs_box ( DBusGProxy *  proxy)

Tells audacious to show the preferences pane.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 477 of file audctrl.c.

EXPORT void audacious_remote_stop ( DBusGProxy *  proxy)

Tells audacious to stop.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 178 of file audctrl.c.

Referenced by do_remote().

EXPORT void audacious_remote_toggle_about_box ( DBusGProxy *  proxy,
gboolean  show 
)

Tells audacious to show/hide the about box.

Parameters
[in]proxyDBus proxy for audacious
[in]showshows/hides

Definition at line 507 of file audctrl.c.

Referenced by audacious_remote_show_about_box().

EXPORT void audacious_remote_toggle_advance ( DBusGProxy *  proxy)

Tells audacious to toggle the no-playlist-advance feature.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 796 of file audctrl.c.

EXPORT void audacious_remote_toggle_aot ( DBusGProxy *  proxy,
gboolean  ontop 
)

Tells audacious to set the always-on-top feature.

Parameters
[in]proxyDBus proxy for audacious
[in]ontopBoolean value whether or not Audacious should be always-on-top.

Definition at line 518 of file audctrl.c.

EXPORT void audacious_remote_toggle_filebrowser ( DBusGProxy *  proxy,
gboolean  show 
)

Tells audacious to show the filebrowser dialog.

Parameters
[in]proxyDBus proxy for audacious
[in]showshows/hides filebrowser

Definition at line 842 of file audctrl.c.

EXPORT void audacious_remote_toggle_jtf_box ( DBusGProxy *  proxy,
gboolean  show 
)

Tells audacious to show/hide the Jump-to-File pane.

Parameters
[in]proxyDBus proxy for audacious
[in]showshows/hides jtf pane

Definition at line 831 of file audctrl.c.

Referenced by audacious_remote_show_jtf_box().

EXPORT void audacious_remote_toggle_prefs_box ( DBusGProxy *  proxy,
gboolean  show 
)

Tells audacious to show/hide the preferences pane.

Parameters
[in]proxyDBus proxy for audacious
[in]showshows/hides

Definition at line 487 of file audctrl.c.

Referenced by audacious_remote_show_prefs_box().

EXPORT void audacious_remote_toggle_repeat ( DBusGProxy *  proxy)

Tells audacious to toggle the repeat feature.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 589 of file audctrl.c.

EXPORT void audacious_remote_toggle_shuffle ( DBusGProxy *  proxy)

Tells audacious to toggle the shuffle feature.

Parameters
[in]proxyDBus proxy for audacious

Definition at line 599 of file audctrl.c.

EXPORT void audacious_remote_toggle_stop_after ( DBusGProxy *  proxy)

Definition at line 604 of file audctrl.c.

Variable Documentation

GError* error = NULL
static

Definition at line 30 of file audctrl.c.

Referenced by audacious_get_dbus_proxy(), audacious_get_tuple_field_data(), audacious_rc_init(), audacious_remote_eject(), audacious_remote_eq_activate(), audacious_remote_get_balance(), audacious_remote_get_eq(), audacious_remote_get_eq_band(), audacious_remote_get_eq_preamp(), audacious_remote_get_info(), audacious_remote_get_output_time(), audacious_remote_get_playlist_file(), audacious_remote_get_playlist_length(), audacious_remote_get_playlist_pos(), audacious_remote_get_playlist_time(), audacious_remote_get_playlist_title(), audacious_remote_get_playqueue_length(), audacious_remote_get_playqueue_list_position(), audacious_remote_get_playqueue_queue_position(), audacious_remote_get_tuple_fields(), audacious_remote_get_version(), audacious_remote_get_volume(), audacious_remote_is_advance(), audacious_remote_is_main_win(), audacious_remote_is_paused(), audacious_remote_is_playing(), audacious_remote_is_repeat(), audacious_remote_is_running(), audacious_remote_is_shuffle(), audacious_remote_is_stop_after(), audacious_remote_jump_to_time(), audacious_remote_main_win_toggle(), audacious_remote_pause(), audacious_remote_play(), audacious_remote_play_pause(), audacious_remote_playlist(), audacious_remote_playlist_add(), audacious_remote_playlist_add_url_string(), audacious_remote_playlist_clear(), audacious_remote_playlist_delete(), audacious_remote_playlist_enqueue_to_temp(), audacious_remote_playlist_get_active_name(), audacious_remote_playlist_ins_url_string(), audacious_remote_playlist_next(), audacious_remote_playlist_open_list(), audacious_remote_playlist_open_list_to_temp(), audacious_remote_playlist_prev(), audacious_remote_playqueue_add(), audacious_remote_playqueue_clear(), audacious_remote_playqueue_is_queued(), audacious_remote_playqueue_remove(), audacious_remote_quit(), audacious_remote_set_eq(), audacious_remote_set_eq_band(), audacious_remote_set_eq_preamp(), audacious_remote_set_playlist_pos(), audacious_remote_set_volume(), audacious_remote_stop(), audacious_remote_toggle_about_box(), audacious_remote_toggle_advance(), audacious_remote_toggle_aot(), audacious_remote_toggle_filebrowser(), audacious_remote_toggle_jtf_box(), audacious_remote_toggle_prefs_box(), audacious_remote_toggle_repeat(), audacious_remote_toggle_shuffle(), audacious_remote_toggle_stop_after(), config_load(), config_save(), equalizer_read_aud_preset(), equalizer_read_presets(), equalizer_write_preset_file(), get_plugin(), import_winamp_eqf(), init_dbus(), org_atheme_audacious_add_async_callback(), org_atheme_audacious_add_list_async_callback(), org_atheme_audacious_add_url_async_callback(), org_atheme_audacious_advance_async_callback(), org_atheme_audacious_auto_advance_async_callback(), org_atheme_audacious_balance_async_callback(), org_atheme_audacious_clear_async_callback(), org_atheme_audacious_delete_async_callback(), org_atheme_audacious_eject_async_callback(), org_atheme_audacious_equalizer_activate_async_callback(), org_atheme_audacious_get_active_playlist_name_async_callback(), org_atheme_audacious_get_eq_async_callback(), org_atheme_audacious_get_eq_band_async_callback(), org_atheme_audacious_get_eq_preamp_async_callback(), org_atheme_audacious_get_info_async_callback(), org_atheme_audacious_get_playqueue_length_async_callback(), org_atheme_audacious_get_tuple_fields_async_callback(), org_atheme_audacious_info_async_callback(), org_atheme_audacious_jump_async_callback(), org_atheme_audacious_length_async_callback(), org_atheme_audacious_main_win_visible_async_callback(), org_atheme_audacious_open_list_async_callback(), org_atheme_audacious_open_list_to_temp_async_callback(), org_atheme_audacious_pause_async_callback(), org_atheme_audacious_paused_async_callback(), org_atheme_audacious_play_async_callback(), org_atheme_audacious_play_pause_async_callback(), org_atheme_audacious_playing_async_callback(), org_atheme_audacious_playlist_add_async_callback(), org_atheme_audacious_playlist_enqueue_to_temp_async_callback(), org_atheme_audacious_playlist_ins_url_string_async_callback(), org_atheme_audacious_playqueue_add_async_callback(), org_atheme_audacious_playqueue_clear_async_callback(), org_atheme_audacious_playqueue_is_queued_async_callback(), org_atheme_audacious_playqueue_remove_async_callback(), org_atheme_audacious_position_async_callback(), org_atheme_audacious_queue_get_list_pos_async_callback(), org_atheme_audacious_queue_get_queue_pos_async_callback(), org_atheme_audacious_quit_async_callback(), org_atheme_audacious_repeat_async_callback(), org_atheme_audacious_reverse_async_callback(), org_atheme_audacious_seek_async_callback(), org_atheme_audacious_set_eq_async_callback(), org_atheme_audacious_set_eq_band_async_callback(), org_atheme_audacious_set_eq_preamp_async_callback(), org_atheme_audacious_set_volume_async_callback(), org_atheme_audacious_show_about_box_async_callback(), org_atheme_audacious_show_filebrowser_async_callback(), org_atheme_audacious_show_jtf_box_async_callback(), org_atheme_audacious_show_main_win_async_callback(), org_atheme_audacious_show_prefs_box_async_callback(), org_atheme_audacious_shuffle_async_callback(), org_atheme_audacious_song_filename_async_callback(), org_atheme_audacious_song_frames_async_callback(), org_atheme_audacious_song_length_async_callback(), org_atheme_audacious_song_title_async_callback(), org_atheme_audacious_song_tuple_async_callback(), org_atheme_audacious_status_async_callback(), org_atheme_audacious_stop_after_async_callback(), org_atheme_audacious_stop_async_callback(), org_atheme_audacious_stopped_async_callback(), org_atheme_audacious_time_async_callback(), org_atheme_audacious_toggle_aot_async_callback(), org_atheme_audacious_toggle_auto_advance_async_callback(), org_atheme_audacious_toggle_repeat_async_callback(), org_atheme_audacious_toggle_shuffle_async_callback(), org_atheme_audacious_toggle_stop_after_async_callback(), org_atheme_audacious_version_async_callback(), org_atheme_audacious_volume_async_callback(), parse_options(), playback_thread(), save_playlists_real(), and save_preset_file().