Shop OBEX P1 Docs P2 Docs Learn Events
prop mp3 player — Parallax Forums

prop mp3 player

mctriviamctrivia Posts: 3,772
edited 2009-03-30 14:54 in Propeller 1
we now have a great wav player and it has been mention mp3 may be possible here. I would like to encourage the development of this so I am offering a propmod with uSD card reader and RTC free to the first to develop one capable of playing at minimum 90 kbps mono mp3 on 2 pins. stereo prefered though.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.

Comments

  • RaymanRayman Posts: 14,826
    edited 2009-03-27 20:29
    I looked into this into some depth last year, enough to convince myself that it isn't possible with Prop I.

    Here's some notes:

    http://www.rayslogic.com/propeller/Programming/RaysStuff/MP3/MP3.htm
  • mctriviamctrivia Posts: 3,772
    edited 2009-03-27 20:44
    If programed in pasm over a few cogs the code space could be reused. I am willing to accept that the cog can only be loaded once and must be kept running. Also a 64kb eeprom can be used in place of the normal 32kb giving you more space for code and tables. Though at a lower speed then hub ram.

    It is probably difficult but i am sure there is some way to do it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.
  • mctriviamctrivia Posts: 3,772
    edited 2009-03-27 21:06
    i know chips like this exist. even an object in obex for 1 of these chips. I want to add the mp3 player option to a product already build. using wav player now with 2gb uSD card.

    Not to mention would be great just to have this as 1 more thing the prop can do without any extra hardware(other then the SD card for file storage and possibly larger eeprom for code storage 64kb are almost same price and pin compatible to 32kb)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.

    Post Edited (mctrivia) : 3/27/2009 10:28:37 PM GMT
  • hinvhinv Posts: 1,255
    edited 2009-03-29 19:07
    @Rayman,

    Was the main limitation memory? Do you think that with external memory attached the prop would have enough processing prower in 1 or 2 cogs?

    Thanks,
    Doug
  • mctriviamctrivia Posts: 3,772
    edited 2009-03-29 19:44
    i would be happy with 3 or 4 the prop is powerful enough that mundane task now that i use a whole cog for, for simplicity could easily be interlaced into 1 cog in pasm.

    32kb of memory is not very much. but if you can use the upper 32k of an eeprom for slow tables and load faster tables into cog ram over 3 or 4 cogs you could gain a fair bit of extra space.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.
  • RaymanRayman Posts: 14,826
    edited 2009-03-29 23:10
    memory is a problem, but processing power is the fundamental limit. With no single cycle multiply instruction, it just doesn't have processing power for real-time mp3 decode...
  • mctriviamctrivia Posts: 3,772
    edited 2009-03-29 23:20
    ya unfortunately there are no 1 cycle instructions. it takes 64 cycles(16 instructions) to do 8x8 multiply. [noparse]:([/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Need to make your prop design easier or secure? Get a PropMod has crystal, eeprom, and programing header in a 40 pin dip 0.7" pitch module with uSD reader, and RTC options.
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2009-03-30 08:48
    It would probably make more sense to cater for 'Ogg Vorbis' rather than Mp3 due to licensing issues and associated cost - if and when this becomes a reality - most likely prop2 though.

    Regards,
    John Twomey

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'

    Those who can, do.Those who can’t, teach.
  • AleAle Posts: 2,363
    edited 2009-03-30 13:27
    Vorbis is a bit more processor intensive than mp3 is :-( (AFAIK) so it would not be feasible. I'd like to be proven wrong on this, any takers ?
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2009-03-30 14:50
    Ale - Have a look at 'Tremor' Implementation of Vorbis .. very doable in prop2..

    I am sure any extra code overhead for vorbis far outweighs the associated cost of incorporating Mp3 decoding - with a minimum fee per year - if one decides to sell something that incorporates mp3 decoding. - with a minimum of something like $15,000 PA. !!


    http://www.xiph.org/vorbis/

    Regards,
    John Twomey

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'

    Those who can, do.Those who can’t, teach.

    Post Edited (QuattroRS4) : 3/30/2009 3:07:15 PM GMT
  • lonesocklonesock Posts: 917
    edited 2009-03-30 14:54
    If you are open to other formats, check out CELT.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    lonesock
    Piranha are people too.
Sign In or Register to comment.