Welcome, Guest. Please login or register.

Author Topic: MASPlayer users wanted  (Read 4631 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
MASPlayer users wanted
« on: September 19, 2005, 02:52:25 PM »
Hi peeps,
 I've bugfixed and optimised the MHI libraries for the MASPlayer.

Just wondering if anyone here who has one (especially the older 'Standard' model, I've only got the newer 'Pro' to test with) could download them and give them a test with AmigaAmp or any other MHI aware MP3 player and see if there's less CPU.

 I noticed a slight speedup on my 040/40, but I dunno how well they'll work on a plain 68000 or '020..UAE tests show they should be quicker too, but there's nothing like real world tests.

Beta MHI MASPlayer libs

TIA,
Doobrey
On schedule, and suing
 

Offline doctorq

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show only replies by doctorq
Re: MASPlayer users wanted
« Reply #1 on: September 19, 2005, 04:10:13 PM »
Sounds interesting. I have both versions of the MAS Player, so I will give it a try. Unfortunately the standard version is at my parents house :-(

As I haven't got any CPU meters installed, can you recommend one for testing???
 

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: MASPlayer users wanted
« Reply #2 on: September 19, 2005, 06:15:01 PM »
Scout is pretty good. Select task and you can see the CPU use of every task running. IIRC, with AmigaAmp you need to look for 'AmigaAmp Player Task'.
  My A4000 used 0.5% idling and 3-3.5% when transferring data to the MASPlayer...although the AmigaAmp GUI used 30% :-o

 The original MHI dev archive has a couple of CLI based MP3 players, that are good for testing too, as they use a lot less resources than AmigaAmp.
On schedule, and suing
 

Offline Dragster

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 1003
  • Country: mx
  • Gender: Male
    • Show only replies by Dragster
Re: MASPlayer users wanted
« Reply #3 on: September 19, 2005, 07:45:14 PM »


Is there any chance dfor Delfina development?

 :-)

Cheers
Amiga 1200T 603/240, 060/50, SCSI II, Plextor 40/12/40S SCSI CDRW, Plextor 40X SCSI CDROM, Fujitsu 36GB 10KRPM SCSI HD, Pioneer 305S SCSI DVD, BVisionPPC, 256 MB FASTRAM, PowerFlyer EIDE, Scandex external scandoubler, ZIV busboard, Algor USB, Wireless, repulse audio...Peg II Quadruple boot: OS4.1FE/MorphOS 3.9 regged, OpenSUSE11.1 & Debian Squeeze, Powerbook G4 1139 MorphOS3.9, A4000D CSPPC/PIV/DENEB OS3.9/4.1FE, A4000T CSPPC/CVPPC/SCSI, etc.. 2
 

Offline MozzerFan

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 607
  • Country: 00
    • Show only replies by MozzerFan
Re: MASPlayer users wanted
« Reply #4 on: September 20, 2005, 12:22:02 AM »
Hi,

I have a MASPlayer pro and tested the new beta-libs.
Unfortanately there's still a bug in it that was already there with the old version. When I'm playing an MP3 with
a sampling-rate lower than 44 Khz (for example a 96 kbit mp3 at 22 Khz) playback is taking place, but I can hear no sound at all. All is well with a 96 kbit at 44 Khz MP3.
It happens with plain MP3's but also when playing shoutcast
streams. I already mailed Paul Quereshi about this, but unfortunatly he no longer has an Amiga with a developer environment. He did say it probably was a timing problem. With normal Mp3's it's not much of a problem, because the mas-player can easily cope with higher bitrates and sampling rates,  but I listen to internet radio quite a lot, so I hope you can look into it.
Thanks anyway for your efforts.

Greetings,
Lloyd
 

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: MASPlayer users wanted
« Reply #5 on: September 20, 2005, 03:55:11 AM »
Quote

MozzerFan wrote:
Unfortanately there's still a bug in it that was already there with the old version. When I'm playing an MP3 with a sampling-rate lower than 44 Khz (for example a 96 kbit mp3 at 22 Khz) playback is taking place, but I can hear no sound at all. All is well with a 96 kbit at 44 Khz MP3.


Hmm, I got a sneaky feeling it's a limitation of the hardware. I remember having the same problem on low rates myself when I first got the MASPlayer, and got in touch with Paul about it, he seemed to think the same too at the time. I'll have a look though and see if there's anything I can do about it.

Thanks for trying it though. I found out that there's no difference on an '040/40, but '020 and '000 should benefit from less CPU use. I'm just looking at trying to stop the playback stuttering when you change volume on 192kbit MP3s.
On schedule, and suing
 

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: MASPlayer users wanted
« Reply #6 on: September 20, 2005, 04:08:00 AM »
Quote

Dragster wrote:
Is there any chance dfor Delfina development?


Sorry Dragster, I don't have a Delfina :-(
On schedule, and suing
 

Offline MozzerFan

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 607
  • Country: 00
    • Show only replies by MozzerFan
Re: MASPlayer users wanted
« Reply #7 on: September 20, 2005, 01:11:54 PM »
QUOTE:
-----------------------------------------------------------
Hmm, I got a sneaky feeling it's a limitation of the hardware. I remember having the same problem on low rates myself when I first got the MASPlayer, and got in touch with Paul about it, he seemed to think the same too at the time. I'll have a look though and see if there's anything I can do about it.

Thanks for trying it though. I found out that there's no difference on an '040/40, but '020 and '000 should benefit from less CPU use. I'm just looking at trying to stop the playback stuttering when you change volume on 192kbit MP3s.
-----------------------------------------------------------


Actually I don't think it's a limitation of the hardware,
because masmpeg.device in combination with Amplifier plays
low rates just fine. Anyway thanks for looking into it.

I have a 060/50 myself so I can't really say something usefull on the stuttering when changing volume issue.

Thanks again for updating the software.

Greetings,
Lloyd
 

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: MASPlayer users wanted
« Reply #8 on: September 20, 2005, 02:44:50 PM »
Quote

MozzerFan wrote:
Actually I don't think it's a limitation of the hardware,
because masmpeg.device in combination with Amplifier plays
low rates just fine.


Hmm, does that mean you can use mhimdev.library with masmpeg.device to listen to internet radio OK?

I'm not gonna admit defeat just yet :hammer:
On schedule, and suing
 

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: MASPlayer users wanted
« Reply #9 on: September 22, 2005, 04:35:25 PM »
Woohoo.. I finally got it to work with <32Khz streams (ie MPEG2/2.5).
Bad news is that changing volume when playing at these frequencies locks up the hardware  :madashell: Oh well, just another little bug to fix !

Ah well, thanks for the kick up the arse about it not being a hardware limitation..the problem was the MAS reads the state of the config pins on reset, and one of the pins was set so it would only play MPEG1. Luckily the MAS can be sent a new init sequence to override these settings.
On schedule, and suing
 

Offline platon42

  • Hero Member
  • *****
  • Join Date: Jul 2002
  • Posts: 573
    • Show only replies by platon42
    • http://www.platon42.de/
Re: MASPlayer users wanted
« Reply #10 on: September 22, 2005, 06:35:45 PM »
You need to be talking reeeealllyy slow with the MAS Chip on I2C while decoding data, because it will, as you already noticed, crash otherwise (seems like this depends on the bitrate (AFAIR), hence the lower the bitrate, the less frequently you may send I2C data. Also, limit the number of volume change operations you're sending to a minimum will help. If you're interested in the masmpeg.device source, let me know.
--
Regards, Chris Hodges )-> http://www.platon42.de <-(
hackerkey://v4sw7CJS$hw6/7ln6pr7+8AOP$ck0ma8u2LMw1/4Xm5l3i5TJCOTextPad/e7t2BDMNb7GHLen5a34s5IMr1g3/5ACM
 

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: MASPlayer users wanted
« Reply #11 on: September 23, 2005, 12:40:21 AM »
Cheers for the offer Chris..your memory is as bad as mine, you already sent the sources to me last year :lol:

I'm finally getting somewhere after many compiles&tests tonight, can now change volume at low rates without hanging..
 Dunno if anyone is interested, but I found out you don't have to do slow I2C. There's a wait period between every couple of bytes, the lower the sample frequency the longer the wait period needed. {bleep}ing datasheet says max of 4ms, but I had to up it to 6ms to stop the MAS hanging.
 
With any luck,there'll be a new beta at the weekend.
On schedule, and suing
 

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: MASPlayer users wanted
« Reply #12 on: September 23, 2005, 11:20:47 PM »
I think I cracked it..
 New beta version of the mhimaspro.library here (Std version will come later if this one works OK)

Changes:
  Now plays lower bitrates. (tested with 56kbps/22Khz)
  Also stopped the playback stuttering when changing volume with 192kbps audio, but it's at the expense of making volume changes slightly laggy.
  Plus a few little bugfixes and cleanups..

Hopefully this is close to being finished, be glad to hear any feedback.



On schedule, and suing
 

Offline MozzerFan

  • Hero Member
  • *****
  • Join Date: Mar 2005
  • Posts: 607
  • Country: 00
    • Show only replies by MozzerFan
Re: MASPlayer users wanted
« Reply #13 on: September 24, 2005, 07:52:55 PM »
Works great here. Like you said, volume changes are a bit slow, but I sure can live with that.
Thanks very very much for this update.

Greetings,
Lloyd
 

Offline doctorq

  • Hero Member
  • *****
  • Join Date: Aug 2003
  • Posts: 2082
    • Show only replies by doctorq
Re: MASPlayer users wanted
« Reply #14 on: October 10, 2005, 10:11:09 AM »
@Doobrey

Sorry for digging this old thread up, but I just wanted to give my contribution as well. Here you can see the original mhimaspro.library being used, and compared to using  the new mhimaspro.library, the old one uses much more CPU power.

Thanks for the new library, but some final questions... Will you make a new library for the standard version as well (at least my A4000D will appreciate it :-))? And will you upload the new libraries to Aminet?