I’ve recently watched Oppenheimer on 35mm and 2001: A Space Odyssey on 70mm film and wondered how the audio works when it is printed on the film.
Does the film go through another machine before going through the projector?
There’s been multiple related methods, and now newer digital methods, but the short answer is for analog sound the waveforms were printed on a strip alongside the images. A light shining through that hits a photo sensitive diode, the intensity of the light will vary with the waveform. The diode changes the light signal back into an electronic signal, that varies the same as the audio waveform printed on the film, which then goes to the speakers and is turned into sound.
https://m.youtube.com/watch?v=tg--L9TKL0I
That’s a great video if you want to go on a deep dive.
Here’s a closeup picture of analog sound on a film strip which may help you visualize too.