- string buf = vPtr->WriteMessage((char*)pending_transmission.c_str(), voice);
- if(voice) {
- SGSoundSample* simple =
- new SGSoundSample((unsigned char*)buf.c_str(), buf.length(), 8000, AL_FORMAT_MONO8 );
- // TODO - at the moment the volume can't be changed
- // after the transmission has started.
+ size_t len;
+ void* buf = vPtr->WriteMessage(pending_transmission, &len);
+ if(voice && (volume > 0.05)) {
+ SGSoundSample* simple = new SGSoundSample(&buf, len, 8000 );