View Issue Details

IDProjectCategoryView StatusLast Update
0000583OpenMPTlibopenmptpublic2014-08-26 13:11
Reporterwiz Assigned Tomanx  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSNetBSDOS Version7.99.1
Product VersionOpenMPT 1.23.04.00 / libopenmpt 0.2-beta5 (upgrade first) 
Summary0000583: libopenmpt-0.2.4115-beta5: user interface in case of errors needs to be improved
Description

After compiling libopenmpt, I tried using openmpt123 to play some mods I had lying around.
Here's what I saw:

openmpt123 --info POPCORN.OKT

openmpt123 v0.2, libopenmpt 0.2.4115.0-pkg (OpenMPT 1.23.04.00)
Copyright (c) 2013-2014 OpenMPT developers http://openmpt.org/

Filename...: POPCORN.OKT
Size.......: 184KiB
Type.......: okt (Oktalyzer)
Tracker....: Oktalyzer
Title......:
Duration...: 02:58.560
Channels...: 8
Orders.....: 23
Patterns...: 19
Instruments: 0
Samples....: 36

openmpt123 POPCORN.OKT

openmpt123 v0.2, libopenmpt 0.2.4115.0-pkg (OpenMPT 1.23.04.00)
Copyright (c) 2013-2014 OpenMPT developers http://openmpt.org/

openmpt123 --ui POPCORN.OKT

openmpt123 v0.2, libopenmpt 0.2.4115.0-pkg (OpenMPT 1.23.04.00)
Copyright (c) 2013-2014 OpenMPT developers http://openmpt.org/

openmpt123 --render POPCORN.OKT

openmpt123 v0.2, libopenmpt 0.2.4115.0-pkg (OpenMPT 1.23.04.00)
Copyright (c) 2013-2014 OpenMPT developers http://openmpt.org/

openmpt123 v0.2, libopenmpt 0.2.4115.0-pkg (OpenMPT 1.23.04.00)
Copyright (c) 2013-2014 OpenMPT developers http://openmpt.org/

Usage: openmpt123 [options] [--] file1 [file2] ...

-h, --help Show help
--help-keyboard Show keyboard hotkeys in ui mode
-q, --quiet Suppress non-error screen output
-v, --verbose Show more screen output
--version Show version information and exit
--short-version Show version number and nothing else
--long-version Show long version information and exit
--credits Show elaborate contributors list
--license Show license

 --info                 Display information about each file
 --ui                   Interactively play each file
 --batch                Play each file
 --render               Render each file to PCM data

I know now that --render didn't work because I had compiled openmpt123 without flac, libsndfile and wavpack support. There was no useful error message though.
I still don't know why --ui and just giving the OKT file didn't work.

I thought that the OKT file was perhaps not supported, but saw the same behaviour with a MOD file; and after I compiled with libsndfile and flac support, I could use --render to create wav and flac files.

Please add/improve the error messages.

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

Activities

manx

manx

2014-08-26 12:29

administrator   ~0001768

Sadly, as there are no error messages currently, I can only guess why playback did not work: Did you actually compile with SDL or PortAudio, otherwise audio playback is not supported.
Perhaps the Makefile failed to catch those up on NetBSD?

manx

manx

2014-08-26 12:33

administrator   ~0001769

Error messages got added in r4216 now.

wiz

wiz

2014-08-26 12:57

reporter   ~0001770

About SDL:
It seems that in 4115, SDL was default-off, and I didn't turn it on.
In 4216, it's default-on, so it works now. So this part is fixed.

About error messages:
The one for missing render support is fine:
error: file format handler 'wav' not found
error: file format handler 'flac' not found

The one for missing audio support is weird:
error: audio driver '' not found

Btw, I've verified all your other fixes, they work fine for me. I didn't want to reopen the bug reports just for confirmation, so I add this here :)
Thank you.

manx

manx

2014-08-26 13:11

administrator   ~0001771

As of r4217, it now displays "error: openmpt123 is compiled without any audio driver".
Yes, SDL recently got changed to default-on.
Thanks for your useful bugreports!

Issue History

Date Modified Username Field Change
2014-08-26 10:38 wiz New Issue
2014-08-26 12:26 manx Assigned To => manx
2014-08-26 12:26 manx Status new => acknowledged
2014-08-26 12:29 manx Note Added: 0001768
2014-08-26 12:29 manx Status acknowledged => feedback
2014-08-26 12:33 manx Note Added: 0001769
2014-08-26 12:57 wiz Note Added: 0001770
2014-08-26 12:57 wiz Status feedback => assigned
2014-08-26 13:11 manx Note Added: 0001771
2014-08-26 13:11 manx Status assigned => resolved
2014-08-26 13:11 manx Resolution open => fixed