Fixed detection of whether or not standalone MPU-401 should be allowed.

This commit is contained in:
OBattler
2017-06-04 02:41:16 +02:00
parent bbe2e485a8
commit 3c1b0da73f
2 changed files with 3 additions and 3 deletions

View File

@@ -764,7 +764,7 @@ void mpu401_device_add(void)
return; return;
} }
n = sound_card_getname(sound_card_current); n = sound_card_get_internal_name(sound_card_current);
if (n != NULL) if (n != NULL)
{ {
if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32")) if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32"))

View File

@@ -1114,7 +1114,7 @@ int mpu401_present(void)
{ {
char *n; char *n;
n = sound_card_getname(temp_sound_card); n = sound_card_get_internal_name(temp_sound_card);
if (n != NULL) if (n != NULL)
{ {
if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32")) if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32"))
@@ -1130,7 +1130,7 @@ int mpu401_standalone_allow(void)
{ {
char *n; char *n;
n = sound_card_getname(temp_sound_card); n = sound_card_get_internal_name(temp_sound_card);
if (n != NULL) if (n != NULL)
{ {
if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32")) if (!strcmp(n, "sb16") || !strcmp(n, "sbawe32"))