1. 08 Sep, 2008 8 commits
    • Eric Wong's avatar
      alsa: get rid of the needless canPause flag · f1f1104b
      Eric Wong authored
      We never use it for anything anyways as we release the device
      entirely on pause.
      f1f1104b
    • Eric Wong's avatar
      alsa: capitalize "ALSA" consistently in messages · fa246e02
      Eric Wong authored
      That's the name of this project.
      fa246e02
    • Eric Wong's avatar
      alsa: optimistically try resuming from suspend · 7bd98c08
      Eric Wong authored
      Apparently snd_pcm_hw_params_can_resume() can return false even
      though my hardware does in fact support resuming.  So stop
      carrying that value in the canResume flag and just try to resume
      when we're in the suspended state; falling back to
      snd_pcm_prepare only if resuming fails.  libao does something
      similar on resume, too.
      
      While we're at it, use the E() macro which will enable us to
      have better error reporting.
      
      [mk: remove the E() macro stuff]
      7bd98c08
    • Max Kellermann's avatar
      strset: fix duplicate values · da1e8584
      Max Kellermann authored
      Due to a minor typo, the string set had duplicate values, because
      strset_add() didn't check the base slot properly.
      da1e8584
    • Max Kellermann's avatar
      use strset.h instead of tagTracker.h · f0e64ceb
      Max Kellermann authored
      With a large music database, the linear string collection in
      tagTracker.c becomes very slow.  We implemented that in a
      quick'n'dirty fashion when we removed tree.c, and now we rewrite it
      using the fast hashed string set.
      f0e64ceb
    • Max Kellermann's avatar
      added string set library · 2b8040b4
      Max Kellermann authored
      "struct strset" is a hashed string set: you can add strings to this
      library, and it stores them as a set of unique strings.  You can get
      the size of the set, and you can enumerate through all values.
      
      This will be used to replace the linear tagTracker library.
      2b8040b4
    • Max Kellermann's avatar
      output: const plugin structures · 3f6fe915
      Max Kellermann authored
      Since the plugin struct is never modified, we should store it in
      constant locations.
      3f6fe915
    • Max Kellermann's avatar
      output: static audio_output_plugin list as array · be046b25
      Max Kellermann authored
      Instead of having to register each output plugin, store them
      statically in an array.  This eliminates the need for the List library
      here, and saves some small allocations during startup.
      be046b25
  2. 07 Sep, 2008 32 commits