Commit graph

1127 commits

Author SHA1 Message Date
Alexandre Trendel
71e9295ee8 fix: map authentication errors to a custom error type 2021-02-05 14:26:32 +01:00
Sasha Hilton
632894a13e
Merge pull request #526 from marcelbuesing/align-player-events
Align PLAYER_EVENT naming
2021-02-05 04:25:43 +00:00
Sasha Hilton
86adb0695c
Merge pull request #588 from librespot-org/gh-workflow-cache
Cache build dependencies in Github Workflows
2021-02-05 04:20:48 +00:00
Sasha Hilton
24486c8c83
Merge pull request #573 from librespot-org/album-normalisation
Add option to choose between track or album normalisation gain
2021-02-05 04:19:09 +00:00
johannesd3
f67ceb5f6d Small refactoring 2021-02-02 02:19:15 +01:00
johannesd3
3446864838 Handle corrupt cache files (#591) 2021-02-02 02:18:58 +01:00
Sasha Hilton
4990351dba
Merge pull request #585 from ericonr/patch-1 2021-02-02 01:10:27 +00:00
Sasha Hilton
c13c852ba0
Merge pull request #589 from librespot-org/alsa-dep 2021-02-02 01:09:04 +00:00
Sasha Hilton
a09845ee7d
Merge pull request #582 from Johannesd3/refactor_cache_remove_volume 2021-02-02 01:08:07 +00:00
johannesd3
efedc678d0 Handle cache full situation 2021-01-31 10:00:02 +01:00
Sasha Hilton
5e4e574f78 Bump alsa version in playback crate, remove duplicate dependency 2021-01-31 02:50:20 +00:00
Sasha Hilton
cbdb47751a Add note about cache directory permissions 2021-01-31 02:31:35 +00:00
Sasha Hilton
49789f01d7 Fix incorrect lockfiles reference 2021-01-31 02:02:34 +00:00
Sasha Hilton
fb9720d3c2 Cache build dependencies in Github Workflows 2021-01-31 01:55:47 +00:00
Sasha Hilton
4a97108c8c Update librespot-tremor Cargo.lock dependency 2021-01-31 01:38:56 +00:00
Sasha Hilton
ccde0c8dcb Merge branch 'dev' into patch-1
Merge latest changes from dev
2021-01-31 01:37:11 +00:00
Sasha Hilton
9ad68dfb76 Remove depreciated error description method 2021-01-31 01:36:10 +00:00
Sasha Hilton
8c50ef9608
Merge pull request #586 from Johannesd3/bump-lewton
Bump lewton to 0.10
2021-01-30 21:06:22 +00:00
Sasha Hilton
89eaa392a9
Merge pull request #587 from Johannesd3/refactor-spotify-id
Refactor SpotifyId
2021-01-30 21:03:08 +00:00
Sasha Hilton
318c499dc5 Change opt message to reflect default selection accurately. 2021-01-30 02:31:16 +00:00
johannesd3
e582f0a3fc Improved SpotifyId implementation
Moved conversion of SpotifyAudioType from and to &str directly to traits
Used a simpler and more idiomatic syntax in some places.
2021-01-29 11:50:50 +01:00
Michał Chojnacki
6b09836117 Refactor SpotifyId
- perf:
  * base62 encoding is an order of magnitude faster (~20x);
  * base16/62 enc/dec and from_uri are several times faster (~2-20x);
  * Let FileId::to_base16() reuse the hex encoder (~20x);

- changes:
  * Add to_uri() method;
  * Make from_uri() error handling consistent;
  * Move audio type from string matching to a SpotifyAudioType factory (private);
  * Implent From/Into<&str> for SpotifyAudioType;
  * Add representation sizes as associated constants (private);

- cs/docs:
  * Add rudimentary docs for most public funcs;
  * Add trivial test cases for the codecs;
2021-01-29 11:33:31 +01:00
johannesd3
78614c9d7a Bump lewton to 0.10 2021-01-29 11:25:09 +01:00
Johannesd3
ed20f357dc
Fix playback in pulseaudio backend (#577)
* Fix playback in pulseaudio backend

* Add comment regarding safety
2021-01-29 02:01:38 +00:00
Érico Nogueira Rolim
d010cb7999
librespot-audio: update librespot-tremor.
This picks up a fix for librespot-tremor when building with Rust 1.48.
2021-01-28 12:07:33 -03:00
johannesd3
fd1f049572 Removed volume struct 2021-01-25 10:52:06 +01:00
johannesd3
fa5c9f7d11 Made locations in cache optional
The locations of credentials, volume and audio are now stored
in three separate Optional<PathBuf>s.
Removed the clearing of the cache if an error occurs. This might
be added again later.
2021-01-25 10:48:14 +01:00
johannesd3
14a004f84c Refactored Cache
Proper error handling, and moving the conversion between
{ credentials, volume } and file into the cache module
2021-01-25 10:47:42 +01:00
Sasha Hilton
efabb03631 Fix incorrect cache initialisation causing crash on startup 2021-01-24 23:21:35 +00:00
Sasha Hilton
37a5796a86 Add option to choose between track or album normalisation gain, default album. 2021-01-21 19:16:05 +00:00
Sasha Hilton
b76543b9a7
Merge pull request #570 from michaelherger/patch-1
Attempt to fix tests
2021-01-21 18:17:10 +00:00
Michael Herger
53f516e5de
Attempt to fix tests
Tests currently fail with some apt error:

> E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

This change would add the suggested `apt-get update`
2021-01-21 06:34:25 +01:00
Sasha Hilton
06f5aa9c90 Fix incorrect audio cache directory reference 2021-01-02 23:31:37 +00:00
Sasha Hilton
414383db18
Merge pull request #506 from LaurentLouf/feature-split_cache_folders
Feature split cache folders, resolves #505
2021-01-02 23:17:33 +00:00
Sasha Hilton
4678bf0a8f
Merge pull request #550 from jnqnfe/ga
CI: Replace Travis with Github Actions
2021-01-02 23:12:18 +00:00
Lyndon Brown
013a2fdcbf ci: optimise action triggers
it is pointless to run CI jobs for pushes / PRs that only change files that
would never cause a failure, such as documentation.

this avoids wasting resources for such situations.
2020-12-16 16:14:37 +00:00
Lyndon Brown
6f1bf7dd07 ci: add use of github actions
now that travis has ditched it's free service.
2020-12-16 16:05:03 +00:00
Lyndon Brown
0adb8516a6
compiling.md: fixup table formatting (#549)
Such that it is readable as a text file, not only in "rendered" markdown
2020-12-15 11:48:55 +01:00
Sasha Hilton
5d5f7846ec
Merge pull request #541 from jnqnfe/deps
Update some deps
2020-12-15 00:48:06 +00:00
Lyndon Brown
e114558e28 bump rpassword dependency further (v4 to v5)
not sure from brief look at commit log why they jumped to v5, did not care
to dig into it; compiles fine with v5.
2020-12-14 11:53:54 +00:00
Lyndon Brown
a01e0ddaca bump rpassword (v3 to v4)
they just bumped their `winapi` dependency.
2020-12-14 11:53:54 +00:00
Lyndon Brown
e0b7ce8ecd bump env_logger dependency (v0.6 to v0.8)
seems to compile fine.
2020-12-14 11:53:54 +00:00
Lyndon Brown
bda91339b3 bump hex dependency (v0.3 to v0.4)
very little changed, compile fine after.
2020-12-14 11:53:54 +00:00
Lyndon Brown
4fbbe44ab8 bump base64 dependency (v0.10 to v0.13)
very little changed, compiles fine after.
2020-12-14 11:53:54 +00:00
Lyndon Brown
0460429380 bump num-bigint dependency (v0.2 to v0.3)
compiles fine after version change; version changes seem to be very minimal.
2020-12-14 11:53:54 +00:00
Lyndon Brown
8ea200088c bump sdl2 dependency (v0.32 to v0.34)
doesn't seem to have any compatibility issues - compiled cleanly with sdl2
feature after version bump.
2020-12-14 11:53:54 +00:00
Lyndon Brown
3ba05845d2 upgrade jack dependency from v0.5 to v0.6
A bunch of stuff got moved around; means of constructing audio output port
changed.

I simply used the commits, mostly from [1], to their examples to figure
out how to address the errors that resulted from compiling after the
version bump. It compiles cleanly again now.

[1]: https://github.com/RustAudio/rust-jack/pull/89
2020-12-14 11:53:54 +00:00
Lyndon Brown
594de54bec bump zerocopy dependency
doesn't seem to have any compatibility issues.
2020-12-14 11:53:54 +00:00
Lyndon Brown
21b2110da2 bump glib and gstreamer dependency versions
(needed to be done together)

there was no changelog for gstreamer and far too many commits to check
compatibility, but compiling with the gstreamer backend feature works fine
with these new versions.
2020-12-14 11:53:54 +00:00
Lyndon Brown
bc973d02dc bump uuid dependency from 0.7 to 0.8
seems compatible
2020-12-14 11:53:54 +00:00