View Issue Details

IDProjectCategoryView StatusLast Update
0001751OpenMPTFeature Requestpublic2024-04-07 21:27
Reporterhelix751 Assigned ToSaga Musix  
PrioritynormalSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Target VersionOpenMPT 1.32 / libopenmpt 0.8 (goals) 
Summary0001751: Command line option for Playback upon opening file
Description

Command line options don't offer a /play or similar option to open and starting playback (hence using OpenMPT for playback).

This is useful when setting OpenMPT as external viewer for module files in orthodox file managers like Total Commander or Far Manager.

Also, a /windowmode=normal|minimized|maximized option would complement the /play option.

Steps To Reproduce

N/A

Additional Information

None

TagsNo tags attached.
Has the bug occurred in previous versions?Not a bug
Tested code revision (in case you know it)

Activities

Kaens

Kaens

2024-03-01 16:57

reporter   ~0005848

Last edited: 2024-03-01 16:57

For the time being, you could make use of openmpt123 included in https://lib.openmpt.org/libopenmpt/, which seems more suited for the external player's role. Granted, it doesn't support some features, but it's much lighter and is still very powerful.

Saga Musix

Saga Musix

2024-04-07 20:21

administrator   ~0005920

Last edited: 2024-04-07 21:27

As of r20522, there is now a /play command line switch. Test builds can be obtained from https://builds.openmpt.org/builds/

If multiple modules are passed, the last opened module will be played. This also works in conjunction with the /shared switch to reuse an existing OpenMPT instance.

Regarding the /windowmode flag, do you have any example of other software that supports this kind of switch? If Total Commander cannot passes the correct STARTUPINFO flags to OpenMPT, maybe you could detour the execution through the built-in Windows command start, which has /min and /max parameters, e.g. start /min path\to\openmpt.exe /play ...

Issue History

Date Modified Username Field Change
2024-03-01 12:23 helix751 New Issue
2024-03-01 16:57 Kaens Note Added: 0005848
2024-03-01 16:57 Kaens Note Edited: 0005848
2024-04-07 20:14 Saga Musix Assigned To => Saga Musix
2024-04-07 20:14 Saga Musix Status new => assigned
2024-04-07 20:21 Saga Musix Status assigned => feedback
2024-04-07 20:21 Saga Musix Note Added: 0005920
2024-04-07 20:21 Saga Musix Target Version => OpenMPT 1.32 / libopenmpt 0.8 (goals)
2024-04-07 21:27 Saga Musix Note Edited: 0005920