I tried jukebox.py on my slow Windows 98 computer with DirectX 8 and it sounded
fine. I also altered waveIt to initialize SDL like Pygame would:
SDL_Init(SDL_INIT_TIMER | SDL_INIT_NOPARACHUTE);
SDL_InitSubSystem(SDL_INIT_VIDEO);
SDL_InitSubSystem(SDL_INIT_AUDIO);
This also sounds fine on the XP machine. I also reversed the order of
video/audio initialization. So that leaves these three factors: Windows
XP/Vista, Pygame 1.8 and DirectX 9. I am hesitant to install DirectX 9 on my
Windows 98 box in case it breaks everything and I am unable to revert back to
DirectX 8. So I am out or ideas for the moment.
Lenard
Quoting Lenard Lindstrom <
len-l@xxxxxxxxx>:
Thanks. I tried the jukebox.py example. It sounded awful (getout.ogg).
Python 2.5
Pygame 1.8.1pre
XP Professional (51., Build 2600)
Dell DM051
Phoenix ROM BIOS PLUS Version 1.10 A05
Intel Pentium D CPU 2.80GHz (2 CPUs)
1014MB RAM
DirectX 9.0c (4.09.0000.0904)
Intel 82945G Express Chipset Family video (Internal) 224.0 MB
SigmaTel Audio
It crackled and played at half-speed. Changing the audio driver to waveout
"set
SDL_AUDIODRIVER=waveout" cleared everything up. Could it be a DirectX 9
problem
(not properly DirectX 5 compatible). I will try this on my Windows 98 Dell
with
DirectX 8 for comparison.
One thing I noted, Pygame initializes the video and audio separately while
all
the C/C++ programs I have seen so far do everthing in the call to SDL_Init. I
will try instializing SDL subsystems instead to see what happens.
Lenard
Quoting etrek <etrek@xxxxxxx>:
> Hi Lenard,
> You can download the media/Pygame scripts for the Book from:
> http://apress.com/book/downloadfile/3765
>
> Chapter 10 has the audio example scripts; a bouncing balls script, and a
> jukebox.py script that plays .ogg files.
> The jukebox.py script is very simple, it comes with "please put some > .ogg
> file in the music folder", you can add the getout.ogg file to the media
> folder for the jukebox.