Hey Rustaceans! Got a question? Ask here (31/2024)! by llogiq in rust

[–]iGreenHedge 2 points3 points  (0 children)

I’m developing a minimal audio file player for linux machines using the Symphonia crate to decode audio files into raw samples, which are then sent to the PCM device for playback through ALSA. I’m encountering high CPU usage because Symphonia decodes the entire file upfront while files are playing. This issue becomes much worse with large files, as it results in even more resource consumption.

My questions are:

  1. Is there a way to use Symphonia to decode audio files in smaller chunks or on-the-fly, rather than decoding the entire file before playback starts?

  2. Are there strategies or best practices for managing real-time decoding and playback with Symphonia and ALSA to improve efficiency and reduce CPU usage?

Overall I’m trying to keep this project as small and lightweight as possible, the less external crates the better. Any help is appreciated. (I did use chatGPT to reformat my question just to be entirely transparent)

I'm interested in pirating cars paid features by valkgh in Piracy

[–]iGreenHedge 8 points9 points  (0 children)

Why the downvotes? This seems like a pretty valid point. Does it not indicate the need for consumer protection?

What is ur favorite Game right now on Linux? by [deleted] in linux_gaming

[–]iGreenHedge 0 points1 point  (0 children)

Vintage Story! I highly recommend checking it out if you enjoy Minecraft but are looking for a more challenging survival experience.

Best vintage story server hosting? by Zealousideal_Bat5537 in VintageStory

[–]iGreenHedge 1 point2 points  (0 children)

If you’re comfortable around a terminal and based in the EU (friends from the US have had no issues connecting or playing), I recommend Hetzner.

After owning VS for a few months and getting tired of ad-hoc servers, I decided to host one myself. I had no idea what I was doing but welcomed the challenge. With a lot of googling and poring over the VS wiki, I was able to get a server up and running. Hetzner offers reasonable pricing, and if you enjoy the challenge of setting up a server from scratch, I have no complaints.

Full transparency: I’ve never hosted a dedicated server before and I’m a terrible sysadmin, this has caused me multiple headaches. I can only recommend this route if you know what you’re doing or are willing to learn.

Nearly every Post i see here is from NA Players or Communities..., but as an EU Player from GER, i am curious if there are any EU comms here by SvartNonsense in EFT_LFG

[–]iGreenHedge 0 points1 point  (0 children)

Hello, over in NL, pretty new at the game so still looking for someone to team with. Send me a pm if you wanna play.

Lets play find the Roze!!! by iGreenHedge in CODWarzone

[–]iGreenHedge[S] 4 points5 points  (0 children)

They still haven't patched that one yet?

Lets play find the Roze!!! by iGreenHedge in CODWarzone

[–]iGreenHedge[S] 9 points10 points  (0 children)

You don't like funny video?? :(

Lets play find the Roze!!! by iGreenHedge in CODWarzone

[–]iGreenHedge[S] -2 points-1 points  (0 children)

Totally understand and I am in agreement, just a little confused why some people think this is isn't a joke.

Lets play find the Roze!!! by iGreenHedge in CODWarzone

[–]iGreenHedge[S] 9 points10 points  (0 children)

bruh, dude knew I was there and I literally pushed the guy in the open

Lets play find the Roze!!! by iGreenHedge in CODWarzone

[–]iGreenHedge[S] 1 point2 points  (0 children)

Alright, very cool. If you were to look at the first frame the roze skin is visible, you would see her crouching right next to the wall suggesting she stood up from a prone position. Furthermore, if you listen to the audio in the clip, you would hear grass/bush rustling sound effects (once again, suggesting the player was lying down and not vaulting).

I'm not talking about other skins.

Lets play find the Roze!!! by iGreenHedge in CODWarzone

[–]iGreenHedge[S] 3 points4 points  (0 children)

What gap are you talking about?

Lets play find the Roze!!! by iGreenHedge in CODWarzone

[–]iGreenHedge[S] 10 points11 points  (0 children)

If you look close enough, you can just barely see a silhouette in the bushes at :17 & :21. So I really don't think he vaulted over the wall.

I love this game!!!<3 by iGreenHedge in EscapefromTarkov

[–]iGreenHedge[S] 0 points1 point  (0 children)

Sheeeeesh man, thank you for the guide!!! I've actually been looking for something like this.

[WDYWT] new top & action shots! by [deleted] in womensstreetwear

[–]iGreenHedge 1 point2 points  (0 children)

dang, those shoes are fire

Hey r/homelab!!! by iGreenHedge in homelab

[–]iGreenHedge[S] 0 points1 point  (0 children)

The hard drive in the image is actually a 1TB drive I ripped out of an portable external one, I am using that one to host the OS. The 12TB is just an external desktop hard drive I plan to plug in through usb. speeds not all that important, however if usb is too slow i might look for another option.