Commit Graph
100 Commits
Author SHA1 Message Date
Alexander Capehart 1d63ad5b7b playback: mirror state internally
Mirror the last playback state of the holder inside
PlaybackStateManager.

This is generally more efficient and will enable better handling of
when state holders attach and detach.
2024-01-09 15:04:32 -07:00
Alexander Capehart d5622895d0 playback: fix more gapless issues 2024-01-09 13:49:00 -07:00
Alexander Capehart 26d14ec6e1 playback: ramshack initial gapless playback impl 2024-01-07 16:05:03 -07:00
Alexander Capehart 5d5356e46e all: cleanup 2024-01-06 21:02:40 -07:00
Alexander Capehart b6703a178e info: update changelog 2024-01-06 20:56:38 -07:00
Alexander Capehart 319eeb07b8 playback: add shuffle order impl
Add a currently-unused ShuffleOrder implementation with fixes for media
item insertion.

This will be used as the basis of the new gapless playback system,
assuming all else goes well.
2024-01-06 20:53:08 -07:00
Alexander Capehart 82952a204f about: add donation link
Add donation link to the about page.
2024-01-06 19:07:40 -07:00
Alexander Capehart 2af90c2427 detail: add replaygain values to song properties
This should allow for clearer debugging.
2024-01-06 18:46:13 -07:00
Alexander Capehart 5c85001b0c music: add opus base gain support
OPUS has another volume adjustment field on top of the existing R128
adjustments. I was under the impression this was handled by the android
system, but apparently not. This commit applies the base gain to files
by just adding them onto the existing ReplayGain values.

Resolves #521.
2024-01-06 18:26:53 -07:00
Alexander Capehart cdd08e7f99 home: clean up hacky overlay impl
Should have a lesser likelihood of crashing outright, hopefully.
2024-01-05 13:09:24 -07:00
Alexander Capehart c4143e7d95 music: log when volume cannot be found
Mostly for debugging purposes.
2024-01-05 12:36:51 -07:00
Alexander Capehart 19bfd758a6 Update README.md 2024-01-05 00:06:12 +00:00
Alexander Capehart ccee1e87ce Update README.md 2024-01-05 00:06:01 +00:00
Alexander Capehart 25d7a8cf07 Update README.md 2024-01-05 00:04:59 +00:00
Alexander Capehart 55ee0cab91 Add alanorth link 2024-01-04 18:51:55 +00:00
Alexander Capehart 95a2a3fb47 Add sponsor info to README 2024-01-04 18:51:17 +00:00
Alexander Capehart 3202660449 music: add check to playlist export dialog 2024-01-03 18:51:29 -07:00
Alexander Capehart 4e2e6f66b6 Merge pull request #659 from OxygenCobalt/dev
Version 3.3.0
2024-01-03 14:30:35 -07:00
Alexander Capehart 43af2d866d home: fix shuffle not working on rotate 2024-01-03 09:26:28 -07:00
Alexander Capehart b74e622923 info: add missing fastlane changelog 2024-01-02 17:22:56 -07:00
Alexander Capehart 2b55caadd1 home: fix more speed dial touch problems
Handle back presses gracefully without finicky behavior when doing back
gestures.

I've spent far too much time trying to make this sensible. I'm going to
take a break.
2024-01-02 17:19:10 -07:00
Alexander Capehart 7537d135f2 ui: remove redundant sheet content inset 2024-01-02 15:38:34 -07:00
Alexander Capehart 8a75295d99 home: reimplement speed dial overlay
The stock overlay is not sufficient for our needs, as:
1. It seemingly cannot be set up without missing certain touch areas or
disabling the touch area of the speed dial itself
2. The scrim can't be evenly applied everywhere in the app due to the
nested expore UI.

So, modify the speed dial to work without a scrim and reimplement the
overlay touch behavior manually.
2024-01-02 15:38:23 -07:00
Alexander Capehart afa73a2319 music: fix playlist import naming 2024-01-01 21:38:39 -07:00
Alexander Capehart e500286b8b music: support paths in documents
Apprently these only report their IDs, frustratingly.
2024-01-01 21:38:21 -07:00
Alexander Capehart 32432b18b6 music: fix m3u windows volume detection 2024-01-01 21:36:46 -07:00
Alexander Capehart 399237d2fe build: bump to 3.3.0
Bump the app version to 3.3.0 (36).
2024-01-01 20:37:05 -07:00
Alexander Capehart 0675ce8a03 music: rename playlist when reimporting
When reimporting an M3U file into a playlist, if the name differs, then
initiate a rename dialog so the user has a choice on whether they want
to use the new name or not.

This does kinda desecrate the "Rename" decision a bit, but it's still
to the user the same.
2024-01-01 20:21:39 -07:00
Alexander Capehart 9ad11ec5aa music: allow renaming playlist before import
When you import a playlist, Auxio will now always display the
"New Playlist" dialog so you can change whatever name Auxio has picked
for the imported playlist.

This also prevents the creation of two playlists with the same names.
2024-01-01 16:12:01 -07:00
Alexander Capehart 68584ba426 music: fix file document path extraction
Apparently on Android 14 you need to reassemble the document URI and
then extract it's ID to get a path object. Really not sure why.
2024-01-01 16:10:11 -07:00
Alexander Capehart bf9667f545 music: fix working directory in m3u export 2024-01-01 16:07:50 -07:00
Alexander Capehart 244373e2af info: update changelog 2024-01-01 14:39:03 -07:00
Alexander Capehart 53870cd31b music: fix reloads not cancelling prior ones
Caused by a dumb mistake in the cancellation code.
2024-01-01 14:36:26 -07:00
Alexander Capehart 28ff2b416a home: make add speed fab consistent with shuffle
Was using color secondary prior since the code was derived from
MaterialFiles.
2024-01-01 14:35:59 -07:00
Alexander Capehart 574e129f34 music: cleanup and document 2024-01-01 14:08:47 -07:00
Alexander Capehart 538533bf3f music: discard songs w/o volumes 2024-01-01 13:38:26 -07:00
Alexander Capehart 4a3beafc77 music: indicate volume components checked 2024-01-01 12:52:01 -07:00
Alexander Capehart 17939f6b2a music: correctly propagate error 2024-01-01 12:36:08 -07:00
Alexander Capehart b10caaef54 music: more path interpreter guards 2024-01-01 12:25:49 -07:00
Alexander Capehart 77f0bbe614 util: correctly throw channel errors
Wasn't being properly handled before, leading to weird behavior.
2024-01-01 12:02:38 -07:00
Alexander Capehart ed519eeccc music: refine new mediastoreextractor impl
- Make the interpreters use a more conventional naming structure
- Remove the redundant file name extraction that is largely an artifact
of older versions
2024-01-01 12:02:38 -07:00
Alexander Capehart 6b9f6862af music: correctly parse data with new paths
Accidental regression appeared due to inconsistent trailing slashes, so
we need to reimplement this using the path datatype itself.
2024-01-01 12:02:38 -07:00
Alexander Capehart ec8e598d3b Create FUNDING.yml 2024-01-01 18:18:24 +00:00
Alexander Capehart 2af8d8b4bd music: remove old deadlock check
No longer needed and likely causing bugs
2024-01-01 10:06:36 -07:00
Alexander Capehart c7f8b3ca6d music: refactor mediastoreextractor internals
Split the version-specific components into "Interpreters" that are then
composed into MediaStoreExtractor. This is both a nicer design and also
allows me to resolve an evil Huawei bug that prevents me from using the
new path fields.

Resolves #592
2023-12-31 23:34:00 -07:00
Alexander Capehart 6956ca5915 music: fix m3u windows path importing
Forgot that Regex always matches the entire string, so I have to tack
on a wildcard.
2023-12-24 11:35:59 -07:00
Alexander Capehart 480b1b28e5 music: display correct message on new playlist
The context of the "New Playlist" dialog can differ depending on the
action performed, such as adding to a playlist or importing a playlist.
We need to make sure we're still showing the right message once this
is done.
2023-12-24 11:34:55 -07:00
Alexander Capehart c5a3f72b99 music: add more playlist messages
Add more types of playlist messages corresponding to other actions, so
they can be indicated in the UI only when the process is complete.

This is somewhat incomplete. It does not include indicating errors for
other playlist operations (Which I want to do), and neither does it
handle situations in which some playlist operations and up reducing
to others (i.e import -> create). I need to do that later.
2023-12-23 22:02:55 -07:00
Alexander Capehart 21970349cc music: add ability to import into playlists
Add a menu option that allows you to import a playlist file into an
existing playlist.

This is useful for keeping Auxio playlists up to date with a remote
source.
2023-12-23 20:50:40 -07:00
Alexander Capehart c9b1ab9068 all: reformat xml 2023-12-23 20:01:20 -07:00
Alexander Capehart 4ad2fe1a58 info: fix readme version 2023-12-23 12:29:27 -07:00
Alexander Capehart 61cb520ab8 info: update changelog 2023-12-23 12:29:05 -07:00
Alexander Capehart c1fc548e6a tests: fix tests 2023-12-23 12:19:06 -07:00
Alexander Capehart 3f1f2f5c2d music: implement exporting frontend
Implement the exporting dialog and flow in all places in the app.
2023-12-23 12:16:02 -07:00
Alexander Capehart 68e4da5e7e music: make playlist export configurable
Add configuration options for:
- Using windows-compatible paths with \ separators and C:\\ volume
prefixes
- Switching between relative and absolute paths
2023-12-23 12:12:51 -07:00
Alexander Capehart c3f67d4dc5 music: fix m3u export
Wasn't correctly writing and also naively relative-izing paths. Those
should be fixed now, I hope.
2023-12-21 20:59:19 -07:00
Alexander Capehart d59230be6d music: re-add missing file 2023-12-20 22:53:08 -07:00
Alexander Capehart 771009d4ff music: add m3u exporting backend
Add the backend for exporting playlists to m3u files.
2023-12-20 22:49:02 -07:00
Alexander Capehart 3d92bdab6f info: update changelog 2023-12-20 13:49:43 -07:00
Alexander Capehart 5562c18415 tests: fix
Need to mock paths now
2023-12-20 13:39:49 -07:00
Alexander Capehart c995eb0d04 music: support m3u absolute paths
Under the assumption they are in the same volume as the file. It's
hacky, but whatever.
2023-12-20 13:32:13 -07:00
Alexander Capehart c66a9b19b5 music: more m3u support
- Turns out path extraction via MediaStore doesn't work, have to grok
the URI format.
- Added playlist name extraction
- Proactively handling whitespace
2023-12-20 13:28:36 -07:00
Alexander Capehart 634ff0d823 home: add playlist import flow
Connect the playlist importing system to the home view's playlist add
button.
2023-12-20 13:28:20 -07:00
Alexander Capehart 2195431c66 music: dont inject contentresolver
I don't know why, but I can't inject it without causing errors.
2023-12-20 12:12:40 -07:00
Alexander Capehart e553744c8e music: rename import to external
Apparently hilt doesn't like a module with the name import, probably
because of a keyword conflict.
2023-12-20 11:59:48 -07:00
Alexander Capehart 88bce610ca music: connect playlist importing to frontend 2023-12-20 11:04:54 -07:00
Alexander Capehart fff8212b0a music: add importing backend
Add basic importing infrastructure and an M3U parser to the backend.
2023-12-20 11:02:20 -07:00
Alexander Capehart 364675b252 music: revamp paths
Revamp paths with an entirely new abstraction that should improve
testability and integration with M3U playlists.
2023-12-19 22:14:59 -07:00
Alexander Capehart 08ca71b7b0 home: make playlist add a speed dial
Add a speed dial menu that allows you to create a new playlist or
import a playlist from elsewhere.
2023-12-19 15:11:01 -07:00
Alexander Capehart d3de34ed5e music: throw on deadlocks
Attempt to throw an exception when any part of the loading routine
times out.
2023-12-18 18:36:09 -07:00
Alexander Capehart 4cb309f01f playback: eliminate old viewpager stuff 2023-12-16 17:49:41 -07:00
Alexander Capehart b0dd13b9a3 Merge branch 'dev' into feature/cover_gestures 2023-12-17 00:30:33 +00:00
Alexander Capehart cd42c77304 playback: use ffmpeg first
Always decode with ffmpeg before decoding with MediaCodec.

MediaCodec is unreliable on some devices in such a way as to cause a
full loading failure on them. Prevent this by using ffmpeg.
2023-12-16 16:33:54 -07:00
Alexander Capehart bf1cbad1da build: update media 2023-12-16 15:45:07 -07:00
Alexander Capehart b7f33622e7 build: update media3 2023-12-16 15:17:53 -07:00
Alexander Capehart b9bcdf4a51 build: fix ndk 2023-12-16 14:33:17 -07:00
Alexander Capehart f4db2fcd80 build: use ndk r25
Apparently GH actions doesn't like NDK r26 yet.
2023-12-16 14:26:52 -07:00
Alexander Capehart 953b92108a build: update to ndk r26
Builds, unsure if it will cause any signifigant changes.
2023-12-16 14:21:14 -07:00
Alexander Capehart 4421d6cf36 music: deduplicate by case
At some point, the switch to keying raw music information broke my
mitigation for duplicate tags that use similar cases. This then
crashed the music loader in certain cases. Fix it by making the
check use raw music keys.

Resolves #614
2023-12-16 13:52:36 -07:00
Alexander Capehart 7a90e7eef1 build: update deps
Will need to put some work into updating some others
2023-12-16 13:51:49 -07:00
Alexander Capehart b1c48f13fd build: update agp
AGP -> 8.2.0

Requires me to enable Java 8 desugaring for some...reason.
2023-12-16 11:04:01 -07:00
Alexander Capehart 5204b59114 info: add android 14 to bug template 2023-11-26 14:56:55 -07:00
Alexander Capehart 9ae6b20fd1 music: decouple settings somewhat
Try to decouple the stateful music settings object from the stateless
internals of the music loader. This should make unit testing far
easier.
2023-11-12 11:55:22 -07:00
Alexander Capehart 0ad7a8955a music: eliminate all reference to artists albums
It's no longer used in any capacity.
2023-11-12 11:32:51 -07:00
Alexander Capehart d6801354ce music: only include explicit albums in count
Only include an artists explicit albums (ones directly linked w/album
artist) in their count.

This is arguably more appropriate than the prior behavior, given
Auxio's collaborator/artist distinction.

Resolves #581.
2023-11-12 11:26:27 -07:00
Alexander Capehart bf3c30e8af music: add demo release type
This is part of the MusicBrainz spec, but I didn't think of implementing
it. Turns out it's stupidly common among music releases, so may as well.

Resolves #590.
2023-11-12 11:12:59 -07:00
Alexander Capehart b4b830fbf4 build: separate 3.2.1 changelog 2023-11-12 11:05:49 -07:00
Alexander Capehart 7fef5a27da Revert "playback: temp revert swipe to next behavior"
This reverts commit df7ec27d1c.
2023-11-12 11:05:14 -07:00
Alexander Capehart d5017f8d38 Merge pull request #613 from OxygenCobalt/v3.2.1-cherrypick
Version 3.2.1
2023-11-12 17:22:22 +00:00
Alexander Capehart 0016c77836 music: bump cache version
Accidentally bumped it to version code 35, when this will be version
code 36.
2023-11-12 10:18:03 -07:00
Alexander Capehart df7ec27d1c playback: temp revert swipe to next behavior
It's too buggy to be in a release currently, I have to disable it for
now.
2023-11-12 10:00:41 -07:00
Alexander Capehart 917e6c0737 build: bump to v3.2.1
Bump to version 3.2.1 (35).
2023-11-12 10:00:35 -07:00
Alexander Capehart 23dac3b4b7 music: bump cache db version
Made some changes to tag interpretation, so all users have to rescan
now.
2023-11-12 09:59:08 -07:00
Alexander Capehart d926e19819 all: cleanup 2023-11-11 23:22:46 -07:00
Alexander Capehart ce5b9e35c7 util: inline log functions
A bit of a stupid workaround now that I use Timber and not my
self-rolled logging solution. Timber uses some weird heuristics for
names that I don't.
2023-11-11 23:14:50 -07:00
Alexander Capehart 52697ef891 detail: allow adding to playlist in playlist
The playback view can still add to a playlist from a playlist, so I
have to implement this navigation route no matter what.
2023-11-11 23:01:51 -07:00
Alexander Capehart a99b0ff615 ui: fix hebrew string crash
Caused by weblate once again conflating "many" with "other". I really
need to report that.

Resolves #575.
2023-11-11 22:55:24 -07:00
Alexander Capehart 08f3137c5b app: start service on draw-time
Recently, Android 14 seemed to have finally made it impossible to start
services in onStart. I never realized this error since I thought
onStart signified the beginning of the foreground state, when it was
actually onResume. I think it only worked prior due to race conditions.
Try to fix it by moving the service starting code to onResume.

See #608.
2023-11-11 22:49:35 -07:00
Alexander Capehart 48b0b11e88 all: random cleanup 2023-10-16 21:38:14 -06:00
Alexander Capehart f4518eb70f build: update deps
Forgot to update ksp.
2023-10-16 21:36:41 -06:00