lbrndnr / nuage-macos

A native SoundCloud app for macOS, written in SwiftUI
GNU General Public License v3.0
339 stars 17 forks source link

Tracks sometimes restart when resuming #41

Open lbrndnr opened 10 months ago

henningko commented 8 months ago

Is there a workaround? Happens on every pause for me, regardless of the trigger (e.g. via headphones, keyboard, UI input).

lbrndnr commented 8 months ago

Haven't had much time to work on this lately. Contributions are definitely welcome! Otherwise I'll let you know if I find the time to debug this :) If it's happing for you on every pause, it might be easier for you to debug.

lbrndnr commented 8 months ago

@henningko what's your macOS version? When you pause, does the music restart right away or when clicking the play button once more?

henningko commented 8 months ago

I'm on macOS 14.2.1 (23C71) using an M1 Max. When I hit pause, the music pauses as desired, and the timer pauses at the correct time. When I then hit play again, it plays the current song from the beginning.

lbrndnr commented 8 months ago

I see. I cannot reproduce the problem, unfortunately. If you give me some additional info I might be able to work it out though. Do you mind compiling the project, and add in this line the following print statement: print(startIndex, currentStreamIndex, currentStream, newStream)? That would be very helpful :)

Oskar-cmyk commented 7 months ago

Hello, I downloaded it via Brew and had the same problem of jumping to beggining. But then I tried to debug it in the Xcode, but there it was working. So I just created a copy of the archive to my Mac and now I have running app normally. I hope it helps!! :) (don't forget to download SoundCloud.Swift from other page.)

lbrndnr commented 7 months ago

Oh, that would explain why I haven't had this problem. I might have already fixed it. I will release a new version soon then.