Mercurial > hg > xmms-sid
comparison src/xmms-sid.cc @ 45:84214a409d19
Minor fixes
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 20 Jun 2003 01:36:05 +0000 |
parents | 90cd38b28a72 |
children | 3518ca5c8b0f |
comparison
equal
deleted
inserted
replaced
44:90cd38b28a72 | 45:84214a409d19 |
---|---|
415 return; | 415 return; |
416 } | 416 } |
417 | 417 |
418 | 418 |
419 /* Configure rest of the emulation */ | 419 /* Configure rest of the emulation */ |
420 xs_emuConf.precision = audio.precision; | 420 xs_emuConf.precision = xs_cfg.fmtBitsPerSample; |
421 xs_emuConf.frequency = xs_cfg.fmtFrequency; | 421 xs_emuConf.frequency = xs_cfg.fmtFrequency; |
422 xs_emuConf.clockForced = xs_cfg.forceSpeed; | 422 xs_emuConf.clockForced = xs_cfg.forceSpeed; |
423 xs_emuConf.optimisation = xs_cfg.optimiseLevel; | 423 xs_emuConf.optimisation = xs_cfg.optimiseLevel; |
424 xs_emuConf.sidModel = (xs_cfg.mos8580) ? SID2_MOS8580 : SID2_MOS6581; | 424 xs_emuConf.sidModel = (xs_cfg.mos8580) ? SID2_MOS8580 : SID2_MOS6581; |
425 xs_emuConf.sidDefault = SID2_MOS6581; | 425 xs_emuConf.sidDefault = SID2_MOS6581; |
611 if (finfo->numberOfInfoStrings < 1) | 611 if (finfo->numberOfInfoStrings < 1) |
612 return 0; | 612 return 0; |
613 | 613 |
614 return g_strdup(finfo->infoString[0]); | 614 return g_strdup(finfo->infoString[0]); |
615 } | 615 } |
616 | |
617 /* Check the format-string for NULL */ | |
618 if (xs_cfg.titleFormat == NULL) | |
619 return g_strdup_printf("%s - %s", finfo->nameString, finfo->authorString); | |
620 | 616 |
621 /* Construct the final result info */ | 617 /* Construct the final result info */ |
622 for (j = i = 0; i < strlen(xs_cfg.titleFormat); i++) | 618 for (j = i = 0; i < strlen(xs_cfg.titleFormat); i++) |
623 { | 619 { |
624 if (xs_cfg.titleFormat[i] == '%') | 620 if (xs_cfg.titleFormat[i] == '%') |