Commit Graph

45 Commits

Author SHA1 Message Date
Colin Guthrie 27d915d041 Add a few known peak-detect stream clients to a source-output blacklist 2012-09-28 00:08:10 +01:00
poljar (Damir Jelić) d03f9ffac2 devicewidget: Add a latency offset spinbutton
This change adds the ability to change the latency offset of a port with
pavucontrol.
2012-07-27 09:25:14 +03:00
poljar (Damir Jelić) 1a23cdfe6d cardwidget: Add a port class
The cardwidget should cache all the relevant data for the ports.

This change introduces a new port class which holds the port info for
the card.
2012-07-27 08:54:10 +03:00
Arun Raghavan 8e359a8f71 source: Only autosuspend network sources
This makes sure we inhibit autosuspend only for network sources (which
was the main purpose of adding autosuspend, since constantly monitoring
those is network heavy).
2011-09-23 08:21:07 +05:30
Arun Raghavan c9b307de5a Check if PA_SINK_SET_FORMATS is defined before using it 2011-08-18 14:57:09 +05:30
Arun Raghavan 5c19f6b5d2 Use sink flags to figure out if we can set formats
The server now signals when a sink supports setting formats, so we don't
have to rely on the profile name.
2011-08-16 11:13:34 +05:30
Colin Guthrie 479e7bcd6e Add UI to select the formats supported by the receiver attached to a digitial sink 2011-08-10 14:22:55 +02:00
Colin Guthrie ca9c74b042 source-output: Don't set the channel map for the SO if we do not support SO volumes.
The setting of the channel map triggers the display of the actual volume sliders
so it is essential that we do not set it when we don't want to.
2011-07-22 10:01:48 +01:00
Colin Guthrie 9784b9d76d stream-volumes: Support source-output volume controls now available in PA. 2011-07-22 09:35:38 +01:00
Colin Guthrie 53c38faa8a Handle simple key events.
* Use ctrl+w or ctrl+q or esc to quit.
 * Uset ctrl+1-5 to change tabs.
2011-06-06 12:18:14 +02:00
Colin Guthrie 933b8a7009 Deal more gracefully with disconnections.
As pavucontrol is often used for debugging PA, it should
be quite robust and not popup messages etc. under 'normal'
testing conditions. This adds quite a verbose message under
some specific conditions that do crop up from time to time.
2011-06-06 12:18:06 +02:00
Marc-Antoine Perennou 964de9fc7f Add support for gtkmm-3.0 and prefer it over gtkmm-2.* by default.
Pass --disable-gtk3 to configure to build against gtk2
2011-04-29 17:10:58 +01:00
Colin Guthrie c70b048c98 volume: Don't bother setting the steps.
The number of volume steps doesn't really affect our scale, so there
is little value in setting it.
2011-03-09 21:54:05 +00:00
Rafał Mużyło 9ce0e0a380 Drop the need to use libglademm 2011-03-03 14:31:14 +00:00
Maarten Bosmans 5997290d1e Add DONT_INHIBIT_AUTO_SUSPEND flag to monitor streams 2011-03-03 13:52:21 +00:00
Colin Guthrie 870c3ddb2e mainwindow: Fix clearing out of clients 2010-04-22 00:08:39 +01:00
Colin Guthrie 94add670c4 mainwindow: Save/restore window size 2010-04-22 00:04:56 +01:00
Colin Guthrie 95e48d5c9e mainwindow: Compact iterator decls 2010-04-21 00:44:01 +01:00
Colin Guthrie 18c8945708 source-outputs: Fix a bug where the 'no streams' label is sometimes shown along with the actual widget. 2010-04-20 20:45:26 +01:00
Colin Guthrie 7de18201a3 connection: Show a nice label when connecting to PA. 2010-04-20 20:24:15 +01:00
Colin Guthrie 6c0bcb4c08 mainwindow: Add a method to remove all widgets (e.g. on disconnect) 2010-04-20 20:00:37 +01:00
Colin Guthrie 78f5194541 Allow for the sink input peak detect to survive across sink moves. 2009-10-17 15:59:29 +01:00
Colin Guthrie 375c2c2d62 Add support for the device-manager module.
Currently this module only really allows for devices to be renamed, so we add a new
dialog that can be activated by right clicking on devices (i.e. sinks/sources).
This dialog allows you to enter a new name which will be set via the extension
provided by the device-manager module.

Future work will allow you to manage (i.e. rename, delete etc) offline devices too.
2009-10-15 13:03:16 +01:00
Colin Guthrie b5b433ee00 events: Hide output streams with a stream restore designator for the event widget.
Showing these streams causes UI issues due to the repainting when the app that generates the
sound events is pavucontrol itself (e.g. changing volume, trying to move stream to a new device etc.)
2009-10-03 13:09:12 +01:00
Lennart Poettering 32d6f81d9d drop reference to beepDevice 2009-09-09 01:06:12 +02:00
Lennart Poettering b373c000ea use fallback icon scheme for stream icons, too 2009-08-26 02:15:57 +02:00
Colin Guthrie 159609135f Add support for changing ports.
This commit adds a combo box for selecting ports.
Overall this implementation could have taken two paths:
 * Implement port selection as combo box.
 * Implement port selection as a button.

I went for the first option as is done in selecting card profiles over the
second method used for selecting devices for streams. This seems more like
how a config option should be presented as opposed to a runtime type thing.
2009-06-27 18:14:05 +01:00
Colin Guthrie 514a66e0c8 Do not disable the default button when it's set.
I reworked the way this was done so we can easily re-enable this as I think it's clearer when it's inactive
(the difference between toggled and not toggled is pretty minor).

With this abstraction we could reset the tooltip etc. too.
2009-06-17 22:44:02 +01:00
Colin Guthrie 02b316fcba More changes in the UI to try and make things neater.
This abandons the combo box approach an instead partially reverts to the popup.
We now display a suffix after the stream title saying " on <device>" or " from <device>"
where the <device> part looks like a hyperlink and, when clicked, shows the popup to change the device.

If there is only one device available, we suppress the whole thing and thus avoid confusion.
2009-06-17 08:54:14 +01:00
Colin Guthrie 4bd94fa2b8 Wire up all the new UI code.
This makes the default button work on sinks/sources, allows the drop
down to actually change the sink/source and removes the old menu code.

Some names and such are fixed in the glade file too.
2009-06-17 08:54:12 +01:00
Colin Guthrie ca441f4c9d Remove the 'Default [Out|In]put' option from the combo for now.
It will be restored when it's actually possible to set/clear the default stream restore db
2009-06-17 08:54:12 +01:00
Colin Guthrie 0667b9d5ea Set the correct combo index for display purposes 2009-06-17 08:54:12 +01:00
Colin Guthrie cfa1cd3d49 Record in a map the combobox indexes vs. the sink/source indexes 2009-06-17 08:54:12 +01:00
Colin Guthrie 903c26bd44 Add setter/getter methods for sink/source indexes so we can update our combo boxes current item 2009-06-17 08:54:11 +01:00
Colin Guthrie d617c39a08 Set the mainwindow pointer via an init() method rather than directly via public member variable.
This allows us to perform other general initialisation task (such as setting the tree model on the device combo)
2009-06-17 08:54:11 +01:00
Colin Guthrie 7b7a12f1d2 Adapt to new UI
The actual wiring up of events and clearing out of old, unused elements is
not complete yet, so this is completely non-functional at present.
2009-06-17 08:54:10 +01:00
Lennart Poettering 4e73145363 make sure that two card profiles with the same priority don't collide with each other 2009-06-17 02:34:22 +02:00
Lennart Poettering 874ebedf16 don't abort when icon is missing from the theme 2009-06-14 19:28:32 +02:00
Lennart Poettering ee58abeb91 reenable monitor streams 2009-04-14 00:00:01 +02:00
Colin Guthrie dc2eb66e0a Order the card profiles by their priority 2009-03-25 21:10:21 +00:00
Lennart Poettering feff1f6f05 configure steps for scales 2009-03-21 03:49:19 +01:00
Lennart Poettering 7116369503 visualize base volume 2009-03-21 03:27:25 +01:00
Colin Guthrie c4208bfd8e Use C style comments as per Lennart's fetish :p 2009-03-18 21:01:03 +00:00
Colin Guthrie c6b73de308 Move config.h inclusion to the .cc files 2009-03-18 20:58:17 +00:00
Colin Guthrie 53288073c1 Split mainwindow into it's own files. 2009-03-16 13:21:14 +00:00