Solved it. Turns out I trued when I should have falsed. In the line:
x = Disc->setDevice(Disc->defaultCdromDeviceName(),50,true,Disc->audioSystems().at(0));

the parameter true should be false. Once I changeThanks for all the help.