+ // Normally, these three functions could be called only once.
+ codec->SetInStream(ptr->sndbuf);
+ codec->InitIO(m_drvformat);
+ codec->InitMode(wxSoundCodec::ENCODING);
+
+ // As there is an "auto-stopper" in the codec, we don't worry ...
+ codec->Encode();