Stein Magnus Jodal
641f8d2e2d
Port NAD hardware mixer to the GStreamer mixer API
...
Fixes #179
2012-09-08 01:48:05 +02:00
Stein Magnus Jodal
e3ba389996
Make MPRIS frontend handle unknown volume
2012-09-08 01:24:48 +02:00
Stein Magnus Jodal
ebead0d0d2
Fix typo in variable name
2012-09-08 01:22:40 +02:00
Stein Magnus Jodal
21a85c0898
Merge pull request #178 from adamcik/feature/serialize
...
Imutable object serialization support
2012-09-05 16:57:24 -07:00
Stein Magnus Jodal
1bb13b8c1b
Merge pull request #163 from adamcik/feature/switch-to-gst-mixers
2012-09-05 16:40:44 -07:00
Thomas Adamcik
776a5040b1
Review nitpicks.
2012-09-06 00:10:24 +02:00
Thomas Adamcik
59dc48e982
Merge branch 'develop' into feature/serialize
2012-09-06 00:03:33 +02:00
Thomas Adamcik
753070d1db
Merge branch 'develop' into feature/switch-to-gst-mixers
...
Conflicts:
tests/gstreamer_test.py
2012-09-06 00:02:37 +02:00
Stein Magnus Jodal
857c302bb5
Merge branch 'feature/travis' into develop
2012-09-05 23:59:51 +02:00
Stein Magnus Jodal
d8f895fd38
Add Travis CI build status badge to README
2012-09-05 23:58:52 +02:00
Stein Magnus Jodal
8b4302e388
Add Travis CI description to development docs
2012-09-05 23:58:30 +02:00
Thomas Adamcik
6805c16b1a
Add .serialize() method to ImutableObjects.
...
Should be useful for things like dumping to json.
2012-09-05 23:54:37 +02:00
Thomas Adamcik
7e934401fb
Removed refrences to old mixers from docs.
2012-09-05 22:55:57 +02:00
Thomas Adamcik
b0d6dc3e0c
Remove injected gstreamer settings.
2012-09-05 22:42:09 +02:00
Thomas Adamcik
fd3bbc899f
Merge branch 'develop' into feature/switch-to-gst-mixers
...
Conflicts:
mopidy/core.py
2012-09-05 22:32:22 +02:00
Thomas Adamcik
8c038bbae6
Review cleanup.
2012-09-05 20:48:00 +02:00
Thomas Adamcik
562c25043a
Remove comment about get/set_volume.
2012-09-05 20:34:53 +02:00
Thomas Adamcik
1255b87877
Try running with fakesink for gstreamer test.
2012-09-05 01:26:05 +02:00
Thomas Adamcik
4b1595ce97
Attempt at running on travis-ci.
...
- Installs our apt-repo to worker.
- Installs all mopidy deps listed in apt.
- Runs our tests with site-packages, thus we can only test the main python
verision travis uses.
2012-09-05 01:19:27 +02:00
Stein Magnus Jodal
4ce88faed4
Fix deprecation warning by using str(ex) instead of ex.message ( fixes #175 )
2012-09-04 14:04:55 +02:00
Thomas Adamcik
8281128a2e
Move mixers out of gstreamer module.
...
Mixers now live in mopidy.mixers.<shortname>. Futhermore mopidy.mixers should
now import each of the mixers so that doing import mopidy.mixers is enough to
install the gstreamer elements.
2012-09-04 01:04:59 +02:00
Thomas Adamcik
c71202c2be
Remove all of mopidy.mixers and tests.mixers modules.
2012-09-04 00:54:28 +02:00
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
Stein Magnus Jodal
ea4fef5b7b
Remove outdated docstring comment
2012-09-03 23:40:22 +02:00
Stein Magnus Jodal
4352eccdb0
Merge mopidy.core into mopidy.__main__
2012-09-03 23:39:54 +02:00
Stein Magnus Jodal
a450493f67
Another issue fixed by simplified outputs
2012-09-03 23:23:59 +02:00
Stein Magnus Jodal
f96b1e66da
Add issues that was fixed by output simplification to the changelog
2012-09-03 23:22:20 +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