News for hackers. Stuff that matters.

mogery

Re:It's A(door)able on Wednesday May 03, 2023 @07:34AM (#35801079)
awww!
Re:Stop Using Custom Web Fonts on Thursday March 16, 2023 @05:24AM (#35179806)
lol no
oh hey! i worked on this a while back!

really cool project. runs unity games too. author is a very talented guy

i suck at chess, but this is lovely!
Re:I hope Apple never adopts RCS on Tuesday August 23, 2022 @07:51AM (#32563442)
How is Adoption a chicken and egg argument? RCS is, by its design, slower to update than iMessage.
Re:Adam74: A terminal for a small 8-bit computer on Sunday August 21, 2022 @07:34PM (#32545584)
Really, using a Teensy 4.0 to make scrolling faster? That seems really overkill to me. You could make a small computer out of a Teensy 4, quite excessive to use it as a display-out.
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) on Friday August 19, 2022 @05:23PM (#32526077)
Yeah, I've realized that the currently used API just lets you request a key for the public Spotify Web API, and I can just get the collection of the user and etc. from there.
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) on Friday August 19, 2022 @07:47AM (#32519849)
To be fair, any other platform could easily outdo Spotify in this regard, if they publicly documented their internal API. :D
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) on Friday August 19, 2022 @04:00AM (#32518517)
I haven't had any issues on the RE end, mostly because I didn't need to do a whole lot of it, as the librespot people have already paved the way. But I've still gotta figure out the new protocol the Spotify client uses for playlists and such, so... there are bound to be issues up ahead.

Most of my issues stemmed from a lack of proper documentation.

One time I screwed up the packet format and was pulling my hair out when the only response I got was "Invalid username/password" from the Spotify API (or something along those lines. been a while).

The other times were more related to the Switch. Figuring out how networking and audio works, mostly. Hunting through the shit documentation and the source code of libnx to find out what I need to do. My audio implementation was either not playing anything or crashing for a long time in the beginning. I still have no clue what I did to solve it, which is unfortunate.

Re:Unofficial Spotify Client for the Nintendo Switch (PoC) on Friday August 19, 2022 @03:49AM (#32518476)
Spotify is actually fine with librespot existing (funnily enough, one of the main reasons the old API is still around is that librespot uses it, lol). So, I doubt it will ever get DMCA'd.
Re:Unofficial Spotify Client for the Nintendo Switch (PoC) on Thursday August 18, 2022 @07:13PM (#32515945)
Thanks!

Yeah, Rust and the Switch don't mesh together very well, at least for now. I was tempted to take that route also, but I ended up reimplementing librespot in C instead, which serves as the backend for this.

Re:Unofficial Spotify Client for the Nintendo Switch (PoC) on Thursday August 18, 2022 @04:49PM (#32514706)
Spotify DRM is basically security through obscurity. It's just AES-128-CTR over a plain old OGG file. The tricky part is figuring out the extremely odd protocol you have to request audio keys and track data through. That's all.