[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] seeking in a .WAV with pygame.mixer.music? and "pynudge"




--- Rene Dudfield <renesd@xxxxxxxxx> wrote:

> Below is a function which makes a new Sound from
> another one at a
> different start_pos.
> 
> eg, called like this:
> sound = pygame.mixer.Sound(os.path.join('data',
> 'car_door.wav'))
> sound2 = sound_from_pos(sound, 0.2)
> 
> ps. I just commited this to
> examples/sound_array_demos.py in cvs.
> 
> So you can load up your .wav, and start playing it
> at any position.
> 
 
I tried it multiple times, changing the parameters and
other things, made sure it was copied correctly even.
But all I'm getting is white noise during playback
after it runs through sound_from_pos. It doesn't seem
to matter if the sound is short or long, stereo or
mono, or encoded at 16 or 32 bits. The original sound
is fine...this is quite puzzling since the code seems
straightforward enough :(

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com