Anna Schumaker
a74cd5e6d1
tests: Update tests for recent deck change
...
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:57:02 -04:00
Anna Schumaker
8dbb4684c7
deck: Update test after sorting changes
...
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:57:01 -04:00
Anna Schumaker
a98443872c
deck: Save the deck whenever a queue changes
...
I read in the saved file when init() is called.
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:57:00 -04:00
Anna Schumaker
078cb546f5
deck: Initialize deck before library during testing
...
To properly set up callbacks.
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:59 -04:00
Anna Schumaker
f51ba3e3ec
library: Create a function for enabling and disabling paths
...
I also update the deck tests, since this is where changes will show up.
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:58 -04:00
Anna Schumaker
74da7beba1
deck: Add a library playqueue
...
When no songs are on the deck a track will be played from the library.
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:58 -04:00
Anna Schumaker
1d559865c8
deck: Updates for the playlist -> playqueue renaming
...
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:57 -04:00
Anna Schumaker
b8b215be35
deck: Save and restore the playlist deck
...
The read and write functions will be called by a higher up layer, so I
need to open the file manually in the test.
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:56 -04:00
Anna Schumaker
83a8b5ae1d
deck: Implement next()
...
I make sure to remove empty playlists from the deck and throw an error
if there are no playable tracks on the deck.
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:56 -04:00
Anna Schumaker
fecc10ab5e
deck: Implement basic deck features
...
- Add playlists
- Remove playlists
- Rearrange playlists
- Get a playlist based on id
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:56:56 -04:00