Open /dev/sequencer no such devices

hi, I try to use SDL to play a mp3
so I have the follow code

#include
#include <stdlib.h>
#include “SDL.h”
#include "SDL_mixer.h"
using namespace std;

int main(int argc, char *argv[])
{
SDL_Init(SDL_INIT_AUDIO);
Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 2048);
Mix_Music *pMusic = Mix_LoadMUS("/home/elekis/music/saez/Plage.mp3");
Mix_PlayMusic(pMusic,0);
Mix_FreeMusic(pMusic);
Mix_CloseAudio();
SDL_Quit();
}

but when I compil and execute that, I have

open /dev/sequencer : no such device.

but my sound card perfecly work (xmms , and other work and I have sounds)

what must I do to play a mp3
and why he use the sequencer??? sequencer is for midi sound?? no??

thanks

Ps I have that prob with all games who use sdl library.
thanks-------------

other information

 #-->ls /dev/sequencer -la

crw-rw-rw- 1 root audio 14, 1 Feb 11 2004 /dev/sequencer

lspci
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 60)

/dev/sequencer is provided by OSS not ALSA
make sure your kernel has support for OSS and/or the ALSA OSS compat library

or, make sure you’ve built libsdl with alsa support
-mikeOn Tuesday 07 September 2004 03:02 am, elekis wrote:

but when I compil and execute that, I have

open /dev/sequencer : no such device.

And of course, don’t forget to actually load the ALSA OSS compatibility
module and MIDI modules. They often aren’t loaded by default.

SteveOn September 7, 2004 08:20 pm, Mike Frysinger wrote:

On Tuesday 07 September 2004 03:02 am, elekis wrote:

but when I compil and execute that, I have

open /dev/sequencer : no such device.

/dev/sequencer is provided by OSS not ALSA
make sure your kernel has support for OSS and/or the ALSA OSS compat
library

or, make sure you’ve built libsdl with alsa support

An application that needs only PCM sound, and not MIDI, should not fail
because /dev/sequencer isn’t available. (I’d guess that SDL_mixer is
setting up Timidity; neither SDL nor SDL_mixer actually touch it
themselves.)On Tue, Sep 07, 2004 at 06:50:38PM -0400, Mike Frysinger wrote:

On Tuesday 07 September 2004 03:02 am, elekis wrote:

but when I compil and execute that, I have

open /dev/sequencer : no such device.

/dev/sequencer is provided by OSS not ALSA
make sure your kernel has support for OSS and/or the ALSA OSS compat library

or, make sure you’ve built libsdl with alsa support


Glenn Maynard

Glenn Maynard wrote:> On Tue, Sep 07, 2004 at 06:50:38PM -0400, Mike Frysinger wrote:

On Tuesday 07 September 2004 03:02 am, elekis wrote:

but when I compil and execute that, I have

open /dev/sequencer : no such device.

/dev/sequencer is provided by OSS not ALSA
make sure your kernel has support for OSS and/or the ALSA OSS compat library

or, make sure you’ve built libsdl with alsa support

An application that needs only PCM sound, and not MIDI, should not fail
because /dev/sequencer isn’t available. (I’d guess that SDL_mixer is
setting up Timidity; neither SDL nor SDL_mixer actually touch it
themselves.)

It’s not timidity. Timidity doesn’t use /dev/sequencer. Playmidi,
in the directory native_midi_gpl/, uses /dev/sequencer.

Greg

Stephen Anthony wrote:

but when I compil and execute that, I have

open /dev/sequencer : no such device.

/dev/sequencer is provided by OSS not ALSA
make sure your kernel has support for OSS and/or the ALSA OSS compat
library

or, make sure you’ve built libsdl with alsa support

I did apt-get install …-dev etc…Etc…
so how can I do to insgtall again with alsa???

And of course, don’t forget to actually load the ALSA OSS compatibility
module and MIDI modules. They often aren’t loaded by default.

can you explain how please.
is it in the kenel?? if yes, where please??

thanks a lot.

PS my sound card

#–>lspci |grep audio
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 60)

thanks a lot.

a++>On September 7, 2004 08:20 pm, Mike Frysinger wrote:

On Tuesday 07 September 2004 03:02 am, elekis wrote:

Steve


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

elekis wrote:

Stephen Anthony wrote:

but when I compil and execute that, I have

open /dev/sequencer : no such device.

/dev/sequencer is provided by OSS not ALSA
make sure your kernel has support for OSS and/or the ALSA OSS compat
library

or, make sure you’ve built libsdl with alsa support

I did apt-get install …-dev etc…Etc…
so how can I do to insgtall again with alsa???

And of course, don’t forget to actually load the ALSA OSS
compatibility module and MIDI modules. They often aren’t loaded by
default.

can you explain how please. is it in the kenel?? if yes, where please??

thanks a lot.

PS my sound card
#–>lspci |grep audio
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 60)

thanks a lot.

a++

Steve


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

for timidity
I always that msg. (I m not sure that it’s a sdl rapport)

Thu Sep 09 && elekis at carla && ~
#–>timidity Celoso.mid
/etc/timidity/freepats.cfg: No such file or directory
timidity: Can’t read any configuration file.
Please check /etc/timidity/timidity.cfg

help please

a+++>> On September 7, 2004 08:20 pm, Mike Frysinger wrote:

On Tuesday 07 September 2004 03:02 am, elekis wrote:

elekis wrote:

for timidity
I always that msg. (I m not sure that it’s a sdl rapport)

“That” msg is not the same as the error message below.

Thu Sep 09 && elekis at carla && ~
#–>timidity Celoso.mid
/etc/timidity/freepats.cfg: No such file or directory
timidity: Can’t read any configuration file.
Please check /etc/timidity/timidity.cfg

I’m not sure where this message is coming from, either. Timidity,
I guess, but the version I have doesn’t seem to send this message.
Anyhow, did you do as suggested? Look in /etc/timidity/timidity.cfg,
if this file exists, and see what is there. If there is a statement
"source freepats.cfg" there, but there is no file freepats.cfg,
then that’s your problem.

Here’s the situation. For timidity to work, you have to have
a set of GUS .pat files on your system, and timidity has to
be able to find them. One such set of .pat files is the
freepats set, available at http://freepats.opensrc.org/.
Perhaps you have these. If not, perhaps you want to get
them.

Then, for timidity to find the .pat files, it has to find
its configuration file, named “timidity.cfg”. One standard
place for this file is in the directory /etc/timidity/, and
another standard place is in the directory
/usr/local/lib/timidity/. This message you got suggests
that timidity is looking in the first place, but the message
might be misleading, so check both places. If you find
the file on your system, you want to somehow fix things
so timidity can find it. If, for example, you have the
file “timidity.cfg” and the .pat files in /usr/local/lib/timidity/.
it might work to cd to /etc and “ln -s /usr/local/lib/timidity”.

If you don’t have “timidity.cfg” anywhere, you probably want
to download and install the freepats set of patches, because
that will have a sample “timidity.cfg” file. If you do
have “timidity.cfg”, take a look at its contents. The GUS
.pat files and .cfg files should either be in the same
directory as “timidity.cfg”, or else there should be a
statement "dir " that says where they are to
be found.

There are other sets of GUS .pat files. The “eawpats” set
is more complete than “freepats”, but it doesn’t seem to
be available any more. At least, I can’t find it on the
net. If you want to go to the trouble, you can construct
sets of .pat files from soundfonts using my utility program
"unsf", which is in the distribution of the midi player "gt"
at ftp://ling.lll.hawaii.edu/pub/greg/gt-0.3.tar.gz.

Greg