Mercurial > audlegacy
comparison src/libaudclient/audctrl.c @ 3915:86c9abc83fbd
audacious remote functions:
- functions for equalizer manipulation have been implemented.
audtool:
- test suite for equalizer manipulation has been implemented.
| author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
|---|---|
| date | Wed, 07 Nov 2007 23:18:29 +0900 |
| parents | 2bb32f15569e |
| children | b5ee3a4a8e3b |
comparison
equal
deleted
inserted
replaced
| 3914:1a4add0eba07 | 3915:86c9abc83fbd |
|---|---|
| 365 * | 365 * |
| 366 * Return value: A path to the currently selected skin. | 366 * Return value: A path to the currently selected skin. |
| 367 **/ | 367 **/ |
| 368 gchar *audacious_remote_get_skin(DBusGProxy *proxy) { | 368 gchar *audacious_remote_get_skin(DBusGProxy *proxy) { |
| 369 gchar *skin = NULL; | 369 gchar *skin = NULL; |
| 370 org_atheme_audacious_get_skin (proxy, &skin, &error); // xxx | 370 org_atheme_audacious_get_skin (proxy, &skin, &error); |
| 371 g_clear_error(&error); | 371 g_clear_error(&error); |
| 372 return skin; | 372 return skin; |
| 373 } | 373 } |
| 374 | 374 |
| 375 /** | 375 /** |
| 686 * @preamp: Pointer to value for preamp setting. | 686 * @preamp: Pointer to value for preamp setting. |
| 687 * @bands: Pointer to array of band settings. | 687 * @bands: Pointer to array of band settings. |
| 688 * | 688 * |
| 689 * Queries audacious about the equalizer settings. | 689 * Queries audacious about the equalizer settings. |
| 690 **/ | 690 **/ |
| 691 void audacious_remote_get_eq(DBusGProxy *proxy, gfloat *preamp, | 691 void audacious_remote_get_eq(DBusGProxy *proxy, gdouble *preamp, GArray **bands) { |
| 692 gfloat **bands) { | 692 org_atheme_audacious_get_eq(proxy, preamp, bands, &error); |
| 693 //XXX | 693 g_clear_error(&error); |
| 694 } | 694 } |
| 695 | 695 |
| 696 /** | 696 /** |
| 697 * audacious_remote_get_eq_preamp: | 697 * audacious_remote_get_eq_preamp: |
| 698 * @proxy: DBus proxy for audacious | 698 * @proxy: DBus proxy for audacious |
| 699 * | 699 * |
| 700 * Queries audacious about the equalizer preamp's setting. | 700 * Queries audacious about the equalizer preamp's setting. |
| 701 * | 701 * |
| 702 * Return value: The equalizer preamp's setting. | 702 * Return value: The equalizer preamp's setting. |
| 703 **/ | 703 **/ |
| 704 gfloat audacious_remote_get_eq_preamp(DBusGProxy *proxy) { | 704 gdouble audacious_remote_get_eq_preamp(DBusGProxy *proxy) { |
| 705 //XXX | 705 gdouble preamp = 0.0; |
| 706 return 0.0; | 706 |
| 707 org_atheme_audacious_get_eq_preamp(proxy, &preamp, &error); | |
| 708 g_clear_error(&error); | |
| 709 | |
| 710 return preamp; | |
| 707 } | 711 } |
| 708 | 712 |
| 709 /** | 713 /** |
| 710 * audacious_remote_get_eq_band: | 714 * audacious_remote_get_eq_band: |
| 711 * @proxy: DBus proxy for audacious | 715 * @proxy: DBus proxy for audacious |
| 713 * | 717 * |
| 714 * Queries audacious about an equalizer band's value. | 718 * Queries audacious about an equalizer band's value. |
| 715 * | 719 * |
| 716 * Return value: The equalizer band's value. | 720 * Return value: The equalizer band's value. |
| 717 **/ | 721 **/ |
| 718 gfloat audacious_remote_get_eq_band(DBusGProxy *proxy, gint band) { | 722 gdouble audacious_remote_get_eq_band(DBusGProxy *proxy, gint band) { |
| 719 //XXX | 723 gdouble value = 0.0; |
| 720 return 0.0; | 724 |
| 725 org_atheme_audacious_get_eq_band(proxy, band, &value, &error); | |
| 726 g_clear_error(&error); | |
| 727 | |
| 728 return value; | |
| 721 } | 729 } |
| 722 | 730 |
| 723 /** | 731 /** |
| 724 * audacious_remote_set_eq: | 732 * audacious_remote_set_eq: |
| 725 * @proxy: DBus proxy for audacious | 733 * @proxy: DBus proxy for audacious |
| 726 * @preamp: Value for preamp setting. | 734 * @preamp: Value for preamp setting. |
| 727 * @bands: Array of band settings. | 735 * @bands: Array of band settings. |
| 728 * | 736 * |
| 729 * Tells audacious to set the equalizer up using the provided values. | 737 * Tells audacious to set the equalizer up using the provided values. |
| 730 **/ | 738 **/ |
| 731 void audacious_remote_set_eq(DBusGProxy *proxy, gfloat preamp, | 739 void audacious_remote_set_eq(DBusGProxy *proxy, gdouble preamp, GArray *bands) { |
| 732 gfloat *bands) { | 740 org_atheme_audacious_set_eq(proxy, preamp, bands, &error); |
| 733 //XXX | 741 g_clear_error(&error); |
| 734 } | 742 } |
| 735 | 743 |
| 736 /** | 744 /** |
| 737 * audacious_remote_set_eq_preamp: | 745 * audacious_remote_set_eq_preamp: |
| 738 * @proxy: DBus proxy for audacious | 746 * @proxy: DBus proxy for audacious |
| 739 * @preamp: Value for preamp setting. | 747 * @preamp: Value for preamp setting. |
| 740 * | 748 * |
| 741 * Tells audacious to set the equalizer's preamp setting. | 749 * Tells audacious to set the equalizer's preamp setting. |
| 742 **/ | 750 **/ |
| 743 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gfloat preamp) { | 751 void audacious_remote_set_eq_preamp(DBusGProxy *proxy, gdouble preamp) { |
| 744 //XXX | 752 org_atheme_audacious_set_eq_preamp(proxy, preamp, &error); |
| 753 g_clear_error(&error); | |
| 745 } | 754 } |
| 746 | 755 |
| 747 /** | 756 /** |
| 748 * audacious_remote_set_eq_band: | 757 * audacious_remote_set_eq_band: |
| 749 * @proxy: DBus proxy for audacious | 758 * @proxy: DBus proxy for audacious |
| 750 * @band: The band to set the value for. | 759 * @band: The band to set the value for. |
| 751 * @value: The value to set that band to. | 760 * @value: The value to set that band to. |
| 752 * | 761 * |
| 753 * Tells audacious to set an equalizer band's setting. | 762 * Tells audacious to set an equalizer band's setting. |
| 754 **/ | 763 **/ |
| 755 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band, | 764 void audacious_remote_set_eq_band(DBusGProxy *proxy, gint band, gdouble value) { |
| 756 gfloat value) { | 765 org_atheme_audacious_set_eq_band(proxy, band, value, &error); |
| 757 //XXX | 766 g_clear_error(&error); |
| 758 } | 767 } |
| 759 | 768 |
| 760 /** | 769 /** |
| 761 * audacious_remote_quit: | 770 * audacious_remote_quit: |
| 762 * @proxy: DBus proxy for audacious | 771 * @proxy: DBus proxy for audacious |
