Voice Lab
read_25
int read_25(FILE *in_file, int data_size, int sample_rate, int *result)
{
int i, count;
count = read_data(in_file, data_size, sample_rate, result);
if(sample_rate == 50000) {
/* Throw out the even data, reducing the data rate to 25000 */
read_data(in_file, data_size, sample_rate, &i);
}
return(count);
}
No comments:
Post a Comment