Baiscly it has nothing to do with photons. A Computer has different components to run specific tasks. Very plain basic these are the main ones -
CPU = Central Processing Unit
RAM = Random Access Memory
GPU = Graphics Processing Unit (Wich has its own set of RAM, called Video-RAM or VRAM)
SPU = Sound Processing Unit (or just Soundcard or Soundchip)
NIC = Network Interface Card
Also needed is a permanent data storage, but that doesnt matter for this Example.
The CPU runs and coordinates most of the tasks a PC can do. Therefore it has the RAM as working memory. Dont get confused with the random here, it means that it can be accessed at any random point in time at any data location. When you run a multimedia task, lets say streaming a video. It uses the NIC to retrive the data from your internet connection (probably a router) and then seperates the data and sends it to the different components to do their job. Usually multimedia data is compressed, so it needs to be decompressed before it can be played to you. This is done live, but data size for audio is much smaller then it is for video and it gets processed differently. The video signal gets sent to the GPU as it is, the audio gets decompressed by the CPU and then sent to the SPU to process it into a analog signal. The GPU does the video decompression all by itself, but it needs to be coordinated from the CPU.
Now when your PC freezes the GPU cannot render any new video because the CPU isnt telling it what to do anymore. The SPU is much more primitive then a GPU and basicly just processes any data it gets fed, when it gets fed. While a GPU needs to be told what to do from the CPU constantly. So when the application (partially) "de-freezes" the CPU starts decompressing the audio again and feeds it to the SPU. That takes minimal computing power to do and as the SPU just works when it gets fed, cracking audio will occur when it doesnt get a constant data stream from the CPU. The GPU on the other side needs a constant data stream for decompression and rendering of the image or it will either show a black screen or the last rendered image until it gets more data and some orders from the CPU to work with.
Now this example was about video streaming and it is very simplified, but it applies to any freeze where this behavior occurs. The CPU is unable to feed constant data to both the GPU and the SPU, but because the SPU is alot less complex than a GPU it just works with that chopped off data stream while the GPU is unable to do so. Even when working on your desktop...
There can be multiple reasons for it, common ones are
Trying to run new power-hungry software on very old hardware, thus overloading your components.
Faulty drivers
Bugs (Errors in the software)
Running many power-hungry tasks at once, again overloading your components
Having another program running at very high CPU priority
Viruses
and probably more, but i cant think of them now...
Peace
TK