CD supposedly playing, but no audio

I’m implementing CD music playback for the Free Heroes of Might and Magic II
project on SourceForge, and I’ve got it to the point where it seems like it
should be working, but it isn’t. I’ve initialized the CD and audio
subsystems, opened the drive, determined that the correct CD is in the
drive, and started playing a track. SDL_CDStatus returns CD_PLAYING, and
the CD spins up, but no audio is heard. The HoMM II CD is a bit special in
that the first track is a data track, but most CD players can handle it
without problems. I’m using SDL_mixer for all other audio; could that be
interfering somehow? This is all taking place on Fedora 8, SDL 1.2.13.

Cheers,
Josh

I’m implementing CD music playback for the Free Heroes of Might and Magic II
project on SourceForge, and I’ve got it to the point where it seems like it
should be working, but it isn’t. I’ve initialized the CD and audio
subsystems, opened the drive, determined that the correct CD is in the
drive, and started playing a track. SDL_CDStatus returns CD_PLAYING, and
the CD spins up, but no audio is heard. The HoMM II CD is a bit special in
that the first track is a data track, but most CD players can handle it
without problems. I’m using SDL_mixer for all other audio; could that be
interfering somehow? This is all taking place on Fedora 8, SDL 1.2.13.

Silly question, but do you have your CD drive hooked up to your sound card?
SDL’s audio playback doesn’t read the CD and play through the DSP, it tells
the CD drive to start audio playback in hardware.

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Well, I can listen to the CD fine through Soundjuicer, so I assume it’s set
up correctly.On Mon, Oct 13, 2008 at 6:47 AM, Sam Lantinga wrote:

I’m implementing CD music playback for the Free Heroes of Might and Magic
II
project on SourceForge, and I’ve got it to the point where it seems like
it
should be working, but it isn’t. I’ve initialized the CD and audio
subsystems, opened the drive, determined that the correct CD is in the
drive, and started playing a track. SDL_CDStatus returns CD_PLAYING, and
the CD spins up, but no audio is heard. The HoMM II CD is a bit special
in
that the first track is a data track, but most CD players can handle it
without problems. I’m using SDL_mixer for all other audio; could that be
interfering somehow? This is all taking place on Fedora 8, SDL 1.2.13.

Silly question, but do you have your CD drive hooked up to your sound card?
SDL’s audio playback doesn’t read the CD and play through the DSP, it tells
the CD drive to start audio playback in hardware.

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Well, I can listen to the CD fine through Soundjuicer, so I assume it’s set
up correctly.

Sound Juicer is a CD ripping program, it’s very possible that it’s reading
the CD and playing it through your system sound device. What about a simple
standalone CD player like KCD or the gnome panel applet?

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

I can’t seem to find either of your suggestions (the gnome applet was
removed in Gnome 2.0) but gnome-cd plays the CD just fine.

Cheers,
JoshOn Mon, Oct 13, 2008 at 11:24 AM, Sam Lantinga wrote:

Well, I can listen to the CD fine through Soundjuicer, so I assume it’s
set
up correctly.

Sound Juicer is a CD ripping program, it’s very possible that it’s reading
the CD and playing it through your system sound device. What about a
simple
standalone CD player like KCD or the gnome panel applet?

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Some desktops and laptops don’t even have an analog CD line. The only ones
that come to mind right now are the older iMacs. I think there is a digital
audio option in gnome-cd that could be checked or unchecked to test for
this.
If it is an actual drive in a desktop, as said the first thing to check is
if the analog audio drive is even plugged into the sound card/motherboard as
many programs may just be set up to default to digital if the CD-ROM doesn’t
even report an analog line. Just a guess, I’ve had two integrated systems
with no analog line, and I had to tell everything to use digital before I
could get any audio.

ErikOn Mon, Oct 13, 2008 at 10:54 AM, Josh Matthews wrote:

I can’t seem to find either of your suggestions (the gnome applet was
removed in Gnome 2.0) but gnome-cd plays the CD just fine.

Cheers,
Josh

On Mon, Oct 13, 2008 at 11:24 AM, Sam Lantinga wrote:

Well, I can listen to the CD fine through Soundjuicer, so I assume it’s
set
up correctly.

Sound Juicer is a CD ripping program, it’s very possible that it’s reading
the CD and playing it through your system sound device. What about a
simple
standalone CD player like KCD or the gnome panel applet?

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I did some playing in XMMS and I discovered that the CD only plays audio in
digital audio extraction mode, so it looks like there’s a cable missing.
Does that mean that I can’t do anything about it? Why doesn’t SDL have this
functionality?

Cheers,
JoshOn Mon, Oct 13, 2008 at 12:39 PM, Erik <libsdl.org at mail.obsequious.org>wrote:

Some desktops and laptops don’t even have an analog CD line. The only ones
that come to mind right now are the older iMacs. I think there is a digital
audio option in gnome-cd that could be checked or unchecked to test for
this.
If it is an actual drive in a desktop, as said the first thing to check is
if the analog audio drive is even plugged into the sound card/motherboard as
many programs may just be set up to default to digital if the CD-ROM doesn’t
even report an analog line. Just a guess, I’ve had two integrated systems
with no analog line, and I had to tell everything to use digital before I
could get any audio.

Erik

On Mon, Oct 13, 2008 at 10:54 AM, Josh Matthews <@Josh_Matthews>wrote:

I can’t seem to find either of your suggestions (the gnome applet was
removed in Gnome 2.0) but gnome-cd plays the CD just fine.

Cheers,
Josh

On Mon, Oct 13, 2008 at 11:24 AM, Sam Lantinga wrote:

Well, I can listen to the CD fine through Soundjuicer, so I assume it’s
set
up correctly.

Sound Juicer is a CD ripping program, it’s very possible that it’s
reading
the CD and playing it through your system sound device. What about a
simple
standalone CD player like KCD or the gnome panel applet?

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

It sounds a little out of the scope of SDL, honestly.

-bill!On Mon, Oct 13, 2008 at 02:16:58PM -0400, Josh Matthews wrote:

I did some playing in XMMS and I discovered that the CD only plays audio
in digital audio extraction mode, so it looks like there’s a cable
missing. Does that mean that I can’t do anything about it? Why doesn’t
SDL have this functionality?

It sounds a little out of the scope of SDL, honestly.

Frankly, we should probably drop the CD audio stuff completely from 1.3,
if we haven’t already.

(and maybe provide some drop-in code that does digital audio extraction
that legacy code can use for games that shipped with CD audio tracks.)

–ryan.

It sounds a little out of the scope of SDL, honestly.

Frankly, we should probably drop the CD audio stuff completely from 1.3,
if we haven’t already.

(and maybe provide some drop-in code that does digital audio extraction
that legacy code can use for games that shipped with CD audio tracks.)

That sounds like a good idea to me. Actually the Mac OS X CD support
has always worked that way under the hood. :slight_smile:

See ya!
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

SL> That sounds like a good idea to me. Actually the Mac OS X CD support
SL> has always worked that way under the hood. :slight_smile:

If you/somebody who wants to work on it has some need for it,
please contact me, I did some coding on dae for windows
(w2000/xp/vista) using ioctl calls (surely no drop-in sources
for sdl, but a nice start for sure).
The main reason for it was that under Vista the mci calls
(as used by sdl) have some serious flaws like non-detectable
sector offsets, no stop-signalling etc.