(function(e,c,d){var b="Rho.AudioCapture";var a=d.apiReqFor(b);function f(){var g=null;this.getId=function(){return g};if(1==arguments.length&&arguments[0][d.rhoIdParam()]){if(b!=arguments[0][d.rhoClassParam()]){throw"Wrong class instantiation!"}g=arguments[0][d.rhoIdParam()]}else{g=d.nextId()}}d.createPropsProxy(f.prototype,[{propName:"source",propAccess:"rw"},{propName:"encoder",propAccess:"rw"},{propName:"maxDuration",propAccess:"rw"},{propName:"fileName",propAccess:"rw"}],a,function(){return this.getId()});d.createMethodsProxy(f.prototype,[{methodName:"start",nativeName:"start",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"stop",nativeName:"stop",valueCallbackIndex:0},{methodName:"cancel",nativeName:"cancel",valueCallbackIndex:0},{methodName:"getProperty",nativeName:"getProperty",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"getProperties",nativeName:"getProperties",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"getAllProperties",nativeName:"getAllProperties",persistentCallbackIndex:0,valueCallbackIndex:2},{methodName:"setProperty",nativeName:"setProperty",valueCallbackIndex:2},{methodName:"setProperties",nativeName:"setProperties",valueCallbackIndex:1}],a,function(){return this.getId()});d.createRawPropsProxy(f.prototype,[]);f.ENCODER_AAC="AAC";f.ENCODER_AMR_NB="AMR_NB";f.ENCODER_AMR_WB="AMR_WB";f.MIC="mic";d.createPropsProxy(f,[],a);d.createMethodsProxy(f,[],a);d.createPropsProxy(f,[{propName:"defaultInstance:getDefault:setDefault",propAccess:"rw",customSet:function(g){if(!g||"function"!=typeof g.getId){throw"Default object should provide getId method!"}f.setDefaultID(g.getId())}},{propName:"defaultID:getDefaultID:setDefaultID",propAccess:"rw"}],a);f.getId=function(){return f.getDefaultID()};d.createPropsProxy(f,[{propName:"source",propAccess:"rw"},{propName:"encoder",propAccess:"rw"},{propName:"maxDuration",propAccess:"rw"},{propName:"fileName",propAccess:"rw"}],a,function(){return this.getId()});d.createMethodsProxy(f,[{methodName:"start",nativeName:"start",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"stop",nativeName:"stop",valueCallbackIndex:0},{methodName:"cancel",nativeName:"cancel",valueCallbackIndex:0},{methodName:"getProperty",nativeName:"getProperty",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"getProperties",nativeName:"getProperties",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"getAllProperties",nativeName:"getAllProperties",persistentCallbackIndex:0,valueCallbackIndex:2},{methodName:"setProperty",nativeName:"setProperty",valueCallbackIndex:2},{methodName:"setProperties",nativeName:"setProperties",valueCallbackIndex:1}],a,function(){return this.getId()});d.createRawPropsProxy(f,[]);d.namespace(b,f)})(Rho.jQuery,Rho,Rho.util);