Re: [pygame] CD Audio
You might look into gstreamer python bindings if they exist. That's the first place I'd look, although I don't know if that would be portable to windows. --Mike Josh Smith wrote: Does anyone know of a workaround for piping the sound to the sound card? On Windows and even Linux with VLC/Totem the music works fine, but not if I'm trying to play CD audio through Pygame. I could probably fix it out on the hardware level as suggested, but I can't really expect my users to play around with the internals just to get their program working. As a last resort I could just default to only reading mp3's/oggs/etc and just include a ripping utility with the program but I'd prefer them to just be able to pop in a CD and play. Thanks for the help thusfar. -Josh
Re: [pygame] CD Audio
Does anyone know of a workaround for piping the sound to the sound card? On Windows and even Linux with VLC/Totem the music works fine, but not if I'm trying to play CD audio through Pygame. I could probably fix it out on the hardware level as suggested, but I can't really expect my users to play around with the internals just to get their program working. As a last resort I could just default to only reading mp3's/oggs/etc and just include a ripping utility with the program but I'd prefer them to just be able to pop in a CD and play. Thanks for the help thusfar. -Josh On 1/8/08, James Paige <[EMAIL PROTECTED]> wrote: > > On Tue, Jan 08, 2008 at 02:01:02PM +0100, Bo Jangeborg wrote: > > Doesn't the CD-Audio usually have its own direct connection to the sound > > card. Usually a separate cord > > that comes with the card or cd-player? You may want to check if yours is > > connected. > > > > Bo) > > The CD audio can play through the sound card via that cable you mention, > but its volume level is controlled by a separate mixer which is > defaulted to "Mute" surprisingly often :( > > Also, the identity of that mixer can sometimes be unclear. I have > encountered sound-cards that allow the CD's cable to be connected to any > one of several inputs, each with a different mixer, which may or may not > be labelled as "CD Audio" or "AUX" or "Line In 2", etc. > > --- > James >
Re: [pygame] CD Audio
On Tue, Jan 08, 2008 at 02:01:02PM +0100, Bo Jangeborg wrote: > Doesn't the CD-Audio usually have its own direct connection to the sound > card. Usually a separate cord > that comes with the card or cd-player? You may want to check if yours is > connected. > > Bo) The CD audio can play through the sound card via that cable you mention, but its volume level is controlled by a separate mixer which is defaulted to "Mute" surprisingly often :( Also, the identity of that mixer can sometimes be unclear. I have encountered sound-cards that allow the CD's cable to be connected to any one of several inputs, each with a different mixer, which may or may not be labelled as "CD Audio" or "AUX" or "Line In 2", etc. --- James
Re: [pygame] CD Audio
Some don't ship with that anymore. I know it took me a while to figure that out when we installed linux on my sister's new computer. windows media players seem to read the audio and pipe it to the sound card, probably so they can do visualizations and stuff, whereas by default the players we were using on linux still just played the CD. --Mike Bo Jangeborg wrote: Doesn't the CD-Audio usually have its own direct connection to the sound card. Usually a separate cord that comes with the card or cd-player? You may want to check if yours is connected. Bo) Josh Smith skrev: Is there a way to use Pygame's cdrom functions to pipe audio to the soundcard? pygame.cdrom.CD.play seems to just play at the cdplayer level rather than through the soundcard which isn't too useful in an application. Does anyone have any workarounds for this?
Re: [pygame] CD Audio
Doesn't the CD-Audio usually have its own direct connection to the sound card. Usually a separate cord that comes with the card or cd-player? You may want to check if yours is connected. Bo) Josh Smith skrev: Is there a way to use Pygame's cdrom functions to pipe audio to the soundcard? pygame.cdrom.CD.play seems to just play at the cdplayer level rather than through the soundcard which isn't too useful in an application. Does anyone have any workarounds for this?