Bug Tracker – Bug 1181

music is not playing

Last modified: 2016-12-15 20:33:46 CST
Bug 1181 - (ARRAY(0x5223d90)) music is not playing
(ARRAY(0x5223d90))
music is not playing
Status: NEW
Product: Odamex
Classification: Unclassified
Component: Client
0.7.x
x86 (Windows, Linux, etc) Linux
: P1 normal
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2016-09-16 17:35:43 CDT by Absolute Zero
Modified: 2016-12-15 20:33 CST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Absolute Zero 2016-09-16 17:35:43 CDT
odamex does not play midis
Comment 1 HeX_Vulture 2016-09-16 18:18:33 CDT
It does on Windows 10 for me. Both trunk and SDL2.

However, I did notice if music is turned off when I start Odamex and set the device to portmidi or SDL_Mixer, I have to switch to a new level for music to start playing.
Comment 2 Russell Rice 2016-09-16 19:09:14 CDT
(In reply to HeX_Vulture from comment #1)
> It does on Windows 10 for me. Both trunk and SDL2.
> 
> However, I did notice if music is turned off when I start Odamex and set the
> device to portmidi or SDL_Mixer, I have to switch to a new level for music
> to start playing.

Is this for midis only?
Comment 3 HeX_Vulture 2016-09-16 19:48:25 CDT
(In reply to Russell Rice from comment #2)
> (In reply to HeX_Vulture from comment #1)
> > It does on Windows 10 for me. Both trunk and SDL2.
> > 
> > However, I did notice if music is turned off when I start Odamex and set the
> > device to portmidi or SDL_Mixer, I have to switch to a new level for music
> > to start playing.
> 
> Is this for midis only?

Actually, I was mistaken. This appears to only apply to the TITLEPIC music. Start odamex with NO MUSIC set and while the doom 2 splash logo is going turn music on. The music will not turn on but when the demo for map11 loads the music will load.
Comment 4 Absolute Zero 2016-09-16 23:27:11 CDT
why do i have to login to see tags? guess that i have to include one and another information here:

latest odamex sdl20 rev 5473

another one common to both sdl1 and sdl2 branches is that portmidi does not play midis, with only the sdl mixer backend being functional on sdl1 atm. im going to assume that is user error on my part because of that though.

OS is Debian Jessie 8.5 AMD64, both clients were compiled here.
Comment 5 Russell Rice 2016-09-16 23:49:03 CDT
(In reply to HeX_Vulture from comment #3)
> (In reply to Russell Rice from comment #2)
> > (In reply to HeX_Vulture from comment #1)
> > > It does on Windows 10 for me. Both trunk and SDL2.
> > > 
> > > However, I did notice if music is turned off when I start Odamex and set the
> > > device to portmidi or SDL_Mixer, I have to switch to a new level for music
> > > to start playing.
> > 
> > Is this for midis only?
> 
> Actually, I was mistaken. This appears to only apply to the TITLEPIC music.
> Start odamex with NO MUSIC set and while the doom 2 splash logo is going
> turn music on. The music will not turn on but when the demo for map11 loads
> the music will load.

Tested and confirmed that it happens on my windows 7 box too
Comment 6 HeX_Vulture 2016-09-17 00:24:12 CDT
(In reply to Russell Rice from comment #5)
> (In reply to HeX_Vulture from comment #3)
> > (In reply to Russell Rice from comment #2)
> > > (In reply to HeX_Vulture from comment #1)
> > > > It does on Windows 10 for me. Both trunk and SDL2.
> > > > 
> > > > However, I did notice if music is turned off when I start Odamex and set the
> > > > device to portmidi or SDL_Mixer, I have to switch to a new level for music
> > > > to start playing.
> > > 
> > > Is this for midis only?
> > 
> > Actually, I was mistaken. This appears to only apply to the TITLEPIC music.
> > Start odamex with NO MUSIC set and while the doom 2 splash logo is going
> > turn music on. The music will not turn on but when the demo for map11 loads
> > the music will load.
> 
> Tested and confirmed that it happens on my windows 7 box too

I split this bug to bug 1182 to avoid conflict with Zero's bug report
Comment 7 Mike Wood 2016-09-17 03:08:15 CDT
(In reply to Absolute Zero from comment #4)
> why do i have to login to see tags? guess that i have to include one and
> another information here:
> 
> latest odamex sdl20 rev 5473
> 
> another one common to both sdl1 and sdl2 branches is that portmidi does not
> play midis, with only the sdl mixer backend being functional on sdl1 atm. im
> going to assume that is user error on my part because of that though.
> 
> OS is Debian Jessie 8.5 AMD64, both clients were compiled here.

Have you tried configuring the device that portmidi uses? Try running pmdefaults and test the different output devices. If none of them works you may need to install a software synthesizer like fluidsynth or qsynth (a qt ui for fluidsynth) and that should show up in portmidi as an option. Once you find a device that works you should check the device enumeration in the odamex console (~) when you enable portmidi. You should see the device that worked in pmdefaults in that list. Set snd_musicdevice to that device. For me my sound card has onboard midi support and I have soundfonts loaded on my card. I set my snd_musicdevice option to "Emu10k1 Port 0" and it works great.

It's definitely more complicated than using SDL_Mixer but in the right circumstances it can be rewarding. I much prefer using portmidi to utilize my soundcards midi support in Linux. With Portmidi you can pretty much hook Odamex into any midi device you want.
Comment 8 Mike Wood 2016-09-17 13:13:58 CDT
Try SDL_Mixer with r5477.
Comment 9 Absolute Zero 2016-09-20 07:15:04 CDT
(In reply to Mike Wood from comment #8)
> Try SDL_Mixer with r5477.

music works with sdl mixer, but it does not come back once it is turned off and on again. could not test portmidi yet.
Comment 10 Ralph Vickers 2016-11-11 22:39:09 CST
Removed sdl20 because it doesn't seem to be specific to sdl2 builds as per comments
Comment 11 Absolute Zero 2016-12-15 20:33:46 CST
Main repository is now using SDL2, so it makes no sense to keep this bug around. Music works.