mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Merge branch 'uncool/dvbsi++' commit 'dc95ffa37c6'
...needs buildfixing... Conflicts: data/icons/shutdown.jpg data/icons/start.jpg lib/libtuxtxt/tuxtxt.h src/driver/Makefile.am src/driver/audiodec/Makefile.am src/driver/framebuffer.cpp src/driver/record.cpp src/driver/volume.cpp src/gui/audio_setup.cpp src/gui/audioplayer.cpp src/gui/epgview.cpp src/gui/eventlist.cpp src/gui/filebrowser.cpp src/gui/infoviewer.cpp src/gui/keybind_setup.cpp src/gui/miscsettings_menu.cpp src/gui/movieplayer.cpp src/gui/osd_setup.cpp src/gui/scan.cpp src/gui/scan_setup.cpp src/gui/streaminfo2.cpp src/gui/update.cpp src/gui/videosettings.cpp src/gui/widget/menue.cpp src/neutrino.cpp src/neutrino_menue.cpp src/system/Makefile.am src/system/configure_network.cpp src/system/httptool.cpp src/system/setting_helpers.cpp src/timerd/timermanager.cpp src/zapit/include/zapit/frontend_c.h src/zapit/src/Makefile.am src/zapit/src/capmt.cpp src/zapit/src/frontend.cpp src/zapit/src/zapit.cpp
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
#include "gui/audio_setup.h"
|
||||
#include "audio_setup.h"
|
||||
|
||||
#include <global.h>
|
||||
#include <neutrino.h>
|
||||
@@ -54,7 +54,7 @@ extern cAudio *audioDecoder;
|
||||
CAudioSetup::CAudioSetup(bool wizard_mode)
|
||||
{
|
||||
is_wizard = wizard_mode;
|
||||
|
||||
|
||||
width = w_max (40, 10);
|
||||
selected = -1;
|
||||
}
|
||||
@@ -68,18 +68,17 @@ int CAudioSetup::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
||||
{
|
||||
dprintf(DEBUG_DEBUG, "init audio setup\n");
|
||||
int res = menu_return::RETURN_REPAINT;
|
||||
|
||||
|
||||
if (parent)
|
||||
{
|
||||
parent->hide();
|
||||
}
|
||||
|
||||
res = showAudioSetup();
|
||||
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
#define AUDIOMENU_ANALOGOUT_OPTION_COUNT 3
|
||||
const CMenuOptionChooser::keyval AUDIOMENU_ANALOGOUT_OPTIONS[AUDIOMENU_ANALOGOUT_OPTION_COUNT] =
|
||||
{
|
||||
@@ -134,23 +133,30 @@ int CAudioSetup::showAudioSetup()
|
||||
|
||||
//analog modes (stereo, mono l/r...)
|
||||
CMenuOptionChooser * as_oj_analogmode = new CMenuOptionChooser(LOCALE_AUDIOMENU_ANALOG_MODE, &g_settings.audio_AnalogMode, AUDIOMENU_ANALOGOUT_OPTIONS, AUDIOMENU_ANALOGOUT_OPTION_COUNT, true, audioSetupNotifier);
|
||||
|
||||
as_oj_analogmode->setHint("", LOCALE_MENU_HINT_AUDIO_ANALOG_MODE);
|
||||
|
||||
//dd subchannel auto on/off
|
||||
CMenuOptionChooser * as_oj_ddsubchn = new CMenuOptionChooser(LOCALE_AUDIOMENU_DOLBYDIGITAL, &g_settings.audio_DolbyDigital, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, audioSetupNotifier);
|
||||
|
||||
as_oj_ddsubchn->setHint("", LOCALE_MENU_HINT_AUDIO_DD);
|
||||
|
||||
//dd via hdmi
|
||||
CMenuOptionChooser *as_oj_dd_hdmi = NULL;
|
||||
if (g_info.hw_caps->has_HDMI)
|
||||
if (g_info.hw_caps->has_HDMI) {
|
||||
as_oj_dd_hdmi = new CMenuOptionChooser(LOCALE_AUDIOMENU_HDMI_DD, &g_settings.hdmi_dd, AUDIOMENU_HDMI_DD_OPTIONS, AUDIOMENU_HDMI_DD_OPTION_COUNT, true, audioSetupNotifier);
|
||||
|
||||
as_oj_dd_hdmi->setHint("", LOCALE_MENU_HINT_AUDIO_HDMI_DD);
|
||||
}
|
||||
|
||||
//dd via spdif
|
||||
CMenuOptionChooser * as_oj_dd_spdif = new CMenuOptionChooser(LOCALE_AUDIOMENU_SPDIF_DD, &g_settings.spdif_dd, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, audioSetupNotifier);
|
||||
|
||||
as_oj_dd_spdif->setHint("", LOCALE_MENU_HINT_AUDIO_SPDIF_DD);
|
||||
|
||||
//av synch
|
||||
CMenuOptionChooser * as_oj_avsync = new CMenuOptionChooser(LOCALE_AUDIOMENU_AVSYNC, &g_settings.avsync, AUDIOMENU_AVSYNC_OPTIONS, AUDIOMENU_AVSYNC_OPTION_COUNT, true, audioSetupNotifier);
|
||||
|
||||
as_oj_avsync->setHint("", LOCALE_MENU_HINT_AUDIO_AVSYNC);
|
||||
|
||||
//volume steps
|
||||
CMenuOptionNumberChooser * as_oj_vsteps = new CMenuOptionNumberChooser(LOCALE_AUDIOMENU_VOLUME_STEP, (int *)&g_settings.current_volume_step, true, 1, 25, NULL);
|
||||
as_oj_vsteps->setHint("", LOCALE_MENU_HINT_AUDIO_VOLSTEP);
|
||||
|
||||
//clock rec
|
||||
// CMenuOptionChooser * as_oj_clockrec new CMenuOptionChooser(LOCALE_AUDIOMENU_CLOCKREC, &g_settings.clockrec, AUDIOMENU_CLOCKREC_OPTIONS, AUDIOMENU_CLOCKREC_OPTION_COUNT, true, audioSetupNotifier);
|
||||
@@ -160,18 +166,22 @@ int CAudioSetup::showAudioSetup()
|
||||
//SRS
|
||||
//SRS algo
|
||||
CMenuOptionChooser * as_oj_algo = new CMenuOptionChooser(LOCALE_AUDIO_SRS_ALGO, &g_settings.srs_algo, AUDIOMENU_SRS_OPTIONS, AUDIOMENU_SRS_OPTION_COUNT, g_settings.srs_enable, audioSetupNotifier);
|
||||
|
||||
as_oj_algo->setHint("", LOCALE_MENU_HINT_AUDIO_SRS_ALGO);
|
||||
|
||||
//SRS noise manage
|
||||
CMenuOptionChooser * as_oj_noise = new CMenuOptionChooser(LOCALE_AUDIO_SRS_NMGR, &g_settings.srs_nmgr_enable, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, g_settings.srs_enable, audioSetupNotifier);
|
||||
|
||||
as_oj_noise->setHint("", LOCALE_MENU_HINT_AUDIO_SRS_NMGR);
|
||||
|
||||
//SRS reverence volume
|
||||
CMenuOptionNumberChooser * as_oj_volrev = new CMenuOptionNumberChooser(LOCALE_AUDIO_SRS_VOLUME, &g_settings.srs_ref_volume, g_settings.srs_enable, 1, 100, audioSetupNotifier);
|
||||
|
||||
as_oj_volrev->setHint("", LOCALE_MENU_HINT_AUDIO_SRS_VOLUME);
|
||||
|
||||
//SRS on/off
|
||||
CTruVolumeNotifier truevolSetupNotifier(as_oj_algo, as_oj_noise, as_oj_volrev);
|
||||
CMenuOptionChooser * as_oj_srsonoff = new CMenuOptionChooser(LOCALE_AUDIO_SRS_IQ, &g_settings.srs_enable, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true, &truevolSetupNotifier);
|
||||
as_oj_srsonoff->setHint("", LOCALE_MENU_HINT_AUDIO_SRS);
|
||||
#endif
|
||||
|
||||
|
||||
#if 0
|
||||
CStringInput * audio_PCMOffset = new CStringInput(LOCALE_AUDIOMENU_PCMOFFSET, g_settings.audio_PCMOffset, 2, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "0123456789 ", audioSetupNotifier);
|
||||
CMenuForwarder *mf = new CMenuForwarder(LOCALE_AUDIOMENU_PCMOFFSET, true, g_settings.audio_PCMOffset, audio_PCMOffset );
|
||||
@@ -204,7 +214,7 @@ int CAudioSetup::showAudioSetup()
|
||||
#if 0
|
||||
audioSettings->addItem(mf);
|
||||
#endif
|
||||
|
||||
|
||||
int res = audioSettings->exec(NULL, "");
|
||||
selected = audioSettings->getSelected();
|
||||
delete audioSettings;
|
||||
@@ -218,12 +228,11 @@ void CAudioSetup::setWizardMode(bool mode)
|
||||
is_wizard = mode;
|
||||
}
|
||||
|
||||
|
||||
CTruVolumeNotifier::CTruVolumeNotifier(CMenuOptionChooser* o1, CMenuOptionChooser* o2, CMenuOptionNumberChooser *n1)
|
||||
{
|
||||
toDisable_oj[0]=o1;
|
||||
toDisable_oj[1]=o2;
|
||||
toDisable_nj=n1;
|
||||
toDisable_oj[0]=o1;
|
||||
toDisable_oj[1]=o2;
|
||||
toDisable_nj=n1;
|
||||
}
|
||||
|
||||
bool CTruVolumeNotifier::changeNotify(const neutrino_locale_t, void * data)
|
||||
@@ -239,4 +248,3 @@ bool CTruVolumeNotifier::changeNotify(const neutrino_locale_t, void * data)
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user