Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snd_musiccmd option ignored (linux) #1650

Open
jali-peno opened this issue Dec 10, 2023 · 8 comments
Open

snd_musiccmd option ignored (linux) #1650

jali-peno opened this issue Dec 10, 2023 · 8 comments

Comments

@jali-peno
Copy link

jali-peno commented Dec 10, 2023

Background

Version of Chocolate Doom: 3.0.0 (installed via luxtorpeda, same result noticed in the flatpak build)

Operating System and version: Linux (Nobara Linux 38)

Game: The Ultimate Doom

Any loaded WADs and mods (please include full command line): launched from luxtorpeda, vanilla doom

Bug description:

setting the option snd_musiccmd in the settings to use my physical midi synth (variable set to aplaymidi -p 20:0) has zero effect and the game uses the music playback option specified in settings

Observed behavior: game continues to play back the music using the option chosen in the setup application

Expected behavior: game will use aplaymidi instead

image

image

@jali-peno
Copy link
Author

if its at all relevant, my synthesiser is a roland sc88pro running through a roland um one midi to usb interface. the synthesiser is currently set to general midi mode

using aplaymidi with the same options shown in settings plays all of my midis just fine

@jali-peno
Copy link
Author

config contents, can confirm this file is being loaded since toggling fullscreen from here and relaunching has the expected effect. file is stored in ~/.local/share/chocolate-doom

video_driver                  ""
window_position               ""
fullscreen                    1
video_display                 0
aspect_ratio_correct          1
integer_scaling               0
vga_porch_flash               0
window_width                  948
window_height                 711
fullscreen_width              0
fullscreen_height             0
force_software_renderer       0
max_scaling_buffer_pixels     16000000
startup_delay                 1000
show_endoom                   0
show_diskicon                 1
png_screenshots               1
snd_samplerate                44100
snd_cachesize                 67108864
snd_maxslicetime_ms           28
snd_pitchshift                1
snd_musiccmd                  "aplaymidi -p 20:0"
snd_dmxoption                 ""
opl_io_port                   0x388
use_libsamplerate             0
libsamplerate_scale           0.650000
autoload_path                 "/home/jalipeno/.local/share/chocolate-doom/autoload"
music_pack_path               "/home/jalipeno/.local/share/chocolate-doom/music-packs"
fsynth_chorus_active          1
fsynth_chorus_depth           5.000000
fsynth_chorus_level           0.350000
fsynth_chorus_nr              3
fsynth_chorus_speed           0.300000
fsynth_midibankselect         "gs"
fsynth_polyphony              256
fsynth_reverb_active          1
fsynth_reverb_damp            0.400000
fsynth_reverb_level           0.150000
fsynth_reverb_roomsize        0.600000
fsynth_reverb_width           4.000000
fsynth_sf_path                ""
timidity_cfg_path             ""
gus_patch_path                ""
gus_ram_kb                    1024
vanilla_savegame_limit        1
vanilla_demo_limit            1
vanilla_keyboard_mapping      1
player_name                   "jalipeno"
grabmouse                     0
novert                        1
mouse_acceleration            2.000000
mouse_threshold               10
mouseb_strafeleft             -1
mouseb_straferight            -1
mouseb_turnleft               -1
mouseb_turnright              -1
mouseb_use                    -1
mouseb_backward               -1
mouseb_prevweapon             3
mouseb_nextweapon             4
dclick_use                    0
joystick_guid                 ""
joystick_index                -1
joystick_x_axis               0
joystick_x_invert             0
joystick_y_axis               1
joystick_y_invert             0
joystick_strafe_axis          -1
joystick_strafe_invert        0
joystick_look_axis            -1
joystick_look_invert          0
joystick_physical_button0     0
joystick_physical_button1     1
joystick_physical_button2     2
joystick_physical_button3     3
joystick_physical_button4     4
joystick_physical_button5     5
joystick_physical_button6     6
joystick_physical_button7     7
joystick_physical_button8     8
joystick_physical_button9     9
joystick_physical_button10    10
joyb_strafeleft               -1
joyb_straferight              -1
joyb_menu_activate            -1
joyb_toggle_automap           -1
joyb_prevweapon               -1
joyb_nextweapon               -1
key_pause                     69
key_menu_activate             1
key_menu_up                   72
key_menu_down                 80
key_menu_left                 75
key_menu_right                77
key_menu_back                 14
key_menu_forward              28
key_menu_confirm              21
key_menu_abort                49
key_menu_help                 59
key_menu_save                 60
key_menu_load                 61
key_menu_volume               62
key_menu_detail               63
key_menu_qsave                64
key_menu_endgame              65
key_menu_messages             66
key_menu_qload                67
key_menu_quit                 68
key_menu_gamma                87
key_spy                       88
key_menu_incscreen            13
key_menu_decscreen            12
key_menu_screenshot           0
key_map_toggle                15
key_map_north                 72
key_map_south                 80
key_map_east                  77
key_map_west                  75
key_map_zoomin                13
key_map_zoomout               12
key_map_maxzoom               11
key_map_follow                33
key_map_grid                  34
key_map_mark                  50
key_map_clearmark             46
key_weapon1                   2
key_weapon2                   3
key_weapon3                   4
key_weapon4                   5
key_weapon5                   6
key_weapon6                   7
key_weapon7                   8
key_weapon8                   9
key_prevweapon                0
key_nextweapon                0
key_message_refresh           28
key_demo_quit                 16
key_multi_msg                 20
key_multi_msgplayer1          34
key_multi_msgplayer2          23
key_multi_msgplayer3          48
key_multi_msgplayer4          19

@turol
Copy link
Member

turol commented Jan 23, 2024

There have been a lot of changes to music support since the 3.0 release. Can you test latest git?

@jali-peno
Copy link
Author

i can do that sure! just give me a bit to try to find out how to compile it, dont do this often

@jali-peno
Copy link
Author

sorry to take so long. i can confirmthat the latest version 3.0.1 still has issues

@turol
Copy link
Member

turol commented Jan 29, 2024

3.0.1 is the latest release but there have been a LOT of changes in the git tree. Either clone it with git or wait for 3.1.0.

@mikeday0
Copy link
Contributor

mikeday0 commented Jan 30, 2024

This has to be an SDL2_mixer problem. If you run from the command line, do you see any error messages?

@mikeday0
Copy link
Contributor

What do you have your music device set to? On Linux you should select Native MIDI, GUS or Timidity in order for snd_musiccmd to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants