⚠ Cookies ⚠

By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.

Projects

AGS Engine PortsLinuxMIDI music not played
infraredAttempting to play the Chzo Mythos series (http://icculus.org/~hamish/chzo/) with AGS compiled from source (downloaded on Sep 12). When starting a game, MIDI music is not played (it is supplied in a Music folder in the same location as the game exe), and the terminal reports:

Checking sound inits.
AGS: Initialize sound drivers
AGS: Trying digital driver ID: 'Auto' (0xffffffff), MIDI driver ID: 'Auto' (0xffffffff)
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open) open /dev/snd/midiC0D0 failed: No such file or directory

Unable to initialize your audio hardware.
[Problem: /dev/sequencer: No such file or directory]
AGS: Installed digital driver ID: 'ALSA' (0x414c5341), MIDI driver ID: 'None' (0x0)

To try and get music working, I downloaded a patchset from http://www.eglebbk.dds.nl/program/download/digmid.dat and put it into the same directory as the game executable as patches.dat. This had no effect.
Afterwards, with timidity server running (ALSA port 128), I tried
sudo modprobe snd_virmidi
cd /dev/snd/
sudo ln -s midiC2D0 midiC0D0
aconnect 24 128

At this point AGS stopped complaining about not finding midiC0D0 or /dev/sequencer, but still did not play any music. Using:
amidi -p hw:VirMIDI,0 -d
shows that the port which was linked to does not receive anything, so AGS is apparently not even trying to play MIDI.
Full output from terminal (with a symbolic link to midiC2D0):

$ ../ags/ags-v.3.3.4.1/Engine/ags --windowed 5days.exe
AGS: Adventure Game Studio v3.3 Interpreter
Copyright (c) 1999-2011 Chris Jones and 2011-2015 others
ACI version 3.3.4.1

AGS: *** ENGINE STARTUP ***
AGS: Reading config file
AGS: Initializing allegro
AGS: Setting up window
AGS: Initializing game data
AGS: Game data file: /home/zzz/games/chzomythos/5Days/5days.exe

AGS: Initializing TTF renderer
AGS: Initializing mouse
AGS: Checking memory
ci_find_file: cannot change to directory: Compiled
AGS: Initializing keyboard
AGS: Install timer
Checking sound inits.
AGS: Initialize sound drivers
AGS: Trying digital driver ID: 'Auto' (0xffffffff), MIDI driver ID: 'Auto' (0xffffffff)
AGS: Installed digital driver ID: 'ALSA' (0x414c5341), MIDI driver ID: 'AMID' (0x414d4944)
AGS: Install exit handler
AGS: Initialize path finder library
AGS: Load game data
AGS: Game data version: 27
AGS: Requested engine version: 2.6.2.0
AGS: Game GUI version: 105
AGS: 5 Days A Stranger
AGS: Checking for disk space
AGS: Initializing screen settings
AGS: Device display resolution: 1920 x 1080
AGS: Game native resolution: 320 x 200 (16 bit) letterbox-by-design
AGS: Game settings: letterbox acceptable, side borders acceptable
AGS: Init gfx driver
AGS: Created graphics driver: Allegro/DX5
AGS: Supported gfx modes (16-bit):
        640x480;800x600;800x600;1024x768;1024x768;1152x864;1280x720;1280x800;
        1280x1024;1366x768;1440x900;1680x1050;1920x1080;
AGS: Supported gfx modes (15-bit):
        640x480;800x600;800x600;1024x768;1024x768;1152x864;1280x720;1280x800;
        1280x1024;1366x768;1440x900;1680x1050;1920x1080;
AGS: Initializing gfx filters
AGS: Requested gfx filter:
AGS: Could not find graphics filter
AGS: Applying graphics filter: StdScale4
AGS: Chosen gfx resolution: 1280 x 960 (16 bit), game frame: 320 x 240
AGS: Switching to graphics mode
AGS: Attempt to switch gfx mode to 1280 x 960 (16-bit) windowed, game frame 320 x 240, gfx filter: StdScale4
AGS: Succeeded. Using gfx mode 1280 x 960 (16-bit) windowed, game frame 320 x 240, gfx filter: StdScale4
AGS: Preparing graphics mode screen
AGS: Initializing colour conversion
AGS: Check for preload image
AGS: Initialize sprites
AGS: Set up screen
AGS: Initialize game settings
AGS: Prepare to start game
AGS: Audio is processed on the main thread
AGS: Checking replay status
AGS: Engine initialization complete
AGS: Starting game
AGS: Loading room 1
AGS: Room change requested to room 2
AGS: Unloading room 1
AGS: Loading room 2
AGS: Room change requested to room 99
AGS: Unloading room 2
AGS: Loading room 99
AGS: Room change requested to room 3
AGS: Unloading room 99
AGS: Loading room 3
AGS: ***** ENGINE HAS SHUTDOWN


For testing, music is supposed to play in 5 Days a Stranger during the intro cutscene and after exiting to the corridor at the beginning of the game.
infraredSame result with 3.3.4.2
infraredWith the link to the virtual MIDI device, shutting down AGS (both 3.3.4.2 and latest dev-3.4.0) and using aseqdump shows signs of life. At the moment of shutdown this output is produced:
$ aseqdump -p 24
Waiting for data. Press Ctrl+C to end.
Source  Event                  Ch  Data
24:0  Control change          0, controller 123, value 0
© Adventure Game Studio 2024. Page design by loominous and Darth Mandarb; coding by AGA.
Page generated on 06 May 2024 at 14:30:01