sinkwidget: add support for AAC pass-through
This commit is contained in:
parent
0d7cbc57a0
commit
cbf3acb543
|
@ -426,9 +426,6 @@
|
|||
<property name="can_focus">False</property>
|
||||
<property name="n_rows">2</property>
|
||||
<property name="n_columns">3</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="encodingFormatPCM">
|
||||
<property name="label" translatable="yes">PCM</property>
|
||||
|
@ -499,6 +496,22 @@
|
|||
<property name="bottom_attach">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="encodingFormatAAC">
|
||||
<property name="label" translatable="yes">AAC</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">False</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">2</property>
|
||||
<property name="right_attach">3</property>
|
||||
<property name="top_attach">1</property>
|
||||
<property name="bottom_attach">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
|
|
|
@ -62,6 +62,18 @@ SinkWidget::SinkWidget(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>
|
|||
encodings[i].encoding = PA_ENCODING_DTS_IEC61937;
|
||||
x->get_widget("encodingFormatDTS", encodings[i].widget);
|
||||
encodings[i].widget->signal_toggled().connect(sigc::mem_fun(*this, &SinkWidget::onEncodingsChange));
|
||||
|
||||
++i;
|
||||
encodings[i].encoding = PA_ENCODING_INVALID;
|
||||
x->get_widget("encodingFormatAAC", encodings[i].widget);
|
||||
encodings[i].widget->set_sensitive(false);
|
||||
#ifdef PA_ENCODING_MPEG2_AAC_IEC61937
|
||||
if (pa_context_get_server_protocol_version(get_context()) >= 28) {
|
||||
encodings[i].encoding = PA_ENCODING_MPEG2_AAC_IEC61937;
|
||||
encodings[i].widget->signal_toggled().connect(sigc::mem_fun(*this, &SinkWidget::onEncodingsChange));
|
||||
encodings[i].widget->set_sensitive(true);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#if HAVE_EXT_DEVICE_RESTORE_API
|
||||
# include <pulse/format.h>
|
||||
|
||||
# define PAVU_NUM_ENCODINGS 5
|
||||
# define PAVU_NUM_ENCODINGS 6
|
||||
|
||||
typedef struct {
|
||||
pa_encoding encoding;
|
||||
|
|
Loading…
Reference in New Issue