Author Topic: [RESOLVED] Loop Playback Toggle for 'Play/Stop Audio File' Function  (Read 399 times)

total_annihilation00

  • Power Member
  • ****
  • Posts: 152
  • Tech Savant\ Envisioneering
    • View Profile
A checkbox setting to enable or disable looping of audio files during playback via the built-in Audio Previewer in MC. Also support for ".MID" files would be an added bonus !!
« Last Edit: December 18, 2025, 03:54:24 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~


Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4820
    • View Profile
    • Multi Commander
Re: Loop Playback Toggle for 'Play/Stop Audio File' Function
« Reply #1 on: December 15, 2025, 13:25:41 »
I see If I can add looping..

I can add so .mid files are sent to the MediaEngine. But if something is actually playing or not is not up to MC. Playing audio is handled by Windows. So it depends on what codecs is installed in Windows.

total_annihilation00

  • Power Member
  • ****
  • Posts: 152
  • Tech Savant\ Envisioneering
    • View Profile
Re: Loop Playback Toggle for 'Play/Stop Audio File' Function
« Reply #2 on: December 15, 2025, 15:10:46 »
I see If I can add looping..

I can add so .mid files are sent to the MediaEngine. But if something is actually playing or not is not up to MC. Playing audio is handled by Windows. So it depends on what codecs is installed in Windows.

Alright, thank you —that'd be excellent ! Ideally, Looping should be configured via a checkbox setting in either Core Settings or Explorer Panel Settings (whichever, I get confused.) Also, .MID should be played —I'am not 100% certain though. :)

P.S: You can test /w this .MID (MIDI) audio file (they are all generally very tiny file-sized): BSQ.MID (36 KB)
« Last Edit: December 15, 2025, 19:48:10 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~


Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4820
    • View Profile
    • Multi Commander
Re: Loop Playback Toggle for 'Play/Stop Audio File' Function
« Reply #3 on: December 16, 2025, 16:51:30 »
No that .mid did not play on my Windows 11. Look like it is not supported by default. But maybe if some 3rd party codec is installed.

total_annihilation00

  • Power Member
  • ****
  • Posts: 152
  • Tech Savant\ Envisioneering
    • View Profile
Re: Loop Playback Toggle for 'Play/Stop Audio File' Function
« Reply #4 on: December 16, 2025, 17:00:54 »
No that .mid did not play on my Windows 11. Look like it is not supported by default. But maybe if some 3rd party codec is installed.

Oh I see, it plays on "Media Player Classic: Home CInema" app (MPC: HC, part of K-Lite Codec Pack (Standard Edition).) I have Windows 10 by the way. It's alright then… Would still be nice to loop supported file formats. :D
« Last Edit: December 16, 2025, 17:06:36 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~


Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4820
    • View Profile
    • Multi Commander
Re: Loop Playback Toggle for 'Play/Stop Audio File' Function
« Reply #5 on: December 16, 2025, 17:05:49 »
Yes the Windows MediaEngine (that MC is using) is not the full Media Player. it is a core part in Windows for playing actual audio (.MID are not audio files.  but instruction on how to generate sound.)

So Sorry. Mid files will probably not work

total_annihilation00

  • Power Member
  • ****
  • Posts: 152
  • Tech Savant\ Envisioneering
    • View Profile
Re: Loop Playback Toggle for 'Play/Stop Audio File' Function
« Reply #6 on: December 16, 2025, 17:11:49 »
Yes the Windows MediaEngine (that MC is using) is not the full Media Player. it is a core part in Windows for playing actual audio (.MID are not audio files.  but instruction on how to generate sound.)

So Sorry. Mid files will probably not work

That's a pity, I actually thought it would play though. ;D I could still loop my MP3 songs…
« Last Edit: December 16, 2025, 17:14:57 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~


total_annihilation00

  • Power Member
  • ****
  • Posts: 152
  • Tech Savant\ Envisioneering
    • View Profile
Re: [RESOLVED] Loop Playback Toggle for 'Play/Stop Audio File' Function
« Reply #7 on: December 18, 2025, 04:08:35 »
It's working brilliantly, thank you so much Mathias !! 8) I like how it plays the audio from video files as well (MP4's), I'am currently using this feature extensively !! 🙏 Happy holidays to everyone & God bless ! 🎄🎅
« Last Edit: December 18, 2025, 04:15:54 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~


total_annihilation00

  • Power Member
  • ****
  • Posts: 152
  • Tech Savant\ Envisioneering
    • View Profile
Re: [RESOLVED] Loop Playback Toggle for 'Play/Stop Audio File' Function
« Reply #8 on: December 22, 2025, 15:29:09 »
Just curious: would it be possible for you to serialize the Loop setting so it's persistent across launches ? I hate having to right-click & toggle it On everytime. ??? Please consider it, because that is how I intended it to function —that's why I said "make it a Checkbox option in Core Settings or Explorer Panel" —I'am fine /w it as it is (in Popup Menu), but I'd just like it to remember the setting (should stick for the next launch automatically) ! Thank you ! :D

[Workaround]: I was able to emulate setting of the Loop to PlayAudio via a User-Defined Command ("AR") MultiScript set on AutoRun=AR CommandLine parameter at Startup —but I would still like this implemented (the persistent Loop setting) in a future release please::

Code: [Select]
// Set Left Tab Group to 100% width
MC.RunCmd ID="Core.1205";

// Emulate enabling Loop mode by playing a dummy file with LOOP=1
MC.PlayAudio FILE=" " DURATION=0 LOOP=1;

// Immediately stop playback to leave Loop enabled
MC.StopAudio;
« Last Edit: December 22, 2025, 23:41:18 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~