Discussion:
CD Music
qudos
2005-09-16 07:27:27 UTC
Permalink
There is a nice feature for randomly play the sound track not being used

void CDAudio_RandomPlay

Only tried with sdl but also applies to normal quake2

cd_*.c

- if(!Q_strcasecmp(command,"eject"))
- {
- CDAudio_Eject();
- return;
- }
+ if(!Q_strcasecmp(command,"random"))
+ {
+ CDAudio_RandomPlay();
+ return;
+ }
- if(!Q_strcasecmp(command,"info"))
- {


Insert the quake2 cd and type cd random

Curiosly, the music is only available through headphones, it's this normal?
Nick Warne
2005-09-16 18:25:00 UTC
Permalink
Post by qudos
Insert the quake2 cd and type cd random
Curiosly, the music is only available through headphones, it's this normal?
Without knowing nothing about coding for CD/sound, I would hazard a guess that
that code (CD_xxxx) is specific to the CD player, therefore the sound only
pipes out to the CD output rather than pushing through to the system sound.

Either that or you don't have the CD audio cable plugged into your
motherboard...

Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
qudos
2005-09-17 19:19:28 UTC
Permalink
Thanks Nick

Yeah, probably is something with the cable, sometime ago a friend told
me about this in my pc

Now, one simple question, is possible to listen both, music and game
sounds through speakers or headphones?

Never before i tried the cd music

Cheers
Post by Nick Warne
Post by qudos
Insert the quake2 cd and type cd random
Curiosly, the music is only available through headphones, it's this normal?
Without knowing nothing about coding for CD/sound, I would hazard a guess that
that code (CD_xxxx) is specific to the CD player, therefore the sound only
pipes out to the CD output rather than pushing through to the system sound.
Either that or you don't have the CD audio cable plugged into your
motherboard...
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
qudos
2005-09-18 08:46:51 UTC
Permalink
Bahhh, found the problem

Linux? Alsa?

Rebooted to win and all works fine, game sounds and music through
speakers, any sound through cd dev

The same thing happends with quake1, i don't know really if is linux
or quake code

Time to try found a solution :/
Post by qudos
Thanks Nick
Yeah, probably is something with the cable, sometime ago a friend told
me about this in my pc
Now, one simple question, is possible to listen both, music and game
sounds through speakers or headphones?
Never before i tried the cd music
Cheers
Post by Nick Warne
Post by qudos
Insert the quake2 cd and type cd random
Curiosly, the music is only available through headphones, it's this normal?
Without knowing nothing about coding for CD/sound, I would hazard a guess that
that code (CD_xxxx) is specific to the CD player, therefore the sound only
pipes out to the CD output rather than pushing through to the system sound.
Either that or you don't have the CD audio cable plugged into your
motherboard...
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
qudos
2005-09-18 11:20:31 UTC
Permalink
Unafortunelly is linux

Thinking in alsa i tried in my old pc with no alsa installed, fully
supported sound blaster pci 128, and i got the same, game sound
through speakers, music cd through headphones plugged in the cdrom.

Any way to fix this?
Post by qudos
Bahhh, found the problem
Linux? Alsa?
Rebooted to win and all works fine, game sounds and music through
speakers, any sound through cd dev
The same thing happends with quake1, i don't know really if is linux
or quake code
Time to try found a solution :/
Post by qudos
Thanks Nick
Yeah, probably is something with the cable, sometime ago a friend told
me about this in my pc
Now, one simple question, is possible to listen both, music and game
sounds through speakers or headphones?
Never before i tried the cd music
Cheers
Post by Nick Warne
Post by qudos
Insert the quake2 cd and type cd random
Curiosly, the music is only available through headphones, it's this normal?
Without knowing nothing about coding for CD/sound, I would hazard a guess that
that code (CD_xxxx) is specific to the CD player, therefore the sound only
pipes out to the CD output rather than pushing through to the system sound.
Either that or you don't have the CD audio cable plugged into your
motherboard...
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
Brendan Burns
2005-09-18 18:54:31 UTC
Permalink
I think this might have something to do with the way that Linux is
playing the CDs vs. the way windows is playing the CDs. I think Linux
just tells the CD player to play (using the CD player hardware).
Perhaps windows is actually using a software player to read the audio
off the disc and play it over the speakers?

I know that there is a plugin for xmms that does this, but that code
would be needed to be integrated into the CD playing code...

--brendan
Post by qudos
Unafortunelly is linux
Thinking in alsa i tried in my old pc with no alsa installed, fully
supported sound blaster pci 128, and i got the same, game sound
through speakers, music cd through headphones plugged in the cdrom.
Any way to fix this?
Post by qudos
Bahhh, found the problem
Linux? Alsa?
Rebooted to win and all works fine, game sounds and music through
speakers, any sound through cd dev
The same thing happends with quake1, i don't know really if is linux
or quake code
Time to try found a solution :/
Post by qudos
Thanks Nick
Yeah, probably is something with the cable, sometime ago a friend told
me about this in my pc
Now, one simple question, is possible to listen both, music and game
sounds through speakers or headphones?
Never before i tried the cd music
Cheers
Post by Nick Warne
Post by qudos
Insert the quake2 cd and type cd random
Curiosly, the music is only available through headphones, it's this normal?
Without knowing nothing about coding for CD/sound, I would hazard a guess that
that code (CD_xxxx) is specific to the CD player, therefore the sound only
pipes out to the CD output rather than pushing through to the system sound.
Either that or you don't have the CD audio cable plugged into your
motherboard...
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
Nelson Marques
2005-09-18 19:22:05 UTC
Permalink
The main problem is that Windows uses Digital Audio Extraction,
therefore it doesn't require the old sound cables that go from the drive
to the sound adaptor.

Linux doesn't, therefore, if you wanna have sound, then install the
small cable/led for audio, usually supplied with the drive's and it
should work pretty straight away.

This appears to be the logical solution, didn't tryed though.

Best regards,
NM
Post by Brendan Burns
I think this might have something to do with the way that Linux is
playing the CDs vs. the way windows is playing the CDs. I think Linux
just tells the CD player to play (using the CD player hardware).
Perhaps windows is actually using a software player to read the audio
off the disc and play it over the speakers?
I know that there is a plugin for xmms that does this, but that code
would be needed to be integrated into the CD playing code...
--brendan
Post by qudos
Unafortunelly is linux
Thinking in alsa i tried in my old pc with no alsa installed, fully
supported sound blaster pci 128, and i got the same, game sound
through speakers, music cd through headphones plugged in the cdrom.
Any way to fix this?
Post by qudos
Bahhh, found the problem
Linux? Alsa?
Rebooted to win and all works fine, game sounds and music through
speakers, any sound through cd dev
The same thing happends with quake1, i don't know really if is linux
or quake code
Time to try found a solution :/
Post by qudos
Thanks Nick
Yeah, probably is something with the cable, sometime ago a friend told
me about this in my pc
Now, one simple question, is possible to listen both, music and game
sounds through speakers or headphones?
Never before i tried the cd music
Cheers
Post by Nick Warne
Post by qudos
Insert the quake2 cd and type cd random
Curiosly, the music is only available through headphones, it's this normal?
Without knowing nothing about coding for CD/sound, I would hazard a guess that
that code (CD_xxxx) is specific to the CD player, therefore the sound only
pipes out to the CD output rather than pushing through to the system sound.
Either that or you don't have the CD audio cable plugged into your
motherboard...
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
Nick Warne
2005-09-18 20:18:23 UTC
Permalink
Post by Nelson Marques
The main problem is that Windows uses Digital Audio Extraction,
therefore it doesn't require the old sound cables that go from the drive
to the sound adaptor.
Linux doesn't, therefore, if you wanna have sound, then install the
small cable/led for audio, usually supplied with the drive's and it
should work pretty straight away.
This appears to be the logical solution, didn't tryed though.
Windows uses Digital Audio Extraction
I didn't know that either - but it really sounds right to me to (pun
intended :-) )

Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
Nelson Marques
2005-09-18 23:18:59 UTC
Permalink
At least in windows, you can go to the Device Manager and in the Drive
properties disable the DAE (Digital Audio Extraction), if the cable
isn't installed, you won't get any sound either from a CD playing on the
drive.

And it's true, in XMMS there is a plugin to use DAE and it's enabled by
default. If that cable isn't present, for instance if you use Gnome CD
Player, you won't get any sound playback.

NM
Post by Nick Warne
Post by Nelson Marques
The main problem is that Windows uses Digital Audio Extraction,
therefore it doesn't require the old sound cables that go from the drive
to the sound adaptor.
Linux doesn't, therefore, if you wanna have sound, then install the
small cable/led for audio, usually supplied with the drive's and it
should work pretty straight away.
This appears to be the logical solution, didn't tryed though.
Windows uses Digital Audio Extraction
I didn't know that either - but it really sounds right to me to (pun
intended :-) )
Nick
qudos
2005-09-19 07:38:47 UTC
Permalink
Humm, preferible for me then is rip the whole cd in a single ogg file

Cheers

Loading...