[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pygame.mixer.init(frequency=?)
- To: pygame-users@xxxxxxxx
- Subject: [pygame] pygame.mixer.init(frequency=?)
- From: B W <stabbingfinger@xxxxxxxxx>
- Date: Thu, 25 Feb 2010 10:31:12 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 25 Feb 2010 13:31:22 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=OxmDX/uKKfGyIRlPBWOnLNf1cB7YQg36iIA6gZZOyyY=; b=w3aCvu6u4nnCQFwxM4j6l016Aiyy0qojwUy64e+iVer923ZdmiCCn0uW9W3HTAX2oO EHStdzpsuCij/IR8mzbmMc35S7mGdkgTe9CsQDzlQm+tyHwpa63gaWnVxdfBgPc+P3v6 Yk2YXf2XuDtd+xPyUUiobBEIWom8wXx1B+fT0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=L9I+sYQTFTXjap6qvi70UQ1hfh8Bq2OkoqjMszQtl0qR5I8rQ0dZcMY35i8C4YUEZe KjM7RZMjgkBr5nMQV8Ssf9uDhUD5K0MDiUKSOmSFmGMUbB6tdsuLz6QT+ScQet7FnwaG +wtbl1QDI1J7zblr4NHTLaiIgFOBk3TFeHMa4=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Howdy.
I can't seem to find any clear info on my problem. I'm hoping someone here has dealt with this.
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.
Does anyone have a recommendation? Are all sounds in an implementation expected to have the same bitrate?
Thanks in advance for any insight. :)
Gumm