Re: [DirectPython] Examples
Status: Inactive
Brought to you by:
hsalo
From: Heikki S. <ho...@gm...> - 2006-07-11 14:49:07
|
> -----Original Message----- > From: dir...@li...=20 > [mailto:dir...@li...]=20 > On Behalf Of Jeffrey Barish > Sent: 11. hein=E4kuuta 2006 4:11 > To: dir...@li... > Subject: [DirectPython] Examples >=20 > Are there any examples of how to use DirectPython to produce=20 > sound? It appears that all the programs in directpy\samples=20 > are for graphical operations. >=20 > Also, I will need audio codecs. I don't know DirectSound,=20 > but I assume that it provides only hooks for codecs, not the=20 > codecs themselves. If that is true, is it possible to find=20 > decoders packaged for DirectSound for ogg, WMA, AAC, and MP3? > -- > Jeffrey Barish >=20 >=20 > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier Download IBM WebSphere Application Server=20 > v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642 > _______________________________________________ > directpython-general mailing list > dir...@li... > https://lists.sourceforge.net/lists/listinfo/directpython-general >=20 There are currently only two samples that use sounds: = sampleShipEffects.py uses the d3d.Sound (with 3D effect in newer versions) and samplewx.py = uses the d3d.Media. The objects are pretty simple to use, so there really is = not that much to show.=20 The Media-object (uses DirectShow) can play pretty much anything if = corrent codecs (or filters) are registered. Sound (uses DirectSound) can only = play .wav files. Googling for "directshow filter/codec <wanted format>" will probably find quite a few of them. The codecs are usually .exe-files = that will register themself when installed. After this the Media should be = able to play the formats that the codec supports. There are some bad codecs out there, so if possible try to get some information about them. Also note that .mp3 (and some other formats too) = is supported directly by the DirectShow so there is usually no need to = install any codecs in order to play them.=20 -- Heikki Salo |