Stein Magnus Jodal
45d4445eea
Merge branch 'develop' into feature/limit-spotify-data-pushing
...
Conflicts:
mopidy/backends/spotify/session_manager.py
2013-01-03 16:18:08 +01:00
Thomas Adamcik
855987447b
audio: Docstring typo typo fixing.
2013-01-03 15:51:09 +01:00
Thomas Adamcik
d5b19ab213
audio: Docstring typo fixing.
2013-01-03 15:45:48 +01:00
Thomas Adamcik
88398ea355
Add new mopidy.audio.utils functions ( fixes #301 ).
...
Adds functions to create buffers, calcalute buffer durations based on number of
samples and the sample rate and converting milliseconds to gst internal clock
time.
This also alows for the removal of all gst imports outside of mopidy.audio.
2013-01-03 15:35:52 +01:00
Stein Magnus Jodal
af6ee16b3a
Fix flake8 warnings
2013-01-02 22:25:55 +01:00
Thomas Adamcik
ca82565b08
audio: Move supported URI checking to mopidy.audio.utils
...
In order to avoid gstreamer imports leaking into more of our code I'm moving
this to a new utils class in audio.
2013-01-01 17:31:17 +01:00
Stein Magnus Jodal
aa0c6f6dc0
audio: Add MB constant to make code more readable
2012-12-24 12:18:48 +01:00
Stein Magnus Jodal
8505ea7f4e
Merge branch 'feature/spotify-to-use-gst-time' into feature/limit-spotify-data-pushing
...
Conflicts:
mopidy/audio/actor.py
mopidy/backends/spotify/playback.py
2012-12-24 01:42:40 +01:00
Stein Magnus Jodal
c218375100
audio: Move Spotify appsrc caps out of audio
2012-12-24 01:40:35 +01:00
Stein Magnus Jodal
a02f2a9602
audio: Make appsrc buffer between 0.5 and 1 MB of data
2012-12-23 12:37:12 +01:00
Stein Magnus Jodal
a555e84225
audio: Add appsrc need-data and enough-data callbacks
2012-12-23 12:36:37 +01:00
Stein Magnus Jodal
b3e92ff573
audio: Log buffering messages
2012-12-23 12:35:52 +01:00
Stein Magnus Jodal
9fa0f5213e
audio: Setup appsrc with seek-data callback
2012-12-23 12:30:02 +01:00
Stein Magnus Jodal
167932278b
audio: Remove blocking get_state() calls in get_position() and seek()
2012-12-23 12:26:56 +01:00
Stein Magnus Jodal
8be84a1ea4
audio: Fix flake8 warning
2012-12-19 22:40:32 +01:00
Trygve Aaberge
81a76bfd92
audio: Define mixer_scale in _setup_mixer
2012-12-19 22:36:00 +01:00
Trygve Aaberge
200e4d2536
audio: Don't try to rescale volume_set if it's None
2012-12-18 19:00:46 +01:00
Trygve Aaberge
fcda4696bc
audio: Use None instead of -1 for undefined volume
2012-12-18 18:18:29 +01:00
Trygve Aaberge
d3e3bef2c0
audio: Rename scales in set_volume for consistency
2012-12-18 13:21:24 +01:00
Trygve Aaberge
ee448d4dd3
audio: Make get_volume able to return all levels
...
This fixes an issue where applications which changes volume by 1 level
at a time could fail to change volume if track.max_volume is less than
100. E.g. get volume could return 44 after volume was set to 43, then
the application would just try to set it to 43 again.
2012-12-18 13:18:56 +01:00
Stein Magnus Jodal
a084105898
docs: Use requirement files as single source of dependencies
2012-12-15 23:07:29 +01:00
Stein Magnus Jodal
959bd6cd84
audio: Add AudioListener.on_event()
2012-12-01 11:20:44 +01:00
Stein Magnus Jodal
6f0919bda8
style: Fix flake8 warnings
2012-11-19 18:01:31 +01:00
Thomas Adamcik
d516e9023a
Store active appsrc and refuse data when it is not set.
...
We use the new source flag and the about to finish flags to set and unset the
current appsrc. In emit data we now return false if the appsrc is not set.
Also note that we need to use b'' for Gstreamer properties as it can't convert
unicode to the correct type. I also added the signal disconnect code for about
to finish.
2012-11-15 22:49:44 +01:00
Thomas Adamcik
f2b975cc37
Update emit_data to return true if data was delivered.
...
This is probably not needed, but for the sake of correctnes it doesn't hurt.
2012-11-15 22:38:27 +01:00
Thomas Adamcik
0a96e5dccb
Update emit_data to take buffers.
...
Simplify emit data method to take Gstreamer buffers. This allows us to more
concisely give it buffers with duration, timestamp and other relevant data set.
2012-11-15 22:34:20 +01:00
Thomas Adamcik
4d4c560882
Merge pull request #240 from jodal/feature/audio-state-events
...
Audio state events
2012-11-14 15:00:09 -08:00
Stein Magnus Jodal
36a14bd8d6
audio: Make log message more useful
2012-11-14 23:40:09 +01:00
Stein Magnus Jodal
f0c8c2287f
audio: Fix typo
2012-11-14 23:37:27 +01:00
Stein Magnus Jodal
6b7256a955
audio: Explicitly disconnect signal handles on teardown
2012-11-14 10:51:52 +01:00
Stein Magnus Jodal
87ce7bbe11
audio: Maintain state and trigger events based on GStreamer state changes
2012-11-14 01:49:17 +01:00
Stein Magnus Jodal
f9bd0d00b3
audio: Move PlaybackState from core to audio so audio can use it
2012-11-14 00:35:17 +01:00
Stein Magnus Jodal
76b1fa8e1b
audio: Add state_changed(old_state, new_state) event
2012-11-13 20:31:38 +01:00
Stein Magnus Jodal
1eef3f6c0e
audio: Make software mixer volume be an int, not a float
2012-11-13 20:25:43 +01:00
Stein Magnus Jodal
6acaa490e9
Make all strings unicode by default ( fixes #224 )
2012-11-13 00:18:47 +01:00
Stein Magnus Jodal
9bc123693e
Make NAD mixer respond to interrupts during calibration
2012-10-29 14:23:10 +01:00
Stein Magnus Jodal
f0602b4e3b
docs: Fix lots of broken module documentation
2012-10-29 00:25:25 +01:00
Stein Magnus Jodal
be5759e9a1
Make sure volume are returned as an int
2012-10-28 23:24:52 +01:00
Stein Magnus Jodal
d685fe554c
Simplify pykka imports
2012-10-26 22:57:41 +02:00
Stein Magnus Jodal
f309e7ec23
Revise audio logging messages
2012-10-26 10:44:58 +02:00
Stein Magnus Jodal
9144c28483
Fix 'not-negotiated' errors on some Spotify tracks ( fixes #213 )
2012-10-24 22:35:36 +02:00
Stein Magnus Jodal
65b550eb44
Ignore invalid pylint warnings ( #211 )
2012-10-17 01:42:58 +02:00
Stein Magnus Jodal
39d0bfa124
Ensure that superclasses' __init__ are called ( #211 )
2012-10-17 01:18:50 +02:00
Stein Magnus Jodal
5a0529b142
Empty utils/__init__.py
2012-10-16 21:36:51 +02:00
Stein Magnus Jodal
bc531d987e
Unroll registration of mixers
2012-10-16 19:36:54 +02:00
Stein Magnus Jodal
7c997d9221
Move create_track() helper to mopidy.audio.mixers.utils
2012-10-16 15:53:44 +02:00
Stein Magnus Jodal
e22175ca98
Move Audio actor from __init__.py to actor.py
2012-10-16 15:49:10 +02:00
Stein Magnus Jodal
def3615787
Move registration of audio mixers into a function ( #211 )
2012-10-16 15:33:26 +02:00
Stein Magnus Jodal
4341b7c2ef
Change author of mixers to 'Mopidy'
2012-10-16 14:01:17 +02:00
Stein Magnus Jodal
666800ec57
Fix most flake8 warnings ( #211 )
2012-10-16 14:00:34 +02:00