How to bind ossxmix with gnome control volume

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

rrodriguez1975
Member
Posts: 14
Joined: Fri Apr 26, 2013 10:40 am

How to bind ossxmix with gnome control volume

Postby rrodriguez1975 » Sun Apr 28, 2013 10:29 am

I would like to know if it is possible to fully integrate ossxmix with gnome control volume through volume icon/button (that in the system tray - at the far-right of the top Gnome panel-), I mean, when I set the volume from ossxmix that same volume could be updated in the gnome control volume automatically, and vice versa. The same for mute/unmute feature.

I have done what is explained here but without success:
http://www.opensound.com/wiki/index.php ... #gstreamer

I just run gconf-editor and set some values in the /desktop/gnome/sound and /system/gstreamer/0.10/audio/default paths.

In /desktop/gnome/sound I set below values:
default_mixer_device = ossmix
default_mixer_tracks = [ossmix, ossxmix]

In /system/gstreamer/0.10/audio/default I set below values:
audiosink = "oss4sink device="/dev/oss/oss_hdaudio0/pcm0"
audiosrc = oss4src
musicaudiosink = "oss4sink device="/dev/oss/oss_hdaudio0/pcm0"

but it is not working.... I remember in my previous old laptop it was working perfectly but in my new one, it is not. As I have observed, it seems like oss service loading is too slow. In my case, it is done by systemd, so at login screen it is not loaded yet, and once logged in it takes a few minutes to load it, so I think maybe it is the cause: oss service is loaded too late. I think it is necessary to be loaded before login screen appears, during boot up. Any ideas?




Thanks!

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to bind ossxmix with gnome control volume

Postby igorzwx » Sun Apr 28, 2013 12:55 pm

rrodriguez1975 wrote:I would like to know if it is possible to fully integrate ossxmix with gnome control volume through volume icon/button (that in the system tray - at the far-right of the top Gnome panel-), I mean, when I set the volume from ossxmix that same volume could be updated in the gnome control volume automatically, and vice versa. The same for mute/unmute feature.

I have done what is explained here but without success:
http://www.opensound.com/wiki/index.php ... #gstreamer

I just run gconf-editor and set some values in the /desktop/gnome/sound and /system/gstreamer/0.10/audio/default paths.

In /desktop/gnome/sound I set below values:
default_mixer_device = ossmix
default_mixer_tracks = [ossmix, ossxmix]

In /system/gstreamer/0.10/audio/default I set below values:
audiosink = "oss4sink device="/dev/oss/oss_hdaudio0/pcm0"
audiosrc = oss4src
musicaudiosink = "oss4sink device="/dev/oss/oss_hdaudio0/pcm0"

but it is not working.... I remember in my previous old laptop it was working perfectly but in my new one, it is not. As I have observed, it seems like oss service loading is too slow. In my case, it is done by systemd, so at login screen it is not loaded yet, and once logged in it takes a few minutes to load it, so I think maybe it is the cause: oss service is loaded too late. I think it is necessary to be loaded before login screen appears, during boot up. Any ideas?

Thanks!


If you want to "bind ossxmix with gnome control volume" in Gnome3, you should hack "gnome-settings-daemon", patch it, and recompile.

The old story of hacking Gnome2 is here: viewtopic.php?f=3&t=3375

If you do not know how to hack Gnome3, you may try Mate (fork of Gnome2).
The manual is here: https://wiki.archlinux.org/index.php/MATE

mate-settings-daemon-gstreamer: uses gstreamer to provides media keys.
http://forums.mate-desktop.org/viewtopic.php?f=5&t=38


The magic script to configure gstreamer is here: viewtopic.php?f=3&t=5219

The first thing to do is to create a convenient tool (e.g. launcher on panel) with which to restore settings of OSS Mixer https://wiki.archlinux.org/index.php/Op ... xer_Levels
The problem is that ossxmix is extremely buggy, especially for Intel HDA codecs. I tends to behave in an unpredictable way.
If you press media keys several times, you may get a total chaos in ossxmix.
If ossxmix is closed, it does not seem to make much harm.

nuc
Moderator
Posts: 109
Joined: Fri Aug 03, 2012 10:20 am
Sound Card: PowerColor DEVIL HDX
OS: ArchLinux
Contact:

Re: How to bind ossxmix with gnome control volume

Postby nuc » Sun Apr 28, 2013 4:48 pm

Indeed I experience the same issue.
I'm on xfce4 and use the xfce-mixer which in turn uses gstreamer (as does your GNOME mixer).

I have also configured gstreamer (following the arch wiki guidlines: https://wiki.archlinux.org/index.php/OS ... _GStreamer) and after that the xfce-mixer worked.

However this is not the case anymore. I think it is connected to the new Linux kernel v3.8, since OSS had some issues with this release. Anyways since some time (I think it was around Linux 3.8), the xfce-mixer stopped working. This is the output:
http://abload.de/img/xfce-mixer_linux_v3.8ttszf.png (translation: "Gstreamer can't find your sound card blabla...")

Note that I checked the gstreamer configuration again, but OSS is still configured. I can't be sure of course that it's the fault of Linux 3.8 but it's suspicious, since it used to work before.
Since you're also an Arch user I guess this might be connected.

best regards
nuc
Check out my effort on revamping the opensound website => github.com/Nuc1eoN/4Front-Tech-Website
Any feedback greatly appreciated =)

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to bind ossxmix with gnome control volume

Postby igorzwx » Sun Apr 28, 2013 5:15 pm

nuc wrote:Indeed I experience the same issue.


Which issue?
What is the problem?
Everything should work "out of the box" with Mate desktop and mate-settings-daemon-gstreamer http://forums.mate-desktop.org/viewtopic.php?f=5&t=38

ossxmix should not be opened, when you use other tools to change settings in ossmix.
Last edited by igorzwx on Sun Apr 28, 2013 5:50 pm, edited 1 time in total.

nuc
Moderator
Posts: 109
Joined: Fri Aug 03, 2012 10:20 am
Sound Card: PowerColor DEVIL HDX
OS: ArchLinux
Contact:

Re: How to bind ossxmix with gnome control volume

Postby nuc » Sun Apr 28, 2013 5:39 pm

igorzwx wrote:
nuc wrote:Indeed I experience the same issue.


Which issue?
What is the problem?

Well I kinda already expalined it and as far as I understand rodriguez experiences the same.
Generally the gstreamer mixers simply don't work (see screenshot I provided). As I said it might be kernel 3.8, so if you're using Mint, I guess you use an older kernel and thus you don't have the issue. But of course I might be totally on the wrong path...
Check out my effort on revamping the opensound website => github.com/Nuc1eoN/4Front-Tech-Website
Any feedback greatly appreciated =)

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to bind ossxmix with gnome control volume

Postby igorzwx » Sun Apr 28, 2013 5:49 pm

nuc wrote:
igorzwx wrote:
nuc wrote:Indeed I experience the same issue.


Which issue?
What is the problem?

Well I kinda already expalined it and as far as I understand rodriguez experiences the same.
Generally the gstreamer mixers simply don't work (see screenshot I provided). As I said it might be kernel 3.8, so if you're using Mint, I guess you use an older kernel and thus you don't have the issue. But of course I might be totally on the wrong path...


It has nothing to do with your kernel.
Your "crap-settings-daemon" does not support this.
That is why your "gstreamer mixers simply don't work".

nuc
Moderator
Posts: 109
Joined: Fri Aug 03, 2012 10:20 am
Sound Card: PowerColor DEVIL HDX
OS: ArchLinux
Contact:

Re: How to bind ossxmix with gnome control volume

Postby nuc » Sun Apr 28, 2013 6:06 pm

Well it did work before, so it must be related to some update that came out in recent months.
Since gstreamer complains it must be gstreamer related. Since Rodriguez uses Arch, too, he may be experiencing the exact same issue.
Check out my effort on revamping the opensound website => github.com/Nuc1eoN/4Front-Tech-Website
Any feedback greatly appreciated =)

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to bind ossxmix with gnome control volume

Postby igorzwx » Sun Apr 28, 2013 6:09 pm

nuc wrote:Well it did work before, so it must be related to some update that came out in recent months.
Since gstreamer complains it must be gstreamer related. Since Rodriguez uses Arch, too, he may be experiencing the exact same issue.

Which one worked? and when?

nuc
Moderator
Posts: 109
Joined: Fri Aug 03, 2012 10:20 am
Sound Card: PowerColor DEVIL HDX
OS: ArchLinux
Contact:

Re: How to bind ossxmix with gnome control volume

Postby nuc » Sun Apr 28, 2013 6:16 pm

xfce4-mixer a mixer by the xfce team, for xfce4.
I cannot nail the exact date down when it stopped working because in fact I barely use it. It must have happened up to some months ago.

Btw xfce4-mixer didn't work out-of-the box I have had to to configure gstreamer-properties.
One thing which might be suspicious is the output I get when I launch gstreamer-properties:

Code: Select all

$ gstreamer-properties

(gstreamer-properties:12238): Gtk-WARNING **: Unknown property: GtkDialog.has-separator

(gstreamer-properties:12238): Gtk-WARNING **: Unknown property: GtkDialog.has-separator
gstreamer-properties-Message: Skipping unavailable plugin 'artsdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'esdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'oss4sink'
gstreamer-properties-Message: Skipping unavailable plugin 'sunaudiosink'
gstreamer-properties-Message: Skipping unavailable plugin 'glimagesink'
gstreamer-properties-Message: Skipping unavailable plugin 'sdlvideosink'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lmjpegsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'esdmon'
gstreamer-properties-Message: Skipping unavailable plugin 'oss4src'
gstreamer-properties-Message: Skipping unavailable plugin 'sunaudiosrc'
Check out my effort on revamping the opensound website => github.com/Nuc1eoN/4Front-Tech-Website
Any feedback greatly appreciated =)

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to bind ossxmix with gnome control volume

Postby igorzwx » Sun Apr 28, 2013 6:26 pm

nuc wrote:xfce4-mixer a mixer by the xfce team, for xfce4.
I cannot nail the exact date down when it stopped working because in fact I barely use it. It must have happened up to some months ago.

Btw xfce4-mixer didn't work out-of-the box I have had to to configure gstreamer-properties.
One thing which might be suspicious is the output I get when I launch gstreamer-properties:

Code: Select all

$ gstreamer-properties

(gstreamer-properties:12238): Gtk-WARNING **: Unknown property: GtkDialog.has-separator

(gstreamer-properties:12238): Gtk-WARNING **: Unknown property: GtkDialog.has-separator
gstreamer-properties-Message: Skipping unavailable plugin 'artsdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'esdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'oss4sink'
gstreamer-properties-Message: Skipping unavailable plugin 'sunaudiosink'
gstreamer-properties-Message: Skipping unavailable plugin 'glimagesink'
gstreamer-properties-Message: Skipping unavailable plugin 'sdlvideosink'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lmjpegsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'esdmon'
gstreamer-properties-Message: Skipping unavailable plugin 'oss4src'
gstreamer-properties-Message: Skipping unavailable plugin 'sunaudiosrc'


xfce4 has a kind of xfce4-settings-daemon. Right?

Code: Select all

gstreamer-properties-Message: Skipping unavailable plugin 'oss4sink'
gstreamer-properties-Message: Skipping unavailable plugin 'oss4src'


oss4sink is not available. Is osssink available?

You can test your gstreamer with special tools. See: viewtopic.php?f=3&t=5211

Code: Select all

$ gst-inspect-0.10 oss4sink
$ gst-inspect-0.10 osssink
$ gst-launch-0.10 audiotestsrc ! audioconvert ! audioresample ! oss4sink
$ gst-launch-0.10 audiotestsrc ! audioconvert ! audioresample ! osssink

nuc
Moderator
Posts: 109
Joined: Fri Aug 03, 2012 10:20 am
Sound Card: PowerColor DEVIL HDX
OS: ArchLinux
Contact:

Re: How to bind ossxmix with gnome control volume

Postby nuc » Sun Apr 28, 2013 6:37 pm

osssink is available and works (I hear the beep tone in the test; it can also be tested in gstreamer-properties btw).
oss4src is not available.

Here's the output if you need it:

Code: Select all

$ gst-inspect-0.10 osssink
Factory Details:
  Long name:   Audio Sink (OSS)
  Class:   Sink/Audio
  Description:   Output to a sound card via OSS
  Author(s):   Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim.taymans@chello.be>
  Rank:      secondary (128)

Plugin Details:
  Name:         ossaudio
  Description:      OSS (Open Sound System) support for GStreamer
  Filename:      /usr/lib/gstreamer-0.10/libgstoss4audio.so
  Version:      0.10.31
  License:      LGPL
  Source module:   gst-plugins-good
  Source release date:   2012-02-20
  Binary package:   GStreamer Good Plugins (Archlinux)
  Origin URL:      http://www.archlinux.org/

GObject
 +----GstObject
       +----GstElement
             +----GstBaseSink
                   +----GstBaseAudioSink
                         +----GstAudioSink
                               +----GstOssSink

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      audio/x-raw-int
             endianness: { 1234 }
                 signed: { true, false }
                  width: 16
                  depth: 16
                   rate: [ 1, 2147483647 ]
               channels: [ 1, 2 ]
      audio/x-raw-int
                 signed: { true, false }
                  width: 8
                  depth: 8
                   rate: [ 1, 2147483647 ]
               channels: [ 1, 2 ]


Element Flags:
  no flags set

Element Implementation:
  Has change_state() function: gst_base_audio_sink_change_state
  Has custom save_thyself() function: gst_element_save_thyself
  Has custom restore_thyself() function: gst_element_restore_thyself

Element has no clocking capabilities.
Element has no indexing capabilities.
Element has no URI handling capabilities.

Pads:
  SINK: 'sink'
    Implementation:
      Has chainfunc(): gst_base_sink_chain
      Has custom eventfunc(): gst_base_sink_event
      Has custom queryfunc(): gst_base_audio_sink_query_pad
      Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default
      Has bufferallocfunc(): gst_base_sink_pad_buffer_alloc
      Has getcapsfunc(): gst_base_sink_pad_getcaps
      Has setcapsfunc(): gst_base_sink_pad_setcaps
      Has acceptcapsfunc(): gst_pad_acceptcaps_default
      Has fixatecapsfunc(): gst_base_sink_pad_fixate
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        flags: lesbar, schreibbar
                        String. Default: "osssink0"
  preroll-queue-len   : Number of buffers to queue during preroll
                        flags: lesbar, schreibbar
                        Unsigned Integer. Range: 0 - 4294967295 Default: 0
  sync                : Sync on the clock
                        flags: lesbar, schreibbar
                        Boolean. Default: true
  max-lateness        : Maximum number of nanoseconds that a buffer can be late before it is dropped (-1 unlimited)
                        flags: lesbar, schreibbar
                        Integer64. Range: -1 - 9223372036854775807 Default: -1
  qos                 : Generate Quality-of-Service events upstream
                        flags: lesbar, schreibbar
                        Boolean. Default: false
  async               : Go asynchronously to PAUSED
                        flags: lesbar, schreibbar
                        Boolean. Default: true
  ts-offset           : Timestamp offset in nanoseconds
                        flags: lesbar, schreibbar
                        Integer64. Range: -9223372036854775808 - 9223372036854775807 Default: 0
  enable-last-buffer  : Enable the last-buffer property
                        flags: lesbar, schreibbar
                        Boolean. Default: false
  last-buffer         : The last buffer received in the sink
                        flags: lesbar
                        MiniObject of type "GstBuffer"
  blocksize           : Size in bytes to pull per buffer (0 = default)
                        flags: lesbar, schreibbar
                        Unsigned Integer. Range: 0 - 4294967295 Default: 4096
  render-delay        : Additional render delay of the sink in nanoseconds
                        flags: lesbar, schreibbar
                        Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0
  throttle-time       : The time to keep between rendered buffers (unused)
                        flags: lesbar, schreibbar
                        Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0
  buffer-time         : Size of audio buffer in microseconds
                        flags: lesbar, schreibbar
                        Integer64. Range: 1 - 9223372036854775807 Default: 200000
  latency-time        : Audio latency in microseconds
                        flags: lesbar, schreibbar
                        Integer64. Range: 1 - 9223372036854775807 Default: 10000
  provide-clock       : Provide a clock to be used as the global pipeline clock
                        flags: lesbar, schreibbar
                        Boolean. Default: true
  slave-method        : Algorithm to use to match the rate of the masterclock
                        flags: lesbar, schreibbar
                        Enum "GstBaseAudioSinkSlaveMethod" Default: 1, "skew"
                           (0): resample         - GST_BASE_AUDIO_SINK_SLAVE_RESAMPLE
                           (1): skew             - GST_BASE_AUDIO_SINK_SLAVE_SKEW
                           (2): none             - GST_BASE_AUDIO_SINK_SLAVE_NONE
  can-activate-pull   : Allow pull-based scheduling
                        flags: lesbar, schreibbar
                        Boolean. Default: false
  alignment-threshold : Timestamp alignment threshold in nanoseconds
                        flags: lesbar, schreibbar
                        Unsigned Integer64. Range: 1 - 18446744073709551614 Default: 40000000
  drift-tolerance     : Tolerance for clock drift in microseconds
                        flags: lesbar, schreibbar
                        Integer64. Range: 1 - 9223372036854775807 Default: 40000
  discont-wait        : Window of time in nanoseconds to wait before creating a discontinuity
                        flags: lesbar, schreibbar
                        Unsigned Integer64. Range: 0 - 18446744073709551614 Default: 1000000000
  device              : OSS device (usually /dev/dspN)
                        flags: lesbar, schreibbar
                        String. Default: "/dev/dsp"


That's weird I don't get why those gstreamer mixers stopped working...
Last edited by nuc on Sun Apr 28, 2013 6:44 pm, edited 1 time in total.
Check out my effort on revamping the opensound website => github.com/Nuc1eoN/4Front-Tech-Website
Any feedback greatly appreciated =)

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to bind ossxmix with gnome control volume

Postby igorzwx » Sun Apr 28, 2013 6:44 pm

nuc wrote:osssink is available and works (I hear the beep tone in the test; it can also be tested in gstreamer-properties btw).
oss4src is not available.

Here's the output if you need it:

Code: Select all

$ gst-inspect-0.10 osssink
Factory Details:
  Long name:   Audio Sink (OSS)
  Class:   Sink/Audio
  Description:   Output to a sound card via OSS
  Author(s):   Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim.taymans@chello.be>
  Rank:      secondary (128)

Plugin Details:
  Name:         ossaudio
  Description:      OSS (Open Sound System) support for GStreamer
  Filename:      /usr/lib/gstreamer-0.10/libgstoss4audio.so
  Version:      0.10.31
  License:      LGPL
  Source module:   gst-plugins-good
  Source release date:   2012-02-20
  Binary package:   GStreamer Good Plugins (Archlinux)
  Origin URL:      http://www.archlinux.org/

GObject
 +----GstObject
       +----GstElement
             +----GstBaseSink
                   +----GstBaseAudioSink
                         +----GstAudioSink
                               +----GstOssSink

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      audio/x-raw-int
             endianness: { 1234 }
                 signed: { true, false }
                  width: 16
                  depth: 16
                   rate: [ 1, 2147483647 ]
               channels: [ 1, 2 ]
      audio/x-raw-int
                 signed: { true, false }
                  width: 8
                  depth: 8
                   rate: [ 1, 2147483647 ]
               channels: [ 1, 2 ]


Element Flags:
  no flags set

Element Implementation:
  Has change_state() function: gst_base_audio_sink_change_state
  Has custom save_thyself() function: gst_element_save_thyself
  Has custom restore_thyself() function: gst_element_restore_thyself

Element has no clocking capabilities.
Element has no indexing capabilities.
Element has no URI handling capabilities.

Pads:
  SINK: 'sink'
    Implementation:
      Has chainfunc(): gst_base_sink_chain
      Has custom eventfunc(): gst_base_sink_event
      Has custom queryfunc(): gst_base_audio_sink_query_pad
      Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default
      Has bufferallocfunc(): gst_base_sink_pad_buffer_alloc
      Has getcapsfunc(): gst_base_sink_pad_getcaps
      Has setcapsfunc(): gst_base_sink_pad_setcaps
      Has acceptcapsfunc(): gst_pad_acceptcaps_default
      Has fixatecapsfunc(): gst_base_sink_pad_fixate
    Pad Template: 'sink'

Element Properties:
  name                : The name of the object
                        flags: lesbar, schreibbar
                        String. Default: "osssink0"
  preroll-queue-len   : Number of buffers to queue during preroll
                        flags: lesbar, schreibbar
                        Unsigned Integer. Range: 0 - 4294967295 Default: 0
  sync                : Sync on the clock
                        flags: lesbar, schreibbar
                        Boolean. Default: true
  max-lateness        : Maximum number of nanoseconds that a buffer can be late before it is dropped (-1 unlimited)
                        flags: lesbar, schreibbar
                        Integer64. Range: -1 - 9223372036854775807 Default: -1
  qos                 : Generate Quality-of-Service events upstream
                        flags: lesbar, schreibbar
                        Boolean. Default: false
  async               : Go asynchronously to PAUSED
                        flags: lesbar, schreibbar
                        Boolean. Default: true
  ts-offset           : Timestamp offset in nanoseconds
                        flags: lesbar, schreibbar
                        Integer64. Range: -9223372036854775808 - 9223372036854775807 Default: 0
  enable-last-buffer  : Enable the last-buffer property
                        flags: lesbar, schreibbar
                        Boolean. Default: false
  last-buffer         : The last buffer received in the sink
                        flags: lesbar
                        MiniObject of type "GstBuffer"
  blocksize           : Size in bytes to pull per buffer (0 = default)
                        flags: lesbar, schreibbar
                        Unsigned Integer. Range: 0 - 4294967295 Default: 4096
  render-delay        : Additional render delay of the sink in nanoseconds
                        flags: lesbar, schreibbar
                        Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0
  throttle-time       : The time to keep between rendered buffers (unused)
                        flags: lesbar, schreibbar
                        Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0
  buffer-time         : Size of audio buffer in microseconds
                        flags: lesbar, schreibbar
                        Integer64. Range: 1 - 9223372036854775807 Default: 200000
  latency-time        : Audio latency in microseconds
                        flags: lesbar, schreibbar
                        Integer64. Range: 1 - 9223372036854775807 Default: 10000
  provide-clock       : Provide a clock to be used as the global pipeline clock
                        flags: lesbar, schreibbar
                        Boolean. Default: true
  slave-method        : Algorithm to use to match the rate of the masterclock
                        flags: lesbar, schreibbar
                        Enum "GstBaseAudioSinkSlaveMethod" Default: 1, "skew"
                           (0): resample         - GST_BASE_AUDIO_SINK_SLAVE_RESAMPLE
                           (1): skew             - GST_BASE_AUDIO_SINK_SLAVE_SKEW
                           (2): none             - GST_BASE_AUDIO_SINK_SLAVE_NONE
  can-activate-pull   : Allow pull-based scheduling
                        flags: lesbar, schreibbar
                        Boolean. Default: false
  alignment-threshold : Timestamp alignment threshold in nanoseconds
                        flags: lesbar, schreibbar
                        Unsigned Integer64. Range: 1 - 18446744073709551614 Default: 40000000
  drift-tolerance     : Tolerance for clock drift in microseconds
                        flags: lesbar, schreibbar
                        Integer64. Range: 1 - 9223372036854775807 Default: 40000
  discont-wait        : Window of time in nanoseconds to wait before creating a discontinuity
                        flags: lesbar, schreibbar
                        Unsigned Integer64. Range: 0 - 18446744073709551614 Default: 1000000000
  device              : OSS device (usually /dev/dspN)
                        flags: lesbar, schreibbar
                        String. Default: "/dev/dsp"


That's weird I don't get why those gstreamer mixers stopped working...


It seems to be a bug in Arch Linux. You may try PulseAudio.
It is said to "work out of the box". If it does not, you may ask Lennart to fix it.

If I am not mistaken the same bug was in old Ubuntu: viewtopic.php?f=3&t=5211
It seems that Arch Linux developers do not fix any bugs and do not upgrade anything except for PulseAudio and systemd.
Last edited by igorzwx on Sun Apr 28, 2013 7:56 pm, edited 2 times in total.

nuc
Moderator
Posts: 109
Joined: Fri Aug 03, 2012 10:20 am
Sound Card: PowerColor DEVIL HDX
OS: ArchLinux
Contact:

Re: How to bind ossxmix with gnome control volume

Postby nuc » Sun Apr 28, 2013 6:51 pm

igorzwx wrote:It seems to be a bug in Arch Linux.

We will see. If it's a bug truly caused by an "update", it should soon reach Linux Mint, and then you should be able to reproduce it, too.
Also I rather want bugs to be fixed instead of running away from them (even if only for the pure sake of completeness). But still thanks for the proposal.
Last edited by nuc on Sun Apr 28, 2013 6:52 pm, edited 1 time in total.
Check out my effort on revamping the opensound website => github.com/Nuc1eoN/4Front-Tech-Website
Any feedback greatly appreciated =)

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to bind ossxmix with gnome control volume

Postby igorzwx » Sun Apr 28, 2013 6:52 pm

nuc wrote:
igorzwx wrote:It seems to be a bug in Arch Linux.

We will see. If it's a bug truly caused by an "update", it should soon reach Linux Mint, and then you should be able to reproduce it.
Also I rather want bugs to be fixed instead of running away from them (even if only for the pure sake of completeness). But still thanks for the proposal.


This bug was fixed in Ubuntu and Linux Mint in 2012.
Moreover, they have already the newest gstreamer1.0 (compare with your gstreamer0.10).

Ubuntu 12.10 Quantal Quetzal (2012)
Package: gstreamer1.0-plugins-good (1.0.1-1) [universe]
http://packages.ubuntu.com/quantal/gstr ... ugins-good


Quantal Quetzal seems to mean "quality with a new name", or "a new sort of quality", or "quality with a human face" in Swahili http://www.markshuttleworth.com/archives/1121

If I am not mistaken the same bug was in old Ubuntu: viewtopic.php?f=3&t=5211

Code: Select all

$ gst-launch-0.10 audiotestsrc ! audioconvert ! audioresample ! oss4sink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstOss4Sink:oss4sink0: Could not get/set settings from/on resource.
Additional debug info:
oss4-audio.c(632): gst_oss4_audio_set_format (): /GstPipeline:pipeline0/GstOss4Sink:oss4sink0:
Format actually configured wasn't the one we requested. This is probably either a bug in the driver or in the format probing code.
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...


It seems that Arch Linux developers do not fix any bugs and do not upgrade anything, except for PulseAudio and systemd.

igorzwx
Known Member
Posts: 1246
Joined: Sun Jun 28, 2009 9:31 pm

Re: How to bind ossxmix with gnome control volume

Postby igorzwx » Mon Apr 29, 2013 1:45 am

nuc wrote:osssink is available and works (I hear the beep tone in the test; it can also be tested in gstreamer-properties btw).
oss4src is not available..


Thus, "oss4src is not available" in gstreamer-properties, but libgstoss4audio.so works with Opera:

nuc wrote:Hah, figured it out! Opera sound works if either libgstoss4audio.so or libgstossaudio.so is not available, but it doesn't work when are not available! When I remove both the video can't be played.
Without a doubt Opera uses libgstossaudio.so as a fallback when libgstoss4audio.so is not available. So Opera isn't crap actually :)
viewtopic.php?f=3&t=5212&start=15#p19330


This seems to mean that Arch Linux developers hacked gstreamer in the same way as I hacked it in Linux Mint 13 (Ubuntu 12.04 LTS) see: viewtopic.php?f=3&t=5211
The hack fixed sound in Totem, Banshee, Opera, etc., but "oss4src" disappeared in gstreamer-properties:

Code: Select all

$ gst-inspect-0.10 oss4sink
No such element or plugin 'oss4sink'
$ gst-launch-0.10 audiotestsrc ! audioconvert ! audioresample ! oss4sink
WARNING: erroneous pipeline: no element "oss4sink"


They simply copied libgstoss4audio.so from Ubuntu to Arch Linux and packed it into their package. It is a normal way of fixing problems in Arch Linux. There is even a special tool deb2targz for repacking *.deb packages into Arch packages without re-compilation https://aur.archlinux.org/packages/deb2targz/

http://www.miketaylor.org.uk/tech/deb/
Update - 22nd October 2011
DO NOT USE THE deb2targz SCRIPT!
It turns out to be complete waste of time: Debian packages are ar achives, and can be inspected and unpacked using the standard Unix command-line utility ar as follows:

Code: Select all

$ ls -l google-musicmanager-beta_current_i386.deb
-rw-r--r-- 1 mike mike 2991982 2011-10-21 08:37
google-musicmanager-beta_current_i386.deb
$ ar tv google-musicmanager-beta_current_i386.deb
rw-r--r-- 0/0      4 Sep 14 21:12 2011 debian-binary
rw-r--r-- 0/0   4688 Sep 14 21:12 2011 control.tar.gz
rw-r--r-- 0/0 2987102 Sep 14 21:12 2011 data.tar.lzma
$ ar xv google-musicmanager-beta_current_i386.deb
data.tar.lzma
x - data.tar.lzma
$ ls -l data.tar.lzma
-rw-r--r-- 1 mike mike 2987102 2011-10-21 08:39 data.tar.lzma
$

(I would remove the script completely, but Aram Ayazyan tells me that it is used by packages in Arch Linux.)


Perhaps, they did not hacked something, because I have everything working perfectly in Linux Mint 13 Mate (Ubuntu 12.04 LTS): gstreamer-mixer, media keys with pop-up notifications, etc. Even ossxmix is working perfectly with Intel ICH4 AC'97 codec.

You may install Mate desktop with mate-settings-daemon-gstreamer, login to it, and everything may work.
The manual is here: https://wiki.archlinux.org/index.php/Mate


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 1 guest