Detect playback done when using VLC media player CLI audio playback

  command-line-interface, vlc, windows

I’m using the VLC player (on Win10) to play mp3 audio files through the (cmd) command line as

vlc.exe --intf dummy --rate 1.25 audio.mp3

The command (prompt) immediately returns as playback starts, but I would like it to wait and not return until playback is done. Is there a CLI flag for this or some other way to detect when playback is done?

Source: Windows Questions