disable timidity port by default. timiditys default configuration on Ubuntu gives a high load when used with dosbox in idle mode ( -B2,8 )
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3370
This commit is contained in:
parent
18b11e889a
commit
903a10ef9d
1 changed files with 6 additions and 6 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: midi_alsa.h,v 1.19 2009-04-27 09:17:03 qbix79 Exp $ */
|
||||
/* $Id: midi_alsa.h,v 1.20 2009-04-27 17:33:12 qbix79 Exp $ */
|
||||
|
||||
#define ALSA_PCM_OLD_HW_PARAMS_API
|
||||
#define ALSA_PCM_OLD_SW_PARAMS_API
|
||||
|
@ -128,7 +128,7 @@ public:
|
|||
bool Open(const char * conf) {
|
||||
char var[10];
|
||||
unsigned int caps;
|
||||
bool defaultport = true; //try 17:0 and 128:0 as well. Seems to be default nowadays
|
||||
bool defaultport = true; //try 17:0. Seems to be default nowadays
|
||||
|
||||
// try to use port specified in config file
|
||||
if (conf && conf[0]) {
|
||||
|
@ -172,12 +172,12 @@ public:
|
|||
if (defaultport) { //if port "65:0" (default) try "17:0" as well
|
||||
seq_client = 17; seq_port = 0; //Update reported values
|
||||
if(snd_seq_connect_to(seq_handle,my_port,seq_client,seq_port) < 0) { //Try 128:0 Timidity port as well
|
||||
seq_client = 128; seq_port = 0; //Update reported values
|
||||
if(snd_seq_connect_to(seq_handle,my_port,seq_client,seq_port) < 0) {
|
||||
// seq_client = 128; seq_port = 0; //Update reported values
|
||||
// if(snd_seq_connect_to(seq_handle,my_port,seq_client,seq_port) < 0) {
|
||||
snd_seq_close(seq_handle);
|
||||
LOG_MSG("ALSA:Can't subscribe to MIDI port (65:0) nor (17:0) nor (128:0)");
|
||||
LOG_MSG("ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)");
|
||||
return false;
|
||||
}
|
||||
// }
|
||||
}
|
||||
} else {
|
||||
snd_seq_close(seq_handle);
|
||||
|
|
Loading…
Add table
Reference in a new issue