Changeset 1107:23428f213673 in roaraudio for plugins/xmms


Ignore:
Timestamp:
01/11/09 05:47:38 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use all.h, enabled use of roar_configure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/xmms/roar.c

    r1106 r1107  
    2323 */ 
    2424 
    25 #include <roaraudio.h> 
    26  
    27 //#include "xmms/i18n.h" 
    28 #include <gtk/gtk.h> 
    29 #include <stdio.h> 
    30 #include <string.h> 
    31  
    32 #include "xmms/plugin.h" 
    33 #include "xmms/xmmsctrl.h" 
    34 #include "xmms/dirbrowser.h" 
    35 #include "xmms/configfile.h" 
    36 #include "xmms/util.h" 
    37  
    38 #define _(x) (x) 
    39  
    40 gint ctrlsocket_get_session_id(void); 
    41  
    42 void roar_init(void); 
    43 void roar_about(void); 
    44 void roar_configure(void); 
    45  
    46 void roar_get_volume(int *l, int *r); 
    47 void roar_set_volume(int l, int r); 
    48 void roar_mixer_init(void); 
    49 void roar_mixer_init_vol(int l, int r); 
    50  
    51 int roar_playing(void); 
    52 int roar_free(void); 
    53 void roar_write(void *ptr, int length); 
    54 void roar_close(void); 
    55 void roar_flush(int time); 
    56 void roar_pause(short p); 
    57 int roar_open(AFormat fmt, int rate, int nch); 
    58 int roar_get_output_time(void); 
    59 int roar_get_written_time(void); 
    60  
    61 int roar_update_metadata(void); 
    62 int roar_chk_metadata(void); 
     25#include "all.h" 
    6326 
    6427OutputPlugin roar_op = { 
     
    6831        roar_init, 
    6932        roar_about, 
    70         NULL, //roar_configure, 
     33        roar_configure, 
    7134        roar_get_volume, 
    7235        roar_set_volume, 
     
    8245}; 
    8346 
    84 #define STATE_CONNECTED   1 
    85 #define STATE_PLAYING     2 
    86 #define STATE_NORECONNECT 4 
    87  
    88 struct xmms_roar_out { 
    89  int                 state; 
    90  char              * server; 
    91  struct roar_connection con; 
    92  struct roar_stream     stream; 
    93  int                 data_fh; 
    94  long unsigned int   written; 
    95  long unsigned int   bps; 
    96  int                 session; 
    97  int                 pause; 
    98  struct { 
    99   int                server_type; 
    100   int                port; 
    101   int              * proxy_type; 
    102   char             * proxy; 
    103   char             * player_name; 
    104  } cfg; 
    105 } g_inst; 
    106  
    10747OutputPlugin *get_oplugin_info(void) { 
    10848 return &roar_op; 
Note: See TracChangeset for help on using the changeset viewer.