Add a proper typecast
This commit is contained in:
parent
42b990ca1b
commit
9c8d6ee663
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue