with the Atari PONG (1972) arcade machine game with only sound effects and no music (depending on the definition …):
with full orchestra sound tracks with lush string arrangements copying every Hollywood cliché (you can google those).
with a game like Inside
Here are interesting interview with Martin Stig Andersen, sound designer and composer for Inside and Limbo:
Interactivity and generative music are the two main characteristics differentiating music for film and music for games.
Here is an excellent article on the history of audio and music in video games: How music became an essential ingredient of video games