public RadioDeskEcho(RadioDeskPlayer ply)
 {
     this.libzply_obj  = (ZPlay)ply.GetType().GetField("player", BindingFlags.Instance | BindingFlags.NonPublic).GetValue((object)ply);
     this.t_echoeffect = new TEchoEffect[2];
     this.t_echoeffect[0].nLeftDelay       = 2000;
     this.t_echoeffect[0].nLeftSrcVolume   = 50;
     this.t_echoeffect[0].nLeftEchoVolume  = 30;
     this.t_echoeffect[0].nRightDelay      = 2000;
     this.t_echoeffect[0].nRightSrcVolume  = 50;
     this.t_echoeffect[0].nRightEchoVolume = 30;
     this.t_echoeffect[1].nLeftDelay       = 30;
     this.t_echoeffect[1].nLeftSrcVolume   = 50;
     this.t_echoeffect[1].nLeftEchoVolume  = 30;
     this.t_echoeffect[1].nRightDelay      = 30;
     this.t_echoeffect[1].nRightSrcVolume  = 50;
     this.t_echoeffect[1].nRightEchoVolume = 30;
 }
 public RadioDeskEqualizer(RadioDeskPlayer ply)
 {
     this.libzply_obj = (ZPlay)ply.GetType().GetField("player", BindingFlags.Instance | BindingFlags.NonPublic).GetValue((object)ply);
     int[] FreqPointArray = new int[10]
     {
         60,
         170,
         310,
         600,
         1000,
         3000,
         6000,
         12000,
         14000,
         16000
     };
     if (!this.libzply_obj.SetEqualizerPoints(ref FreqPointArray, 10))
     {
         throw new MediaPlaybackException(this.libzply_obj.GetError());
     }
 }
Beispiel #3
0
 public RadioDeskFFTGraph(RadioDeskPlayer ply)
 {
     this.zply_obj = (ZPlay)ply.GetType().GetField("player", BindingFlags.Instance | BindingFlags.NonPublic).GetValue((object)ply);
 }