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

Re: [pygame] pygame.mixer.init(frequency=?)





On Thu, Feb 25, 2010 at 1:43 PM, Marius Gedminas <marius@xxxxxxxxx> wrote:
On Thu, Feb 25, 2010 at 10:37:36AM -0800, James Paige wrote:
> On Thu, Feb 25, 2010 at 10:31:12AM -0800, B W wrote:
> >    I have two songs. One has a bitrate of 48000, the other 44100. If I allow
> >    Pygame (SDL mixer) to use the default frequency, the playback speed of the
> >    songs is distorted. If I explicitly set the mixer frequency to match a
> >    song so it sounds good, the other sounds distorted.
> >
> >    Reinitializing the mixer is not a good option. There are other sounds that
> >    need to play, and would be interrupted by a reinit. Resampling the songs
> >    is not ideal, either, as Vorbis is a lossy format and sound quality is
> >    obviously lost in re-sampling.

Is that a theoretical observation, or can you actually hear the
difference?

Yes, I can hear the difference, especially in high treble fidelity.

Well, it is only one song. I will just exclude it from the pick. Thanks for the replies.

Gumm