Thomas Adamcik
4ffd06736e
Update MPD frontend to use playback volume API.
2012-09-04 00:52:12 +02:00
Thomas Adamcik
14eeb20226
Update MPRIS to use playback.volume API.
2012-09-04 00:30:02 +02:00
Thomas Adamcik
4c509c2e2c
Add volume to playback API of backends.
...
- Add volume get/setter to the playback provider.
- Add volume property to the playback controller.
2012-09-04 00:21:00 +02:00
Thomas Adamcik
44e3cc03e7
Merge branch 'develop' into feature/switch-to-gst-mixers
...
Conflicts:
mopidy/gstreamer.py
2012-09-03 22:59:02 +02:00
Thomas Adamcik
114bc10ae8
Merge branch 'develop' into feature/switch-to-gst-mixers
...
Conflicts:
mopidy/gstreamer.py
2012-09-03 22:54:22 +02:00
Stein Magnus Jodal
5258dddb89
Change boolean arg to kwarg to make it selfdocumenting
2012-09-03 22:53:41 +02:00
Stein Magnus Jodal
4c94c45c25
Fix merge bummer
2012-09-03 22:52:40 +02:00
Thomas Adamcik
ceda421510
Cleanup error handling of bad GStreamer settings.
...
No need to have a GStreamerError, we can just let the GErrors bubble now that
we are initialising in the main thread.
Conflicts:
mopidy/gstreamer.py
2012-09-03 22:38:13 +02:00
Stein Magnus Jodal
5f8374a174
Use same wording in setting validation and docs
2012-09-03 22:32:57 +02:00
Stein Magnus Jodal
252984138f
Map old settings GSTREAMER_AUDIO_SINK and LOCAL_OUTPUT_OVERRIDE to the new OUTPUT setting
2012-09-03 22:32:44 +02:00
Stein Magnus Jodal
7866d62300
Improve docstring
2012-09-03 22:32:19 +02:00
Stein Magnus Jodal
763d09b172
Tweak OUTPUT docs
2012-09-03 22:15:43 +02:00
Stein Magnus Jodal
6b41806eea
Merge remote-tracking branch 'adamcik/feature/simplify-outputs' into develop
...
Conflicts:
docs/changes.rst
mopidy/utils/settings.py
2012-09-03 22:08:52 +02:00
Stein Magnus Jodal
09b02f0558
Reraise exception without losing the traceback ( fixes #173 )
2012-09-03 16:09:14 +02:00
Thomas Adamcik
f6b96680ae
Fix MPD volume command.
...
The command should return -1 when the volume is not known.
2012-09-01 22:07:15 +02:00
Thomas Adamcik
5a0199ac20
Remove MIXER_MAX_VOLUME setting.
2012-09-01 22:06:46 +02:00
Thomas Adamcik
7574862491
Cleanup error handling of bad GStreamer settings.
...
No need to have a GStreamerError, we can just let the GErrors bubble now that
we are initialising in the main thread.
2012-09-01 15:59:38 +02:00
Thomas Adamcik
036bf2ab24
Update code to handle case where AutoAudioMixer fails to find a mixer.
...
This change implies removing the GstMixer interface from the autoaudiomixer,
which allows us to check if a mixer was found in a generic way by using
get_by_interface. This also means we get direct access to the child mixer so
the proxying code is no longer needed.
2012-09-01 15:49:24 +02:00
Thomas Adamcik
eee3edf727
Turn autoaudiomixer into a bin.
...
This allows us to add our sub mixer that we are proxing (not sure if
GstChildProxy can be used in Python) so that state changes to the parent
propagates nicely.
2012-09-01 15:21:13 +02:00
Thomas Adamcik
03b836ed64
Removed autoaudiosink's device selection.
...
The way this code was testing devices locked the element to using the wrong
device. The incorrect device had a max volume of 39 on the Master track, really
making accurate volume changes impossible.
Instead of trying to make any guesses about this I'm leaving it to the element
to have sensible defaults.
Code will also ensure that it returns a newly created copy of the mixer, not
one we have already used.
2012-09-01 15:19:52 +02:00
Thomas Adamcik
40502e41e5
Update tests to catch scaling problem in mixer.
...
- Fixes problem where 60% became 59% due to bad rounding.
- Tests assume scale of 0-65536 which matches ALSA.
- Check all possible values of set_volume and ensure we the right value out.
2012-09-01 14:35:20 +02:00
Thomas Adamcik
9c30fab959
Switch to using a mixerbin instead of element.
...
- This allows us to set values like ``alsasink device=hw:1`` etc.
- Adds an intial volume to our fakemixer.
- Minor code cleanup for rescale() calls.
2012-09-01 14:33:32 +02:00
Thomas Adamcik
2b01860680
Make it possible to override GStreamer settings in tests.
...
- Specifically you can now pass in values instead of relying on global
settings.
2012-09-01 14:01:11 +02:00
Thomas Adamcik
b796d7c859
Add create fakemixer element for testing.
...
- GStreamer tests now use this instead of a real mixer.
- fakemixer and the autoaudiomixer still need to be moved.
- We should probably use a fakesink as output as well.
2012-09-01 13:34:16 +02:00
Thomas Adamcik
2d5ba154ed
Switch to module imports and with assertRaises in init_test.
2012-09-01 13:33:41 +02:00
Stein Magnus Jodal
1c77f9178b
Update changelog with did-you-mean setting matching
2012-09-01 13:33:06 +02:00
Stein Magnus Jodal
fbc9aef828
Merge remote-tracking branch 'adamcik/feature/settings-did-you-mean' into develop
2012-09-01 13:29:13 +02:00
Stein Magnus Jodal
5c6dc96f9d
Fix typo
2012-09-01 13:07:14 +02:00
Thomas Adamcik
55b9bc979c
Merge branch 'feature/simplify-outputs' into feature/switch-to-gst-mixers
...
Conflicts:
mopidy/gstreamer.py
2012-09-01 12:40:39 +02:00
Thomas Adamcik
e4d425d37a
Add did you mean tests for settings.
...
- Checks varying degrees of typos until the edit distance becomes to large.
- Also updated did you mean to always uppercase it's input so we catch caps
errors.
2012-09-01 12:28:32 +02:00
Thomas Adamcik
1f8289a256
Switch to only importing modules in settings_test.
2012-09-01 12:22:41 +02:00
Thomas Adamcik
4e4a209ec3
Fix existing settings tests that did_you_mean broke.
2012-09-01 12:15:08 +02:00
Thomas Adamcik
03a7f03bb8
Style fixes to levenshtein and did_you_mean.
2012-09-01 12:11:09 +02:00
Thomas Adamcik
3c2576a629
Guess what setting you meant based on levenshtein.
2012-09-01 11:46:58 +02:00
Thomas Adamcik
387da58425
Deprecate and remove shoutcast settings.
...
I've also verfied that the examples provided will actually work.
2012-09-01 11:22:05 +02:00
Thomas Adamcik
0a86afbe31
Add audioresample and queue to pipeline, fixes #159
...
- Audioresample should perform as a noop in cases where no conversion is
needed. In cases where the sink requires a fixed sample rate this will
prevent output from breaking.
- The queue is needed to ensure that our outputs play nicely and is simply a
continuation of the queue that was in our old Output abstraction.
2012-09-01 11:19:46 +02:00
Thomas Adamcik
703141c15b
Make sure bad data to OUTPUT does not deadlock.
...
- Moves GStreamer initialization out of on-start as it is not obvious to me how
to stop rest of setup on other ways.
- Note that gst.GError != gobject.GError as far as except is concerned.
2012-09-01 01:35:51 +02:00
Thomas Adamcik
fc4dcc3529
Merge pull request #167 from jodal/feature/list-deps
...
Add --list-deps option
2012-08-31 15:53:50 -07:00
Stein Magnus Jodal
f6cea72bf7
Print 'OK' or 'not found' instead of True/False
2012-09-01 00:49:47 +02:00
Stein Magnus Jodal
a452c49bd3
We're only considering a small subset of the Gstreamer elements
2012-09-01 00:49:12 +02:00
Stein Magnus Jodal
45086fb11d
Update changelog with --list-deps option ( fixes #74 )
2012-09-01 00:21:07 +02:00
Stein Magnus Jodal
d712551c3f
Add list of Gstreamer elements to checck in --list-deps
2012-09-01 00:16:39 +02:00
Stein Magnus Jodal
41853dd3d8
Add platform adapter for --list-deps
2012-09-01 00:00:14 +02:00
Stein Magnus Jodal
05c935bc4c
Add Python impl adapter for --list-deps
2012-08-31 23:59:53 +02:00
Stein Magnus Jodal
44b6307046
Add pyserial adapter for --list-deps
2012-08-31 23:13:15 +02:00
Stein Magnus Jodal
240ab0d226
Add dbus adapter for --list-deps
2012-08-31 22:58:47 +02:00
Stein Magnus Jodal
6e01b320d7
Skip tests for unavailable optional deps
2012-08-31 22:57:29 +02:00
Stein Magnus Jodal
a661b6d848
Add pylast adapter for --list-deps
2012-08-31 22:49:59 +02:00
Stein Magnus Jodal
4284e08d69
Strip file name from printed import paths
2012-08-31 22:46:18 +02:00
Stein Magnus Jodal
4c6a6af487
Add Gstreamer adapter for --list-deps
2012-08-31 22:40:08 +02:00