Lines 1-107
Link Here
|
1 |
--- src/tier1/SOUNDfile.cc.orig Mon Mar 4 03:31:29 2002 |
|
|
2 |
+++ src/tier1/SOUNDfile.cc Sat Jul 20 17:21:11 2002 |
3 |
@@ -132,7 +132,7 @@ |
4 |
|
5 |
//give the duration of one subband sample in sec |
6 |
float |
7 |
-SOUNDfile::sample_duration( Resolution res = LOW ) { |
8 |
+SOUNDfile::sample_duration( Resolution res) { |
9 |
return format->sample_duration( res ); |
10 |
} |
11 |
|
12 |
@@ -164,7 +164,7 @@ |
13 |
|
14 |
//give the nuber of subband samples in one window |
15 |
unsigned int |
16 |
-SOUNDfile::timeticks( Resolution res = LOW ) { |
17 |
+SOUNDfile::timeticks( Resolution res) { |
18 |
return format->timeticks( res ); |
19 |
} |
20 |
|
21 |
@@ -194,7 +194,7 @@ |
22 |
/*-------------- extract and skip --------------*/ |
23 |
//go to next window and analyse it with res |
24 |
bool |
25 |
-SOUNDfile::next_window( Resolution res = LOW) { |
26 |
+SOUNDfile::next_window( Resolution res) { |
27 |
//set which_max as maxim do not contain a meaningful value |
28 |
which_max = -1; |
29 |
return format->next_window( res ); |
30 |
@@ -212,20 +212,20 @@ |
31 |
/*--------------- access function ---------------*/ |
32 |
//give the value of the subband samples of the current window |
33 |
double |
34 |
-SOUNDfile::freq_value( unsigned int ch, unsigned int sb, unsigned int nb = 0, Resolution res = LOW ) { |
35 |
+SOUNDfile::freq_value( unsigned int ch, unsigned int sb, unsigned int nb, Resolution res) { |
36 |
return format->freq_value(ch,sb,nb,res); |
37 |
} |
38 |
|
39 |
//give the number of subband at that resolution |
40 |
unsigned int |
41 |
-SOUNDfile::nb_subbands( Resolution res = LOW ) { |
42 |
+SOUNDfile::nb_subbands( Resolution res) { |
43 |
return format->nb_subbands( res ); |
44 |
} |
45 |
|
46 |
/*------------- Analyse functions ----------------------*/ |
47 |
//give the mean of samples nb in subband sb on both channels if available |
48 |
double |
49 |
-SOUNDfile::freqvalue_st_mean( unsigned int sb, unsigned int nb = 0, Resolution res = LOW ) |
50 |
+SOUNDfile::freqvalue_st_mean( unsigned int sb, unsigned int nb, Resolution res) |
51 |
{ |
52 |
|
53 |
if ( format->is_stereo() ) { // in case of a stereo file it is possible to compute the mean |
54 |
@@ -237,7 +237,7 @@ |
55 |
|
56 |
//give the rms of samples nb in subband sb on both channels if available |
57 |
double |
58 |
-SOUNDfile::freqvalue_st_rms( unsigned int sb, unsigned int nb = 0, Resolution res = LOW) |
59 |
+SOUNDfile::freqvalue_st_rms( unsigned int sb, unsigned int nb, Resolution res) |
60 |
{ |
61 |
|
62 |
if ( format->is_stereo() ) { // in case of a stereo file it is possible to compute the rms |
63 |
@@ -249,7 +249,7 @@ |
64 |
|
65 |
//give the normalised subband energy samples |
66 |
double |
67 |
-SOUNDfile::normalised_sb_nrj( unsigned int sb, unsigned int nb = 0, Resolution res = LOW) |
68 |
+SOUNDfile::normalised_sb_nrj( unsigned int sb, unsigned int nb, Resolution res) |
69 |
{ |
70 |
double resu; |
71 |
|
72 |
@@ -293,7 +293,7 @@ |
73 |
|
74 |
//give a coarse and quick idea of the value in that subband |
75 |
double |
76 |
-SOUNDfile::subband_scalefactor ( unsigned int sb, Resolution res = LOW) |
77 |
+SOUNDfile::subband_scalefactor ( unsigned int sb, Resolution res) |
78 |
{ |
79 |
switch (filetype) { |
80 |
case MPEG: |
81 |
@@ -319,7 +319,7 @@ |
82 |
|
83 |
//give the mean of samples over the current window |
84 |
double |
85 |
-SOUNDfile::subband_mean( unsigned int sb, Resolution res = LOW) |
86 |
+SOUNDfile::subband_mean( unsigned int sb, Resolution res) |
87 |
{ |
88 |
|
89 |
int num = format->timeticks(res); |
90 |
@@ -335,7 +335,7 @@ |
91 |
|
92 |
//give the rms of samples over the current window |
93 |
double |
94 |
-SOUNDfile::subband_rms( unsigned int sb, Resolution res = LOW) |
95 |
+SOUNDfile::subband_rms( unsigned int sb, Resolution res) |
96 |
{ |
97 |
|
98 |
int num = format->timeticks(res); |
99 |
@@ -351,7 +351,7 @@ |
100 |
|
101 |
//give the normalised subband energy over the current window |
102 |
double |
103 |
-SOUNDfile::subband_nrj( unsigned int sb, Resolution res = LOW) |
104 |
+SOUNDfile::subband_nrj( unsigned int sb, Resolution res) |
105 |
{ |
106 |
double resu; |
107 |
|