Forums > MaxMSP

DSP status and reboot

May 5, 2011 | 4:34 pm

Hi
I made a patch to use with Runtime on PC under XP.
Unfortunately, each time I reboot the computer, I need to
check and reconfigure DSP status prior to run my patch and hear my sound…
Any idea to fix the problem ?
Thank you for your answer
DLR


May 5, 2011 | 8:19 pm

what do you have to change on the DSP status?

If your just changing the driver, sampling rate or anything like that you can us the object adstatus. It lets you query the dsp and lets you change elements within it. All you need to do is find out what your changing on the runtime version to know what setting to load.

GW


May 6, 2011 | 1:14 pm

Hi
thank you for your prompt reply.
What I have to change on DSP status is to set the output device which default setting is desesperantly NONE instead of AudioIntegre…
I can’t find this setting in adstatus object…Grrr!!


May 6, 2011 | 3:52 pm

in the adstatus help patch there’s a subpatch called driver. what your looking for is "adstatus driver". Here’s a quick example.

{
"boxes" : [ {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 45.262337, 27.0, 20.0, 20.0 ],
"id" : "obj-28",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "number",
"patching_rect" : [ 134.929871, 52.400467, 50.0, 20.0 ],
"id" : "obj-29",
"fontname" : "Arial",
"numinlets" : 1,
"triscale" : 0.9,
"numoutlets" : 2,
"fontsize" : 11.595187,
"presentation_rect" : [ 15.0, 15.0, 50.0, 20.0 ],
"outlettype" : [ "int", "bang" ]
}

}
, {
"box" : {
"maxclass" : "umenu",
"patching_rect" : [ 45.262337, 77.800934, 135.0, 20.0 ],
"id" : "obj-30",
"fontname" : "Arial",
"types" : [ ],
"numinlets" : 1,
"numoutlets" : 3,
"fontsize" : 11.595187,
"outlettype" : [ "int", "", "" ],
"items" : ""
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "adstatus driver",
"patching_rect" : [ 45.262337, 52.400467, 87.0, 20.0 ],
"id" : "obj-31",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 2,
"fontsize" : 11.595187,
"outlettype" : [ "", "int" ]
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-31", 1 ],
"destination" : [ "obj-29", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-30", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-31", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-31", 0 ],
"hidden" : 0,
"midpoints" : [ 54.762337, 100.892273, 35.420776, 100.892273, 35.420776, 47.7822, 54.762337, 47.7822 ]
}

}
]
}

All you need to do is addd a loadmess with the driver number.

GW


Viewing 4 posts - 1 through 4 (of 4 total)