Skip to content

Commit

Permalink
Let M-Audio cards run in stereo mode without crashing.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 15, 2004
1 parent 47dfdf8 commit f4ad36c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions osx/alContext.c
Expand Up @@ -647,8 +647,10 @@ static ALvoid __alcSetSpeakerDefaults(ALdevice *dev)
UInt32 i;

dev->speakerConfig = SPKCFG_STDSTEREO;
if (dev->speakers > 2)
dev->speakerConfig = SPKCFG_POSATTENUATION;

// !!! FIXME: Non-stereo codepaths are broken right now.
// if (dev->speakers > 2)
// dev->speakerConfig = SPKCFG_POSATTENUATION;

if (dev->speakers == 0) // may be capture device, etc...
return;
Expand Down Expand Up @@ -686,7 +688,7 @@ static ALvoid __alcSetSpeakerDefaults(ALdevice *dev)
case 5: // 4.1 setup. !!! FIXME
case 6: // 5.1 setup. !!! FIXME
default:
assert(0);
//assert(0);
break;
} // switch

Expand Down

0 comments on commit f4ad36c

Please sign in to comment.