@john_carter No, it's is when I enable the VMS video driver and then the audio fails to work under HDMI. I haven't seen any other reports of this.
It's a common issue, since the HDMI audio is handled by the KMS driver automatically. It's been widely reported - in fact when the KMS driver for Pi4 was announced, it was one of the changes included (see this forum post). Here in the foruns - see this topic.
All have the same problem on soundbar systems (and likely also on surround receivers).
I just don't get why these particular games generate hdmi sound that gets wrecked by so many setups, one would think there was a way to fix this at the source - the generation of sound on the pi/other device.
Just my 0.02 here, the world of modern TVs and home theater/surround sound devices is needlessly complicated for these simple old tasks we are trying to recreate here with simple digital signals (ironically that are emulations of old analog signals).
What I would try to see if it helps:
Many TVs have a "game mode" that is intended to reduce or eliminate "signal processing" to enable a more pure, delay free signal and timings. Many surround sound receivers have something similar, although it is usually called Pure Audio or Direct Sound mode. You might see if your receiver has this option and try it to see if it eliminates audio hitches.
For what it's worth, I have an Onkyo receiver at home and even with modern consoles I have noticed that something in the HDMI convergence where all video inputs are routed to a single HDMI output to the TV will cause a 'gap' in sounds sometimes. (After a dead silence of any kind, the first sound made is either dropped entirely or gets cut so I only hear part of it before normal audio resumes. Sort of like the audio stream has to buffer up before it becomes stable again.)
EDIT: Hit the submit button too soon and wasn't done typing.
@MeltedPineapple hello! I suspect you're having an eXoDOS version of the game. @mitu is correct in saying there are parameters to help you configure your setup. To have the dosbox.conf (or any conf file or commands) you did use to launch the game would help a lot! Off top of my head here are some parameters you can use to run the game:
c:\> monkey.exe r <- enable Roland MT-32 (requires specific files and setup)
c:\> monkey.exe i <- enable internal speaker
c:\> monkey.exe a <- enable Soundblaster and Adlib (most compatible)
c:\> monkey.exe v <- force VGA
You can use a combination as well:
c:\> monkey.exe a v <- enable Soundblaster and VGA
Search for Monkey Island reference card for DOS on the Web to get more keyboard shortcuts and interesting info. The most interesting shortcut for you would be Ctrl + S which turns on / off the sound (only working for Internal Speaker though).
Note: my recommendation would be for you to give a try to ScummVM for anything Lucasfilm games/LucasArts related. Very easy to use and you'll get the best experience possible. Check Retropie docs here for installation and ScummVM wiki to properly configure the games.
I have tried to use ffmpeg to record alsa sound but since there is no capture device . It did not work .
Can you give more details about this
You can try looking into streaming the sound from ALSA through ffmpeg and connecting something like vlc on the PC to stream the audio.
My method in previous post does not guarantee sync in audio and video recording at all . So it is not an ideal solution.
Streaming audio will be a better solution as I will record audio and video on PC together.