sndformat.SetSampleRate((wxUint32) srate);
sndformat.SetBPS(bps);
sndformat.SetChannels(channels);
- sndformat.Signed(TRUE);
+ sndformat.Signed(FALSE);
sndformat.SetOrder(wxBIG_ENDIAN);
if (!SetSoundFormat(sndformat))
pcm_format2 = (wxSoundFormatPcm *)new_format;
m_16_to_8 = FALSE;
- if (pcm_format->GetBPS() == 16 && pcm_format2->GetBPS() == 8) {
+ if (pcm_format->GetBPS() != pcm_format2->GetBPS()) {
m_16_to_8 = TRUE;
current_table_out = s_convert_out_16_to_8;
current_table_in = s_convert_in_8_to_16;
// --------------------------------------------------------------------------
-// Name: sndulaw.cpp
+// Name: sndg72x.cpp
// Purpose:
-// Date: 08/11/1999
+// Date: 08/26/1999
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
// CVSID: $Id$
// --------------------------------------------------------------------------
#ifdef __GNUG__
-#pragma implementation "sndulaw.cpp"
+#pragma implementation "sndg72x.cpp"
#endif
#include <wx/wxprec.h>
#include "sndbase.h"
#include "sndfile.h"
#include "sndpcm.h"
-#include "sndulaw.h"
#include "sndg72x.h"
#include "g72x.h"
// --------------------------------------------------------------------------
-// Name: sndg.h
+// Name: sndg72x.h
// Purpose:
-// Date: 08/11/1999
+// Date: 08/26/1999
// Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
// CVSID: $Id$
// --------------------------------------------------------------------------
bool OnInit() {
wxSoundStreamOSS *oss_dev = new wxSoundStreamOSS();
wxFileInputStream *f_input = new wxFileInputStream(argv[1]);
- wxSoundWave *wav_file = new wxSoundWave(*f_input, *oss_dev);
+ wxSoundFileStream *wav_file = new wxSoundAiff(*f_input, *oss_dev);
wxFrame *frame = new wxFrame(NULL, -1, "My Frame");
wxSoundFormatPcm pcm;