Smpeg and SDL audio!?

I just added code to call the mixer library functions to open audio and
load and play some sounds in my upcoming game “VidSlide,” and I’m noticing
that when I do this, audio streams from the MPG’s aren’t being played!

SMPEG_() and SDL_() functions aren’t giving me any errors or warnings.

If I disable mixer calls, it works fine.

Also, I noticed that if I load an MPEG twice (which means loading once,
setting audio and looping, and then playing the MPEG… then stopping the
MPEG and deleting it, and then loading, setting audio/looping and playing
a second time), the MPEGs audio will then start playing…

…However… then all of my mixer sounds stop playing!

I’m currently using SDL 0.11.2. I don’t see a version number for mixer,
but it’s the one that came in SDL 0.11.2’s examples archive.
I’m using SMPEG 0.2.7, which also came with SDL 0.11.2’s examples.

Would an upgrade to 1.0 fix this? Or am I finding a new bug? :slight_smile:

-bill!

I said:

> I'm currently using SDL 0.11.2. I don't see a version number for mixer, > but it's the one that came in SDL 0.11.2's examples archive. > I'm using SMPEG 0.2.7, which also came with SDL 0.11.2's examples.

I just noticed SMPEG 0.3.1 is available. I tried it, and still the same
problems. <:^(

-bill!

Ahhhh… you need to use mixer 1.0, from the Loki public CVS repository
cvs.lokigames.com, and smpeg 0.3.2 from the same place, and then configure
smpeg with --enable-mixer

Everything should work fine then. I’m going to put them on the SDL library
pages today.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Ahhhh… you need to use mixer 1.0, from the Loki public CVS repository
cvs.lokigames.com, and smpeg 0.3.2 from the same place, and then configure
smpeg with --enable-mixer

Everything should work fine then. I’m going to put them on the SDL library
pages today.

I’ll try it. Thanks! :slight_smile: :slight_smile:

-bill!

Hi all,

(Sorry for this particularly lame question.)

I’m looking at using SDL on an embedded system. This will have
limited HDD space (and no monitor anyway) so installing X isn’t
an option. But I still want to use SDL (I will be using SDL
surfaces to do image manipulation which will be displayed on
custom hardware.)

When I try to make SDL on a system with no X, SDL won’t build
(at least, not out of the box).

This leaves me wondering what the best course of action is.
Should I:

o Build SDL as usual on a system with X, then copy the libs
to the non-X system (which could mean unpredictable run-time
errors when the X libs aren’t found) I could see this
working acceptably so long as I didn’t attempt to call any
SDL functions that implicitly update the X display.

o Edit the makefile/source tree to remove all references to
X to build SDL without any reference to X.

o other?

Any ideas appreciated.

Thanks,

Steve Madsen
H2Eye Ltd
24-28 Hatton Wall
London EC1N 8JH
Tel: +44-171-404-9600
Fax: +44-171-404-9490
Email: @Steve_Madsen

Hi all,

(Sorry for this particularly lame question.)

I’m looking at using SDL on an embedded system. This will have
limited HDD space (and no monitor anyway) so installing X isn’t
an option. But I still want to use SDL (I will be using SDL
surfaces to do image manipulation which will be displayed on
custom hardware.)

When I try to make SDL on a system with no X, SDL won’t build
(at least, not out of the box).

There might be header dependencies, but if you configure SDL with
–disable-video-x11, it will have no X11 library dependencies.

I can update the source so that if you configure it that way it
has no X11 header dependencies as well, but in the mean time, you
should be able to build it on a box without X and use the libraries
on a box with no X.

See ya,
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Hello,
I wonder if the new GGI option in SDL would let you run SDL programs
bypassing X window?
I have not read the documentation about his topic but it would be a
good choice …
Also, there is the option of using the frame-buffer console for doing
graphics without X window.

byeOn Sat, 11 Dec 1999, Steve Madsen wrote:

Hi all,
I’m looking at using SDL on an embedded system. This will have
limited HDD space (and no monitor anyway) so installing X isn’t
an option. But I still want to use SDL (I will be using SDL
surfaces to do image manipulation which will be displayed on
custom hardware.)

When I try to make SDL on a system with no X, SDL won’t build
(at least, not out of the box).

This leaves me wondering what the best course of action is.
Should I:

o Build SDL as usual on a system with X, then copy the libs
to the non-X system (which could mean unpredictable run-time
errors when the X libs aren’t found) I could see this
working acceptably so long as I didn’t attempt to call any
SDL functions that implicitly update the X display.

o Edit the makefile/source tree to remove all references to
X to build SDL without any reference to X.

o other?

Any ideas appreciated.

Thanks,

Steve Madsen
H2Eye Ltd
24-28 Hatton Wall
London EC1N 8JH
Tel: +44-171-404-9600
Fax: +44-171-404-9490
Email: steve at h2eye.com