]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/ATCVoice.cxx
new FSF address
[flightgear.git] / src / ATC / ATCVoice.cxx
index 02ef855a51da3c77ddb96d6da7e252847fb2086f..62524609fcb2f733ae5027963541fca501b3033d 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 
 #ifdef HAVE_CONFIG_H
@@ -54,9 +54,9 @@ bool FGATCVoice::LoadVoice(const string& voice) {
 
         string file = voice + ".wav";
        
-       SoundData = new SGSoundSample( path.c_str(), file.c_str(), false );
+       SoundData = new SGSoundSample();
+        rawSoundData = (char *)SoundData->load_file(path.c_str(), file.c_str());
        rawDataSize = SoundData->get_size();
-       rawSoundData = SoundData->get_data();
        
        path = globals->get_fg_root();
        string wordPath = "ATC/" + voice + ".vce";