Too many interrupts...

  • 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?


    • Bram Avontuur

      Bram Avontuur - 2009-01-25


      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.



Log in to post a comment.