]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/AIPlane.cxx
Merge branch 'torsten/metar'
[flightgear.git] / src / ATCDCL / AIPlane.cxx
index 3f22dafa15cb1b1171dc51e7dec66c2107562fb1..8fd67d13aeb190b837706c8996e27c339f068b90 100644 (file)
@@ -195,10 +195,10 @@ void FGAIPlane::Render(const string& refname, const float volume, bool repeating
 #ifdef ENABLE_AUDIO_SUPPORT
        voice = (voiceOK && fgGetBool("/sim/sound/voice"));
        if(voice) {
-            sizte_t len;
+            size_t len;
            void* buf = vPtr->WriteMessage(pending_transmission, &len);
            if(voice && (volume > 0.05)) {
-               SGSoundSample* simple = new SGSoundSample(buf, len, 8000 );
+               SGSoundSample* simple = new SGSoundSample(&buf, len, 8000 );
                simple->set_volume(volume);
                _sgr->add(simple, refname);
                _sgr->play(refname, repeating);