Skip to content

Commit

Permalink
Merge pull request #1300 from Palakis/multi-broadcasting
Browse files Browse the repository at this point in the history
Multi-broadcasting
  • Loading branch information
daschuer authored Nov 20, 2017
2 parents f76d5c7 + 993d0cb commit 7bf4209
Show file tree
Hide file tree
Showing 47 changed files with 4,438 additions and 2,026 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ addons:
- protobuf-compiler
- scons
- vamp-plugin-sdk
- qtkeychain-dev
before_install:
# Virtual X, needed for analyzer waveform tests
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0 ; fi
Expand Down
5 changes: 3 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ available_features = [features.Mad,
features.IPod,
features.FFMPEG,

# Experimental features
features.OpenGLES
# Experimental features
features.OpenGLES,
features.QtKeychain
]

build = mixxx.MixxxBuild(target, machine, build_type,
Expand Down
13 changes: 11 additions & 2 deletions build/depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,12 @@ def configure(self, build, conf):
def sources(self, build):
return ['#lib/reverb/Reverb.cc']

class QtKeychain(Dependence):
def configure(self, build, conf):
libs = ['qtkeychain']
if not conf.CheckLib(libs):
raise Exception(
"Could not find qtkeychain.")

class MixxxCore(Feature):

Expand Down Expand Up @@ -680,10 +686,12 @@ def sources(self, build):
"preferences/settingsmanager.cpp",
"preferences/replaygainsettings.cpp",
"preferences/broadcastsettings.cpp",
"preferences/broadcastsettings_legacy.cpp",
"preferences/broadcastsettingsmodel.cpp",
"preferences/broadcastprofile.cpp",
"preferences/upgrade.cpp",
"preferences/dlgpreferencepage.cpp",


"effects/effectmanifest.cpp",
"effects/effectmanifestparameter.cpp",

Expand Down Expand Up @@ -755,7 +763,8 @@ def sources(self, build):
"engine/enginevumeter.cpp",
"engine/enginesidechaincompressor.cpp",
"engine/sidechain/enginesidechain.cpp",
"engine/sidechain/networkstreamworker.cpp",
"engine/sidechain/networkoutputstreamworker.cpp",
"engine/sidechain/networkinputstreamworker.cpp",
"engine/enginexfader.cpp",
"engine/enginemicrophone.cpp",
"engine/enginedeck.cpp",
Expand Down
26 changes: 25 additions & 1 deletion build/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def sources(self, build):
depends.Qt.uic(build)('preferences/dialog/dlgprefbroadcastdlg.ui')
return ['preferences/dialog/dlgprefbroadcast.cpp',
'broadcast/broadcastmanager.cpp',
'engine/sidechain/enginebroadcast.cpp']
'engine/sidechain/shoutconnection.cpp']


class Opus(Feature):
Expand Down Expand Up @@ -1300,3 +1300,27 @@ def sources(self, build):

def depends(self, build):
return [depends.IOKit, depends.UPower]

class QtKeychain(Feature):
def description(self):
return "Secure credentials storage support for Live Broadcasting profiles"

def enabled(self, build):
build.flags['qtkeychain'] = util.get_flags(build.env, 'qtkeychain', 0)
if int(build.flags['qtkeychain']):
return True
return False

def add_options(self, build, vars):
vars.Add('qtkeychain', 'Set to 1 to enable secure credentials storage support for Live Broadcasting profiles', 0)

def configure(self, build, conf):
if not self.enabled(build):
return
build.env.Append(CPPDEFINES='__QTKEYCHAIN__')

def sources(self, build):
return []

def depends(self, build):
return [depends.QtKeychain]
Binary file added res/skins/Shade/btn_broadcast_warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion res/skins/Shade/mixer_panel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@

<PushButton>
<Style></Style>
<NumberStates>4</NumberStates>
<NumberStates>5</NumberStates>
<State>
<Number>0</Number>
<Pressed>btn_broadcast_unconnected.png</Pressed>
Expand All @@ -624,6 +624,11 @@
<Pressed>btn_broadcast_failure.png</Pressed>
<Unpressed>btn_broadcast_failure.png</Unpressed>
</State>
<State>
<Number>4</Number>
<Pressed>btn_broadcast_warning.png</Pressed>
<Unpressed>btn_broadcast_warning.png</Unpressed>
</State>
<Pos>113,30</Pos>
<Connection>
<ConfigKey>[Shoutcast],enabled</ConfigKey>
Expand Down
66 changes: 66 additions & 0 deletions res/skins/Tango/button_5state_display.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!--
Description:
A button that has click or display controls.
Variables:
ObjectName : object name
TooolTipID : standard Tooltip from mixxx db
see: https://github.com/mixxxdj/mixxx/blob/master/src/skin/tooltips.cpp
Size : button size
state_X_text : label text for state X
state_X_pressed : background graphic for pressed state X
state_X_unpressed : background graphic for unpressed state X
Align : alignment of text
ConfigKey : left-click control
ConfigKeyDisp : display control
-->
<Template>
<PushButton>
<TooltipId><Variable name="TooltipId"/></TooltipId>
<ObjectName><Variable name="ObjectName"/></ObjectName>
<Size><Variable name="Size"/></Size>
<NumberStates>5</NumberStates>
<State>
<Number>0</Number>
<Text><Variable name="state_0_text"/></Text>
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_0_pressed"/></Pressed>
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_0_unpressed"/></Unpressed>
<Alignment><Variable name="Align"/></Alignment>
</State>
<State>
<Number>1</Number>
<Text><Variable name="state_1_text"/></Text>
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_1_pressed"/></Pressed>
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_1_unpressed"/></Unpressed>
<Alignment><Variable name="Align"/></Alignment>
</State>
<State>
<Number>2</Number>
<Text><Variable name="state_2_text"/></Text>
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_2_pressed"/></Pressed>
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_2_unpressed"/></Unpressed>
<Alignment><Variable name="Align"/></Alignment>
</State>
<State>
<Number>3</Number>
<Text><Variable name="state_3_text"/></Text>
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_3_pressed"/></Pressed>
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_3_unpressed"/></Unpressed>
<Alignment><Variable name="Align"/></Alignment>
</State>
<State>
<Number>4</Number>
<Text><Variable name="state_4_text"/></Text>
<Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_4_pressed"/></Pressed>
<Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_<Variable name="state_4_unpressed"/></Unpressed>
<Alignment><Variable name="Align"/></Alignment>
</State>
<Connection>
<ConfigKey><Variable name="ConfigKey"/></ConfigKey>
<ButtonState>LeftButton</ButtonState>
</Connection>
<Connection>
<ConfigKey><Variable name="ConfigKeyDisp"/></ConfigKey>
<ConnectValueFromWidget>false</ConnectValueFromWidget>
</Connection>
</PushButton>
</Template>
137 changes: 137 additions & 0 deletions res/skins/Tango/buttons/btn_broadcast_warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7bf4209

Please sign in to comment.