After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 144091 - [Solaris] audio mixer element
[Solaris] audio mixer element
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Solaris
: High blocker
: 0.8.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-06-10 11:35 UTC by Balamurali Viswanathan
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for this problem (30.49 KB, patch)
2004-07-28 15:28 UTC, Balamurali Viswanathan
none Details | Review
Patch for this bug (29.98 KB, patch)
2004-07-29 09:17 UTC, Balamurali Viswanathan
none Details | Review

Description Balamurali Viswanathan 2004-06-10 11:35:36 UTC
When gnome-volume-control is started on a solaris machine an error dialog with
the following information is displayed

"Sorry, no mixer elements and/or devices found"
Comment 1 Ronald Bultje 2004-06-10 15:25:28 UTC
That is the correct behaviour until one of the GNOME/Solaris hackers writes a
mixer-element as part of the sunaudio GStreamer plugin.
Comment 2 Ronald Bultje 2004-06-16 01:55:39 UTC
Re-assign to GStreamer.
Comment 3 Balamurali Viswanathan 2004-07-28 15:28:19 UTC
Created attachment 30003 [details] [review]
Patch for this problem

Attaching a patch which adds a mixer element to the sunaudio plugin. With this 
patch, gnome-volume-control comes up with three sliders (Volume, Gain,
Monitor). Please give your comments. Thanks.
Comment 4 Ronald Bultje 2004-07-28 17:01:17 UTC
Nicely based on ossmixer, no? ;). Please remove the "#define _(s) s" in the
*mixer.c, it's too obvious. ;). gstsunaudioelement.h:GstSunAudioElement also
defines a very large struct but seems to use only very few of them. Could you
clean up the unused struct members?

Apart from that, great work, thanks!
Comment 5 Balamurali Viswanathan 2004-07-29 09:17:44 UTC
Created attachment 30032 [details] [review]
Patch for this bug

Yeah, this is totally based on oss mixer :). I have removed the #define _(s) s
and  also cleaned up the unsed struct members. Thanks for reviewing the patch.
Thanks
Comment 6 Ronald Bultje 2004-07-30 02:53:37 UTC
Something else, I noticed that the members in Sun's audio/kernel interface
struct are called gain, record.volume and play.volume, you call them monitor,
gain and volume. What's the difference? And are there more? This sounds like
there's very little audio support in Solaris. ;).

Note that those are comments of someone unfamiliar to Solaris, so this might all
be correct. I'm just double checking before accpeting the patch.
Comment 7 Balamurali Viswanathan 2004-07-30 04:31:35 UTC
The play.gain and record.gain fields specify the output and input volume levels.
A value of AUDIO_MAX_GAIN indicates maximum volume.
Most audio devices allow input data to be monitored by mixing audio input onto
the output channel. The monitor_gain field controls the level of this feedback
path.(From Solaris Answer book)

Currently the patch supports only volume, gain, monitor. Later will add support
for other input and output ports
Comment 8 David Schleef 2004-08-17 07:35:29 UTC
I intended to hold off on applying this patch until I could check it on my
machine, but that has not happened yet.  Unless someone finds issues with the
patch, it should be applied before the next release.
Comment 9 David Schleef 2004-08-18 04:57:01 UTC
Applied.