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.
My program is a sort of amalgamation of both examples. If your machine
behaves the same as mine, then you should be able to hear the difference
quite easily.
-Ethan
----- Original Message -----
From: "Lenard Lindstrom" <[EMAIL PROTECTED]>
To: <pygame-users@seul.org>
Sent: Saturday, April 19, 2008 10:25 PM
Subject: Re: [pygame] Pygame Mixer Crackle noise not an SDL_Mixer problem
Yes, I built and tried it on XP. It sounds good. Now I just need a Python
equivalent. I don't have a copy of "Beginning Game Dev with Python and
Pygame"
so I suppose I can translate the C++ back to Python.
Lenard
Quoting etrek <[EMAIL PROTECTED]>:
Sorry, Here's the link for the files:
http://www.filejumbo.com/Download/3F840964D8B19B91
-Ethan
----- Original Message -----
From: "etrek" <[EMAIL PROTECTED]>
To: <pygame-users@seul.org>
Sent: Saturday, April 19, 2008 5:10 PM
Subject: Re: [pygame] Pygame Mixer Crackle noise not an SDL_Mixer problem
Hi Lenard,
I downloaded your SDL Test files and tested them. They sound ok on my
machine, however it's difficult to tell whether the aliens program music
is
causing any crackles (because the explosion sound it uses sounds like an
old
style arcade explosion like Defender) and has a staticy sound anyway. The
other music and sounds sound ok, but it's hard to tell with just one play
(a
single shoot sound).
I have uploaded my examples that contain both graphics, animation and
sound.
You don't have to use Dev-C++ to compile my source files, they are just
standard
C/C++ files and SDL calls. You could copy and paste the code into a
Visual
Studio
project and set up your comiler /linker to the appropriate values for your
system.
The program causes no crackling on my system.