* Fixes (WAV works on Linux, AIFF following)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guilhem Lavaux
1998-12-25 11:02:39 +00:00
parent 9257d0b705
commit eb4e516dd9
7 changed files with 85 additions and 50 deletions

View File

@@ -38,10 +38,8 @@ wxSoundDataFormat wxSoundPcmCodec::GetPreferredFormat(int codec) const
void wxSoundPcmCodec::Decode()
{
InitMode(DECODING);
if (m_io_format == m_orig_format) {
CopyToOutput();
ExitMode();
return;
}
@@ -58,7 +56,6 @@ void wxSoundPcmCodec::Decode()
default:
break;
}
ExitMode();
}
// ---------------------------------------------------------------------------
@@ -179,10 +176,8 @@ void wxSoundPcmCodec::OutputSwapAndSign16()
void wxSoundPcmCodec::Encode()
{
InitMode(ENCODING);
if (m_io_format == m_orig_format) {
CopyToOutput();
ExitMode();
return;
}
@@ -199,5 +194,4 @@ void wxSoundPcmCodec::Encode()
default:
break;
}
ExitMode();
}