Too many interrupts...

General
2009-01-24
2013-04-16
  • Corrado Primier

    Corrado Primier - 2009-01-24

    Hi! First of all, thanks for mp3blaster, it's my favorite commandline player.
    Today I ran for the first time powertop while using mp3blaster and... horror! Thousands of wakeups per second... that's very bad for battery life, a good system only wakes up a few tens of times per second. From a quick look at the code, it seems it's because of usleep(), but I'm not really a coder and I have no idea how to substitute them with something less power hungry... do you think you can do something?

    Thanks,
    Corrado

     
    • Bram Avontuur

      Bram Avontuur - 2009-01-25

      Hey,

      The problem you describe is inherent to the current, synchronous, implementation of the decoding of the various sound formats. To solve the problem properly, the audio decoding routines should be rewritten such that they are event-driven. This is not an overly trivial task, however, so chances are slim this will happen any time soon.

      Bram

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks