Ejemplo n.º 1
0
        private void DoRenderPreview(AudioClip clip, AudioImporter audioImporter, Rect wantedRect, float scaleFactor)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey84 previewCAnonStorey84 = new AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey84();
            // ISSUE: reference to a compiler-generated field
            previewCAnonStorey84.scaleFactor = scaleFactor;
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            previewCAnonStorey84.scaleFactor = previewCAnonStorey84.scaleFactor * 0.95f;
            // ISSUE: reference to a compiler-generated field
            previewCAnonStorey84.minMaxData = !((UnityEngine.Object)audioImporter == (UnityEngine.Object)null) ? AudioUtil.GetMinMaxData(audioImporter) : (float[])null;
            // ISSUE: reference to a compiler-generated field
            previewCAnonStorey84.numChannels = clip.channels;
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            previewCAnonStorey84.numSamples = previewCAnonStorey84.minMaxData != null ? previewCAnonStorey84.minMaxData.Length / (2 * previewCAnonStorey84.numChannels) : 0;
            // ISSUE: reference to a compiler-generated field
            float height = wantedRect.height / (float)previewCAnonStorey84.numChannels;

            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey85 previewCAnonStorey85 = new AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey85();
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            for (previewCAnonStorey85.channel = 0; previewCAnonStorey85.channel < previewCAnonStorey84.numChannels; previewCAnonStorey85.channel = previewCAnonStorey85.channel + 1)
            {
                // ISSUE: object of a compiler-generated type is created
                // ISSUE: variable of a compiler-generated type
                AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey83 previewCAnonStorey83 = new AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey83();
                // ISSUE: reference to a compiler-generated field
                previewCAnonStorey83.\u003C\u003Ef__ref\u0024132 = previewCAnonStorey84;
                // ISSUE: reference to a compiler-generated field
                previewCAnonStorey83.\u003C\u003Ef__ref\u0024133 = previewCAnonStorey85;
                // ISSUE: reference to a compiler-generated field
                Rect r = new Rect(wantedRect.x, wantedRect.y + height * (float)previewCAnonStorey85.channel, wantedRect.width, height);
                // ISSUE: reference to a compiler-generated field
                previewCAnonStorey83.curveColor = new Color(1f, 0.5490196f, 0.0f, 1f);
                // ISSUE: reference to a compiler-generated method
                AudioCurveRendering.DrawMinMaxFilledCurve(r, new AudioCurveRendering.AudioMinMaxCurveAndColorEvaluator(previewCAnonStorey83.\u003C\u003Em__143));
            }
        }
 private void DoRenderPreview(AudioClip clip, AudioImporter audioImporter, Rect wantedRect, float scaleFactor)
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey84 previewCAnonStorey84 = new AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey84();
   // ISSUE: reference to a compiler-generated field
   previewCAnonStorey84.scaleFactor = scaleFactor;
   // ISSUE: reference to a compiler-generated field
   // ISSUE: reference to a compiler-generated field
   previewCAnonStorey84.scaleFactor = previewCAnonStorey84.scaleFactor * 0.95f;
   // ISSUE: reference to a compiler-generated field
   previewCAnonStorey84.minMaxData = !((UnityEngine.Object) audioImporter == (UnityEngine.Object) null) ? AudioUtil.GetMinMaxData(audioImporter) : (float[]) null;
   // ISSUE: reference to a compiler-generated field
   previewCAnonStorey84.numChannels = clip.channels;
   // ISSUE: reference to a compiler-generated field
   // ISSUE: reference to a compiler-generated field
   // ISSUE: reference to a compiler-generated field
   // ISSUE: reference to a compiler-generated field
   previewCAnonStorey84.numSamples = previewCAnonStorey84.minMaxData != null ? previewCAnonStorey84.minMaxData.Length / (2 * previewCAnonStorey84.numChannels) : 0;
   // ISSUE: reference to a compiler-generated field
   float height = wantedRect.height / (float) previewCAnonStorey84.numChannels;
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey85 previewCAnonStorey85 = new AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey85();
   // ISSUE: reference to a compiler-generated field
   // ISSUE: reference to a compiler-generated field
   // ISSUE: reference to a compiler-generated field
   // ISSUE: reference to a compiler-generated field
   // ISSUE: reference to a compiler-generated field
   for (previewCAnonStorey85.channel = 0; previewCAnonStorey85.channel < previewCAnonStorey84.numChannels; previewCAnonStorey85.channel = previewCAnonStorey85.channel + 1)
   {
     // ISSUE: object of a compiler-generated type is created
     // ISSUE: variable of a compiler-generated type
     AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey83 previewCAnonStorey83 = new AudioClipInspector.\u003CDoRenderPreview\u003Ec__AnonStorey83();
     // ISSUE: reference to a compiler-generated field
     previewCAnonStorey83.\u003C\u003Ef__ref\u0024132 = previewCAnonStorey84;
     // ISSUE: reference to a compiler-generated field
     previewCAnonStorey83.\u003C\u003Ef__ref\u0024133 = previewCAnonStorey85;
     // ISSUE: reference to a compiler-generated field
     Rect r = new Rect(wantedRect.x, wantedRect.y + height * (float) previewCAnonStorey85.channel, wantedRect.width, height);
     // ISSUE: reference to a compiler-generated field
     previewCAnonStorey83.curveColor = new Color(1f, 0.5490196f, 0.0f, 1f);
     // ISSUE: reference to a compiler-generated method
     AudioCurveRendering.DrawMinMaxFilledCurve(r, new AudioCurveRendering.AudioMinMaxCurveAndColorEvaluator(previewCAnonStorey83.\u003C\u003Em__143));
   }
 }