[gstreamer-bugs] [Bug 118033] Autodetect audiosink at run-time

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Sat Mar 5 06:15:51 PST 2005


Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=118033
 GStreamer | gst-plugins | Ver: HEAD CVS





------- Additional Comments From Ronald Bultje  2005-03-05 09:15 -------
Hi, we now have a gconfaudiosink and a autoaudiosink in CVS. The gconfaudiosink
wraps the GConf keys. The idea is that the default value will be autoaudiosink
sometime soon.

Autoaudiosink tries all available audiosinks in order of their rank (currently:
alsa, oss). This works for almost all cases, except the soundservers. The idea
for those is to add an interface of some sort that we can call in the NULL
element state to see if the soundserver is running. If so, we use that, else, we
go to next. So the algorhythm is:

audiosinks = get_by_category ("Sink/Audio").order_by_rank
for try in audiosinks; do
  if try.is_sound_server; then
    if try.sound_server_is_running; then
      if try.set_state (READY); then
        return try
      fi
    fi
  fi
done

for try in audiosinks; do
  if !try.is_sound_server; then
    if try.set_state (READY); then
      return try
    fi
  fi
done

That piece of logic hasn't been implemented yet. Once that's done, I consider
this bug fixed.

------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list