* 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:
@@ -165,6 +165,8 @@ wxSoundCodec::wxSoundCodec()
|
||||
|
||||
wxSoundCodec::~wxSoundCodec()
|
||||
{
|
||||
if (m_mode != WAITING)
|
||||
ExitMode();
|
||||
}
|
||||
|
||||
void wxSoundCodec::InitIO(const wxSoundDataFormat& format)
|
||||
@@ -172,13 +174,13 @@ void wxSoundCodec::InitIO(const wxSoundDataFormat& format)
|
||||
m_io_format = format;
|
||||
}
|
||||
|
||||
void wxSoundCodec::InitMode(int mode)
|
||||
void wxSoundCodec::InitMode(ModeType mode)
|
||||
{
|
||||
wxStreamBuffer *buf_snd;
|
||||
|
||||
m_mode = (mode == 0) ? ENCODING : DECODING;
|
||||
m_mode = mode;
|
||||
if (!m_chain_codec) {
|
||||
if (mode == ENCODING) {
|
||||
if (m_mode == ENCODING) {
|
||||
m_out_sound = new wxStreamBuffer(*this, wxStreamBuffer::write);
|
||||
m_out_sound->SetBufferIO(1024);
|
||||
} else {
|
||||
@@ -219,6 +221,7 @@ void wxSoundCodec::ExitMode()
|
||||
m_out_sound = m_chain_codec->GetOutStream();
|
||||
}
|
||||
}
|
||||
m_mode = WAITING;
|
||||
}
|
||||
|
||||
bool wxSoundCodec::ChainCodecBefore(wxSoundDataFormat& format)
|
||||
|
Reference in New Issue
Block a user