• 0 Posts
  • 2 Comments
Joined 1 year ago
cake
Cake day: August 12th, 2023

help-circle
  • You say you’ve tried longer durations, but you’re only sleeping for microseconds here… I’d assume you’re simply playing the sound 30 times in 30 microseconds and as such only hear the last iteration. If you want the whole file to play every time, you could replace play_raw with play_once and use the returned Sink to simply sleep_until_end() instead of your own delay.

    Edit: I just saw that you wrote that the clip played once and then quit, that doesn’t make a lot of sense (with that sleep duration, it should quit pretty much immediately). It’s been a while since I played around with Rodio and things seem to have changed a little. From quickly looking into it, I’d probably only call your play_sound function once and edit it to create a Sink in there (see the example in the documentation). You can then append an infinitely repeating source to that sink and sleep for you total desired duration.


  • I’ve been using a Lenovo Yoga Pro 9i (or Slim Pro 9i if you’re in the US) for around half a year now and have been loving it so far. 14" MiniLED screen, 100% DCI-P3, can get really bright, has a touch screen (if that’s something you like) and a 165 Hz refresh rate. Can’t speak for the color accuracy though.

    I got the i9 variant with 32GB RAM and an RTX 4060 GPU during a “Mega Power” sale and with an additional 10% off as a Student for just over 2000€, but even the normal price is “only” (compared to your MacBooks and XPSs) around 2500€ iirc.

    RAM is sadly soldered onto the motherboard but at least you get 6400MHz for it. Storage is upgradeable.

    Connectivity is great (2x USB-C with PD3.1 for 140W charging, one also supporting Thunderbolt 4, HDMI, full-size SD Card reader, 2x USB-A…)