+////////////////////////////////////////////////////////////////////////////////
+// Name: sndpcm.cpp
+// Purpose: wxMMedia
+// Author: Guilhem Lavaux
+// Created: 1998
+// Updated: 1999
+// Copyright: (C) 1997, 1998, 1999, Guilhem Lavaux
+// License: wxWindows license
+////////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#pragma implementation "sndpcm.h"
#endif
void wxSoundPcmCodec::Decode()
{
- InitMode(DECODING);
if (m_io_format == m_orig_format) {
CopyToOutput();
- ExitMode();
return;
}
default:
break;
}
- ExitMode();
}
// ---------------------------------------------------------------------------
} else {
while (StreamOk()) {
temp = GET();
+ temp2 = GET();
PUT(temp ^ signer1);
if (!StreamOk()) {
m_in_sound->WriteBack(temp);
+ m_in_sound->WriteBack(temp2);
break;
}
PUT(GET() ^ signer2);
PUT(temp ^ signer1);
if (!StreamOk()) {
m_in_sound->WriteBack(temp);
+ m_in_sound->WriteBack(temp2);
break;
}
PUT(temp2 ^ signer2);
void wxSoundPcmCodec::Encode()
{
- InitMode(ENCODING);
if (m_io_format == m_orig_format) {
CopyToOutput();
- ExitMode();
return;
}
default:
break;
}
- ExitMode();
}