Changeset 5624:ec1593cc8525 in roaraudio for include


Ignore:
Timestamp:
08/18/12 02:04:07 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Added support for RePlayGain? (RPG) control (See: #300)

Location:
include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/stream.h

    r5535 r5624  
    5757}; 
    5858 
     59struct roar_stream_rpg { 
     60 int        mode; 
     61 uint16_t   mul; 
     62 uint16_t   div; 
     63}; 
     64 
    5965int roar_stream_connect (struct roar_connection * con, struct roar_stream * s, int dir, int mixer) _LIBROAR_STREAM_STDATTRS; 
    6066 
     
    95101int roar_stream_set_role  (struct roar_connection * con, struct roar_stream * s, int role) _LIBROAR_STREAM_STDATTRS; 
    96102 
     103int roar_stream_get_rpg   (struct roar_connection * con, struct roar_stream * s, struct roar_stream_rpg * rpg) _LIBROAR_STREAM_STDATTRS; 
     104int roar_stream_set_rpg   (struct roar_connection * con, struct roar_stream * s, const struct roar_stream_rpg * rpg) _LIBROAR_STREAM_STDATTRS; 
     105 
    97106int roar_stream_s2m     (struct roar_stream * s, struct roar_message * m); 
    98107int roar_stream_m2s     (struct roar_stream * s, struct roar_message * m); 
     
    113122const char * roar_role2str  (const int    role) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
    114123 
     124const char * roar_rpgmode2str(const int rpgmode) _LIBROAR_ATTR_USE_RESULT _LIBROAR_ATTR_PURE; 
     125 
    115126ssize_t roar_info2samplesize (struct roar_audio_info * info) _LIBROAR_STREAM_STDATTRS _LIBROAR_ATTR_PURE; 
    116127ssize_t roar_info2framesize  (struct roar_audio_info * info) _LIBROAR_STREAM_STDATTRS _LIBROAR_ATTR_PURE; 
  • include/roaraudio/proto.h

    r5464 r5624  
    168168#define ROAR_STREAM_PARA_USAGE     10 /* used by RAUM */ 
    169169#define ROAR_STREAM_PARA_RADIO     11 /* used by RDTCS */ 
     170#define ROAR_STREAM_PARA_RPG       12 
     171 
     172// modes for ROAR_STREAM_PARA_RPG: 
     173#define ROAR_RPGMODE_DEFAULT       -1 
     174#define ROAR_RPGMODE_NONE           0 
     175#define ROAR_RPGMODE_USER           1 
     176#define ROAR_RPGMODE_ALBUM          2 
     177#define ROAR_RPGMODE_TRACK          3 
     178#define ROAR_RPGMODE_ALBUMTRACK     4 
     179#define ROAR_RPGMODE_TRACKALBUM     5 
    170180 
    171181// Message flags: 
Note: See TracChangeset for help on using the changeset viewer.