]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxMMedia2/sample/test_med2.cpp
1 // --------------------------------------------------------------------------
5 // Author: Guilhem Lavaux <lavaux@easynet.fr> (C) 1999
7 // --------------------------------------------------------------------------
9 #include <wx/wfstream.h>
11 #include "../lib/sndoss.h"
12 #include "../lib/sndwav.h"
13 #include "../lib/sndaiff.h"
15 class MyApp
: public wxApp
{
17 wxSoundStreamOSS
*oss_dev
= new wxSoundStreamOSS();
18 wxFileInputStream
*f_input
= new wxFileInputStream(argv
[1]);
19 wxSoundFileStream
*wav_file
= new wxSoundAiff(*f_input
, *oss_dev
);
20 wxFrame
*frame
= new wxFrame(NULL
, -1, "My Frame");
23 if (oss_dev
->GetError() != wxSOUND_NOERR
) {
24 wxPrintf("No device\n");