~ubuntu-branches/ubuntu/maverick/speech-tools/maverick

« back to all changes in this revision

Viewing changes to audio/nas.cc

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry, Kumar Appaiah, Kartik Mistry
  • Date: 2007-11-19 17:39:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071119173939-l5zuh2waxmrel31x
Tags: 1:1.2.96~beta-1
[Kumar Appaiah]
* Long awaited new upstream version (Closes: #437682)
* debian/patches:
  + Split all patches, and use quilt for patch management
  + Use latest config.guess, config.sub
* Minor manpage description fix
* debian/rules:
  + Fix old autoconf files, using autotools-dev
  + Find versions using debian/get_versions.sh, instead of hard coding

[Kartik Mistry]
* Added debian/watch file from Kumar
* debian/control:
  + Added homepage entry
  + Added Kumar Appaiah as co-maintainer list
  + Added XS-Dm-Upload-Allowed: yes to allow Debian-Maintainer upload
* debian/copyright: moved copyright out of license section
* debian/manpage.1: fixed lintian warning
* debian/rules: includes base_class/*.cc which is badly needed for
  festival compilation

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
/*                                                                       */
38
38
/*=======================================================================*/
39
39
 
40
 
#include <stdio.h>
41
 
#include <string.h>
42
 
#include <stdlib.h>
43
 
#include <ctype.h>
 
40
#include <cstdio>
 
41
#include <cstring>
 
42
#include <cstdlib>
 
43
#include <cctype>
44
44
#include <sys/stat.h>
45
45
#include "EST_Wave.h"
46
46
#include "EST_Option.h"
57
57
 
58
58
int nas_supported = TRUE;
59
59
 
60
 
static int endian_int = 1;
 
60
int endian_int = 1;
61
61
#define NAS_BIG_ENDIAN (((char *)&endian_int)[0] == 0)
62
62
 
63
63
static void na_sync_play_cb(AuServer *aud, AuEventHandlerRec *handler, 
102
102
 
103
103
    /* Check sample rate of server -- should really check the if it   */
104
104
    /* only supports individual sample rate of which this wave is not */
105
 
    /* one then we should reample                                     */
 
105
    /* one then we should resample.                                   */
106
106
    samp_rate = inwave.sample_rate();
107
107
    bool samp_rate_ok = FALSE;
108
108
    for (i=0; dev_sr[i] != -1; i++)