~ubuntu-branches/ubuntu/lucid/mpg123/lucid

« back to all changes in this revision

Viewing changes to src/common.h

Tags: upstream-0.66
ImportĀ upstreamĀ versionĀ 0.66

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
        common: anything can happen here... frame reading, output, messages
3
3
 
4
4
        copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
5
 
        see COPYING and AUTHORS files in distribution or http://mpg123.de
 
5
        see COPYING and AUTHORS files in distribution or http://mpg123.org
6
6
        initially written by Michael Hipp
7
7
*/
8
8
 
98
98
 
99
99
#endif
100
100
 
 
101
void print_stat(struct frame *fr,unsigned long no,long buffsize,struct audio_info_struct *ai);
 
102
void clear_stat();
 
103
 
101
104
/* rva data, used in common.c, set in id3.c */
102
 
extern long lastscale;
 
105
extern scale_t lastscale;
103
106
extern int rva_level[2];
104
107
extern float rva_gain[2];
105
108
extern float rva_peak[2];
106
109
 
107
110
/* adjust volume to current outscale and rva values if wanted */
 
111
#define RVA_OFF 0
 
112
#define RVA_MIX 1
 
113
#define RVA_ALBUM 2
 
114
#define RVA_MAX RVA_ALBUM
 
115
extern const char* rva_name[3];
108
116
void do_rva();
 
117
/* wrap over do_rva that prepares outscale */
 
118
void do_volume(double factor);
109
119
 
110
120
/* positive and negative for offsets... I guess I'll drop the unsigned frame position type anyway */
111
121
long time_to_frame(struct frame *fr, double seconds);