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

« back to all changes in this revision

Viewing changes to audio/esd.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:
44
44
#include <ctype.h>
45
45
#include <unistd.h>
46
46
#include <sys/stat.h>
47
 
#include <strstream.h>
 
47
#include <sstream>
48
48
#include "EST_Wave.h"
49
49
#include "EST_Option.h"
50
50
#include "audioP.h"
51
51
#include "EST_io_aux.h"
52
52
 
 
53
using namespace std;
 
54
 
53
55
#ifdef SUPPORT_ESD
54
56
 
55
57
// Hack hack. aupvlist.h is broken at least on FBSD 3.1.1
147
149
  THREAD_DECS();
148
150
  THREAD_PROTECT();
149
151
 
150
 
  strstream esd_name_stream;
 
152
  stringstream esd_name_stream;
151
153
  esd_name_stream << "from est/" << getpid() << '\0';
152
 
  esd_name_stream.freeze();
153
 
  char *esd_name = esd_name_stream.str();
 
154
  // esd_name_stream.freeze();
 
155
  const char *esd_name = esd_name_stream.str().c_str();
154
156
 
155
157
  int esd =  esd_play_stream( format, sample_rate, 
156
158
                              server==EST_String::Empty?NULL:(const char *)server, esd_name);