Bad MP3 support in QNX MediaPlayer

Hi
Today I got my SB 16 under QNX RTP (via disabling PnP OS in BIOS) and tried
to play some MP3s via MediaPlayer.
And I was completely disappointed. Music stops for a moment when I switch
Photon consoles, open an image file and so on.
What about superb preemptive, priority based multitasking? In Win95/98 (not
to mention NT) MP3s are played much
smoother! How can it be?!

btr <btr_@mail.ru> wrote in message news:8s4ads$o4b$1@inn.qnx.com

Hi
Today I got my SB 16 under QNX RTP (via disabling PnP OS in BIOS) and
tried
to play some MP3s via MediaPlayer.
And I was completely disappointed. Music stops for a moment when I switch
Photon consoles, open an image file and so on.
What about superb preemptive, priority based multitasking? In Win95/98
(not
to mention NT) MP3s are played much
smoother! How can it be?!

Maybe a few priorities need to be twiddled a bit?? :slight_smile:

i.e. not the fault of the O.S.! Maybe the fault of the Media Player (or
other) package designers?

Today I got my SB 16 under QNX RTP (via disabling PnP OS in BIOS) and
tried
to play some MP3s via MediaPlayer.
And I was completely disappointed. Music stops for a moment when I switch
Photon consoles, open an image file and so on.
What about superb preemptive, priority based multitasking? In Win95/98
(not
to mention NT) MP3s are played much
smoother! How can it be?!

That is weird…I can run the full gambit of stuff (voyager, pterms,
compile, help, image viewer opening 1280x1024)
and my *.mp3s run fine. Not a single hickup or even twitch when switching
from window to window…I have
a P-III 600 with a Ensonique Audio PCI (ES1371) but even with a slower CPU
you shouldn’t have any
problems…

Later…

~ Lee R. Copp
~ Project Engineer (EE/ME)
~ Michigan Scientific Corp.
~ 321 East Huron St.
~ Milford, MI 48381
~ 248-685-3939 x109 (V), 248-684-5406 (Fx)
~ http://www.michiganscientific.com
~ mailto:<Lee.R.Copp@MichiganScientific.com>

a P-III 600 with a Ensonique Audio PCI (ES1371) but even with a slower CPU
you shouldn’t have any
problems…
Well, I have P-233MMX & ISA SoundBlaster 16 PnP and I have problems.



Later…

~ Lee R. Copp
~ Project Engineer (EE/ME)
~ Michigan Scientific Corp.
~ 321 East Huron St.
~ Milford, MI 48381
~ 248-685-3939 x109 (V), 248-684-5406 (Fx)
~ > http://www.michiganscientific.com
~ mailto:> <Lee.R.Copp@MichiganScientific.com>

btr <btr_@mail.ru> wrote in message news:8s4ads$o4b$1@inn.qnx.com

Hi
Today I got my SB 16 under QNX RTP (via disabling PnP OS in BIOS) and
tried
to play some MP3s via MediaPlayer.
And I was completely disappointed. Music stops for a moment when I switch
Photon consoles, open an image file and so on.
What about superb preemptive, priority based multitasking? In Win95/98
(not
to mention NT) MP3s are played much
smoother! How can it be?!

Sounds like the your MP3 is getting superbly preempted by another task at
higher priority :slight_smile:
You might try “slay -P # phplay” to raise the priority of the media player.
A priority of 11 will put it above most other user apps. If that doesn’t do
it, keep raising it til you see what is pre-empting you.

Ok, I designed the mpegaudio player to use as little RAM as possible to
give smooth playback. The breaks you hear are likely the primary input
buffer underflowing. Are you pulling data over a network or on
a very slow device? It sounds like I set it too small by default.
See the Multimedia Programmers Guide on how to tailor the player.

All you might want to try is:

export MPEGAUDIOBUFFERSIZE=200000 or more.
export MPEGAUDIOBUFFERSTARTPERCENT=99
run phplay from the command line.

I think I set the default to 50000 and 30%. See the Guide. Could you please
try this. If you find
it works better, let me know what you think the default settings should be.
I’ll adjust them for the next patch.

Thanks for your input,
Jim


“btr” <btr_@mail.ru> wrote in message news:8s4ads$o4b$1@inn.qnx.com

Hi
Today I got my SB 16 under QNX RTP (via disabling PnP OS in BIOS) and
tried
to play some MP3s via MediaPlayer.
And I was completely disappointed. Music stops for a moment when I switch
Photon consoles, open an image file and so on.
What about superb preemptive, priority based multitasking? In Win95/98
(not
to mention NT) MP3s are played much
smoother! How can it be?!

\

Just a thought, but it seems that the SB 16 is a common denominator in
these problems (a 16 bit ISA card) while PCI based soundcards (another
poster, and myself) don’t see a problem.

Could it be related to the SB 16 driver or ISA bus in some way?

Regards,
Alex


Sent via Deja.com http://www.deja.com/
Before you buy.

Good thought. I’ll try in monday. I see this when the LAN is really
full and I am getting bursty reads of a server.
<plane_sailing@my-deja.com> wrote in message
news:8s7aa0$ogq$1@nnrp1.deja.com

Just a thought, but it seems that the SB 16 is a common denominator in
these problems (a 16 bit ISA card) while PCI based soundcards (another
poster, and myself) don’t see a problem.

Could it be related to the SB 16 driver or ISA bus in some way?

Regards,
Alex


Sent via Deja.com > http://www.deja.com/
Before you buy.

Huh, I have the same story with Vibra16 on PIII-500. Sure looks like
ISA-sound card problem to me. I can get rid of it of course, but that is
too bad since many people have it.

  • igor

James Boucher wrote:

Good thought. I’ll try in monday. I see this when the LAN is really
full and I am getting bursty reads of a server.
plane_sailing@my-deja.com> > wrote in message
news:8s7aa0$ogq$> 1@nnrp1.deja.com> …
Just a thought, but it seems that the SB 16 is a common denominator in
these problems (a 16 bit ISA card) while PCI based soundcards (another
poster, and myself) don’t see a problem.

Could it be related to the SB 16 driver or ISA bus in some way?

Regards,
Alex


Sent via Deja.com > http://www.deja.com/
Before you buy.

buffer underflowing. Are you pulling data over a network or on
a very slow device? It sounds like I set it too small by default.
No. I read 128kbps MP3 right from my hard-drive. Maybe it’s slow too, but

not as much --:slight_smile:

export MPEGAUDIOBUFFERSIZE=200000 or more.
export MPEGAUDIOBUFFERSTARTPERCENT=99
run phplay from the command line.
Thanks. I will try on holidays.

Boris

Hi
Bad news.

export MPEGAUDIOBUFFERSIZE=200000 or more.
export MPEGAUDIOBUFFERSTARTPERCENT=99
these values, or 5000000 & 99, or 5000000 & 100 or 2000 & 20 had the same

effect - nothing changed.
Sound breaks at console switching in Photon.

Changing priority of phplay via slay -P had no effect too.

BTW, when I switch consoles via -- in series memory
indicator increases its value almost till 100%
and after end of switching it quickly returns to low value.

Any suggestions?

Boris

I heard it might be a problem with ISA PNP related to the need to use
IRQ 5 for the audio card. Are you using IRQ 5 and disabling PNP
in the bios.

“btr” <btr_@mail.ru> wrote in message news:8s9sdi$lr3$1@inn.qnx.com

Hi
Bad news.

export MPEGAUDIOBUFFERSIZE=200000 or more.
export MPEGAUDIOBUFFERSTARTPERCENT=99
these values, or 5000000 & 99, or 5000000 & 100 or 2000 & 20 had the same
effect - nothing changed.
Sound breaks at console switching in Photon.

Changing priority of phplay via slay -P had no effect too.

BTW, when I switch consoles via -- in series memory
indicator increases its value almost till 100%
and after end of switching it quickly returns to low value.

Any suggestions?

Boris

On Thu, 12 Oct 2000 23:36:10 GMT, “James Boucher” <jaboucher@home.com>
wrote:

All you might want to try is:

export MPEGAUDIOBUFFERSIZE=200000 or more.
export MPEGAUDIOBUFFERSTARTPERCENT=99
run phplay from the command line.

I think I set the default to 50000 and 30%. See the Guide. Could you please
try this. If you find
it works better, let me know what you think the default settings should be.
I’ll adjust them for the next patch.

I also have an sb-16 card. I reniced the phplay process to
have a priority 2 higher than the default and all skipping went away.
The skipping happened when a large area of the screen was being
redrawn, especially noticeable with the web browser.

John Stewart

I heard it might be a problem with ISA PNP related to the need to use
IRQ 5 for the audio card. Are you using IRQ 5 and disabling PNP
in the bios.
I sure disabled PnP OS in BIOS. Without this SB simply didn’t recognized by

RTP. And i don’t pass any extra parameters to audiodriver. So think it uses
defaults. But in Win98 my SB uses IRQ 10. How can i check used IRQ under
RTP?

I also have an sb-16 card. I reniced the phplay process to
have a priority 2 higher than the default and all skipping went away.
Can you print exact command you used?



The skipping happened when a large area of the screen was being
redrawn, especially noticeable with the web browser.
Yes. Maybe it’s bug of videodriver? It seems that S3 driver (what i use) too

“beta”.

On Mon, 16 Oct 2000 01:42:09 +0400, “btr” <btr_@mail.ru> wrote:

I also have an sb-16 card. I reniced the phplay process to
have a priority 2 higher than the default and all skipping went away.
Can you print exact command you used?

With the media player not running open a terminal and type:
on -p12 phplay&

That will start it with a priority 2 higher than normal. For
some reason phplay won’t let you renice it, though you can renice the
mpegaudio process, which is how I initially tested it. Sorry for
any confusion.

The skipping happened when a large area of the screen was being
redrawn, especially noticeable with the web browser.
Yes. Maybe it’s bug of videodriver? It seems that S3 driver (what i use) too
“beta”.

I don’t know if it is video card related, I have a voodoo
3-3000. FYI The easiest way I have found to cause the stuttering is
to load a 10+ page long web page and then quickly scroll from top to
bottom and back again repeatedly.

John Stewart