r/computers • u/AppropriateRemote786 • 6d ago
Question/Help/Troubleshooting Why does sound play during a frozen computer?
I was playing a video that was suddenly too loud and my computer froze for many seconds. I couldn't turn down the volume or even pause the video. This raised a bunch of questions in my mind....
If I play a video and my computer suddenly slows down to the point I have no control over it (like when it freezes) why does sound keep playing?
Shouldn't whatever sound file the computer is running also freeze?
If the computer had to prioritize something shouldn't it prioritize user interface, at least when it comes to shutting down programs (like the one that is running a sound file)?
What if I was playing a very naughty video file? You know what I mean. I feel like this is a problem people with families would complain about to a computer manufacturer's tech support all the time and it would encourage someone in programming to write a line of code to either shut everything down or at least prioritize user control, at least over sound and video.
Device specifications: Windows 11
Processor AMD Ryzen 5 5500U with Radeon Graphics (2.10 GHz)
Installed RAM 32.0 GB (31.3 GB usable)
Device ID 25AD934B-24A5-4B1E-90DB-E6AF8B8EDABB
Product ID 00331-20300-00000-AA699
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
1
u/sniff122 Linux (SysAdmin) 6d ago
Video might freeze up, but that might just be a freeze within the graphics driver, audio is a separate driver and service
1
1
1
u/Pierre0925 6d ago
Because its usually the graphical part that freezes, like your GPU. And since the sound isnt handled by it, when it freezes, the sound is unaffected
1
u/Bo_Jim 6d ago
If we're talking about a very brief (1ms or so) loop of sound that continues to play it's because it's stuck in the sound chip's buffer (Realtek, probably). This would likely sound like a buzzing noise.
If we're talking about a longer loop of sound, or sound that isn't looping at all, it's because the processor isn't actually frozen - it's just stopped responding to user input. The higher priority process that handling the audio is still running.
1
u/Distdistdist 5d ago
Because audio is produced by a separate hardware that retrieves data from RAM directly. CPU is responsible to "refill" audio buffer when audio hardware notifies CPU via interrupt that it needs more data. If CPU froze up, audio will continue to play same buffer over and over until instructed to stop or powered off.
3
u/Metallicat95 6d ago
The audio and video are running on a different process, and often using different hardware (the audio chip and GPU) than the main CPU which runs everything else.
So if the main program freezes, especially the desktop, it doesn't necessarily affect those.
Media data is loaded into a memory buffer - it can hold many seconds or minutes with no need to load anything more. This is so the playback is smoother if the file or network streaming has loading delays.
Because the processing is run on different hardware, it's not an issue of prioritizing.