~ubuntu-branches/ubuntu/jaunty/speech-tools/jaunty

« back to all changes in this revision

Viewing changes to speech_class/EST_Wave.cc

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2004-07-16 09:25:39 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040716092539-5p1tzif55b8j924e
Tags: 1:1.2.3-8
Added alaw processing code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
/*                                                                       */
38
38
/*=======================================================================*/
39
39
 
40
 
#include <iostream.h>
 
40
#include <iostream>
41
41
#include <stdlib.h>
42
42
#include <stdio.h>
43
43
#include <math.h>
51
51
 
52
52
#include "waveP.h"
53
53
 
54
 
const EST_String DEF_FILE_TYPE = "nist";
 
54
const EST_String DEF_FILE_TYPE = "riff";
55
55
const EST_String DEF_SAMPLE_TYPE = "short";
56
56
 
57
57
const int EST_Wave::default_sample_rate=16000;
225
225
            set_file_type(EST_WaveFile::map.value(t));
226
226
            break;
227
227
        }
 
228
        else if (stat == read_error)
 
229
            break;
228
230
    }
229
231
    
230
232
    return stat;