Browse Source

DEFAULT_SAMPLE_RATE is not needed, so remove it.

The sampleRate variable gets overwritten with the actual sample
rate during creation from the espeak_Initialize method, so the
value it is set to in the constructor does not matter.
master
Reece H. Dunn 12 years ago
parent
commit
e50f9e0055
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      android/jni/jni/eSpeakService.cpp

+ 2
- 3
android/jni/jni/eSpeakService.cpp View File

/* /*
* Copyright (C) 2011 Google Inc.
* Copyright (C) 2012-2013 Reece H. Dunn * Copyright (C) 2012-2013 Reece H. Dunn
* Copyright (C) 2011 Google Inc.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
SYNTH_ABORT = 1 SYNTH_ABORT = 1
}; };


const int DEFAULT_SAMPLE_RATE = 22050;
const int DEFAULT_CHANNEL_COUNT = CHANNEL_COUNT_MONO; const int DEFAULT_CHANNEL_COUNT = CHANNEL_COUNT_MONO;
const int DEFAULT_AUDIO_FORMAT = ENCODING_PCM_16BIT; const int DEFAULT_AUDIO_FORMAT = ENCODING_PCM_16BIT;
const int DEFAULT_BUFFER_SIZE = 1000; const int DEFAULT_BUFFER_SIZE = 1000;
native_data_t() { native_data_t() {
env = NULL; env = NULL;
object = NULL; object = NULL;
sampleRate = DEFAULT_SAMPLE_RATE;
sampleRate = 0;
channelCount = DEFAULT_CHANNEL_COUNT; channelCount = DEFAULT_CHANNEL_COUNT;
audioFormat = DEFAULT_AUDIO_FORMAT; audioFormat = DEFAULT_AUDIO_FORMAT;
bufferSizeInMillis = DEFAULT_BUFFER_SIZE; bufferSizeInMillis = DEFAULT_BUFFER_SIZE;

Loading…
Cancel
Save