)for(ba=ia.length;ba--;)ia[ba]=w(2,-1);switch(M){case 0:y=P/na<v?.5:-.5;break;case 1:y=1-P/na*2;break;case 2:y=P/na;y=6.28318531*(.5<y?y-1:y);y=1.27323954*y+.405284735*y*y*(0>y?1:-1);y=.225*((0>y?-1:1)*y*y-y)+y;break;case 3:y=ia[Math.abs(32*P/na|0)]}E&&(ba=da,A*=I,0>A?A=0:.1<A&&(A=.1),J?(ea+=(y-da)*A,ea*=r):(da=y,ea=0),da+=ea,ka+=da-ba,y=ka*=1-z);H&&(la[ma%1024]=y,y+=la[(ma-Q+1024)%1024],ma++);ca+=y}ca*=.125*V*O;C[qa]=1<=ca?32767:-1>=ca?-32768:32767*ca|0}return D}},xa,Pa,S,O,
    Ia=window.AudioContext||wi