osx: removed commented code
We don't need to keep commented code forever. If we want that test_default_device() implementation back one day, we'll pick it from the git history.
This commit is contained in:
@@ -38,29 +38,8 @@ struct osx_output {
|
|||||||
static bool
|
static bool
|
||||||
osx_output_test_default_device(void)
|
osx_output_test_default_device(void)
|
||||||
{
|
{
|
||||||
/*AudioUnit au;
|
/* on a Mac, this is always the default plugin, if nothing
|
||||||
ComponentDescription desc;
|
else is configured */
|
||||||
Component comp;
|
|
||||||
|
|
||||||
desc.componentType = kAudioUnitType_Output;
|
|
||||||
desc.componentSubType = kAudioUnitSubType_Output;
|
|
||||||
desc.componentManufacturer = kAudioUnitManufacturer_Apple;
|
|
||||||
desc.componentFlags = 0;
|
|
||||||
desc.componentFlagsMask = 0;
|
|
||||||
|
|
||||||
comp = FindNextComponent(NULL, &desc);
|
|
||||||
if(!comp) {
|
|
||||||
ERROR("Unable to open default OS X defice\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(OpenAComponent(comp, &au) != noErr) {
|
|
||||||
ERROR("Unable to open default OS X defice\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
CloseComponent(au); */
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user