midi sound on game with wine

Questions about Wine on Linux
Locked
MrVic
Level 2
Level 2
Posts: 12
Joined: Fri May 23, 2014 9:28 am

midi sound on game with wine

Post by MrVic »

Hi :)

I wont to play at Zelda Solarus DX on wine but the midi playliste is not read by wine.

My config is the next :
- Ubuntu 16.04 (64bits)
- Wine 1.9.18

My launcher game (on ~/.local/share/applications/wine/Programs) file is the next :

Code: Select all

[Desktop Entry]
Name=Zelda Mystery of Solarus
Exec=env WINEPREFIX="/home/thierry/.wine" wine C:\\\\Program\\ Files\\ \\(x86\\)\\\\solarus\\\\zs.exe 
Type=Application
StartupNotify=true
Path=/home/thierry/.wine/dosdevices/c:/Program Files (x86)/solarus
Icon=823F_zs.0
I installed timidity and when I play midi sound directly with Linux all is ok. For exemple :

Code: Select all

thierry@thierry-GA-880GM-UD2H:~$ timidity /home/thierry/.wine/drive_c/Program\ Files\ \(x86\)/solarus/Music/Montagnes.mid
Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
Playing /home/thierry/.wine/drive_c/Program Files (x86)/solarus/Music/Montagnes.mid
MIDI file: /home/thierry/.wine/drive_c/Program Files (x86)/solarus/Music/Montagnes.mid
Format: 1  Tracks: 16  Divisions: 120
Sequence: Tal Tal Mtn. Music
Sequence: The Legend of Zelda: Link's Awakening
Copyright: Copyright 1998 by Westley Trevino
Text: Westley Trevino
Text: Listen and enjoy!
Text: Email me any and all comments to [email protected].

Text: Please DO NOT publish this without my consent.

Text: If you have a request for a MIDI videogame music, Email me at the address above.

Text: Please provide a sample of the music you wish to have done.

Track name: Trumpet (Melody)
Track name: Trumpet (Harmony)
Track name: Drums
Track name: Bass
Track name: Dadadada
Track name: This is my first piece
Track name: of music i have
Track name: sequenced!
Track name: send comments
Track name: or complaints to
Track name: [email protected]
Track name: Optimized for-
Track name: Cakewalk Pro Audio
Track name: DO NOT publish this
Track name: without my consent
Playing time: ~87 seconds
Notes cut: 0
Notes lost totally: 0
Whel I launch Timidity I have this infos :

Code: Select all

thierry@thierry-GA-880GM-UD2H:~$ timidity -iA -B2,8 -Os -EFreverb=0
Requested buffer size 2048, fragment size 1024
ALSA pcm 'default' set buffer size 2048, period size 680 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 129:0 129:1 129:2 129:3
Now I want that wine play midi sound with timidity when I play at Zelda Solarus. What is the method ?

Regards
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Re: midi sound on game with wine

Post by dimesio »

MrVic
Level 2
Level 2
Posts: 12
Joined: Fri May 23, 2014 9:28 am

Re: midi sound on game with wine

Post by MrVic »

I try to use midi sound on wine with this command on terminal :

timidity -iA -B2,8 -Os -EFreverb=0

When timidity is launch in terminal I can launch game with midi.

lot of informations here (french) : https://doc.ubuntu-fr.org/tutoriel/wine_et_midi
Locked