1
0
Fork 0

Add a proper typecast

This commit is contained in:
ehofman 2009-10-22 12:53:48 +00:00 committed by Tim Moore
parent 42b990ca1b
commit 9c8d6ee663

View file

@ -201,7 +201,7 @@ void FGAIPlane::Render(const string& refname, const float volume, bool repeating
if(voice) { if(voice) {
string buf = vPtr->WriteMessage((char*)pending_transmission.c_str(), voice); string buf = vPtr->WriteMessage((char*)pending_transmission.c_str(), voice);
if(voice && (volume > 0.05)) { if(voice && (volume > 0.05)) {
std::auto_ptr<unsigned char> ptr( buf.c_str() ); std::auto_ptr<unsigned char> ptr( (unsigned char*)buf.c_str() );
SGSoundSample* simple = SGSoundSample* simple =
new SGSoundSample(ptr, buf.length(), 8000 ); new SGSoundSample(ptr, buf.length(), 8000 );
// TODO - at the moment the volume can't be changed // TODO - at the moment the volume can't be changed