Searched refs:mPhase (Results 1 – 9 of 9) sorted by relevance
29 private double mPhase; // current phase field in SineWaveTone44 short value1 = (short) (mAmplitude * Math.sin(mPhase) * Short.MAX_VALUE); in generateTone()47 mPhase += mPhaseIncrement; in generateTone()50 mPhase += mPhaseIncrement; in generateTone()55 if (mPhase >= Constant.TWO_PI) { in generateTone()56 mPhase -= Constant.TWO_PI; in generateTone()65 double value1 = mAmplitude * Math.sin(mPhase); in generateTone()68 mPhase += mPhaseIncrement; in generateTone()71 mPhase += mPhaseIncrement; in generateTone()76 if (mPhase >= Constant.TWO_PI) { in generateTone()[all …]
54 mPhase = phase; in setPhase()58 return mPhase; in getPhase()84 mPhase += frequency * mFrequencyToPhaseIncrement; in incrementPhase()86 if (mPhase >= 1.0f) { in incrementPhase()87 mPhase -= 2.0f; in incrementPhase()88 } else if (mPhase < -1.0f) { in incrementPhase()89 mPhase += 2.0f; in incrementPhase()91 return mPhase; in incrementPhase()94 float mPhase = 0.0f; // phase that ranges from -1.0 to +1.0 variable
33 mPhase += mFrequencyToPhaseIncrement * frequencies[i]; in onProcess()34 if (mPhase >= 1.0f) { in onProcess()36 mPhase -= 2.0f; in onProcess()
20 private float mPhase = 0.0f; field in SawOscillator58 mPhase += mPhaseIncrement; in incrementWrapPhase()59 while (mPhase > 1.0) { in incrementWrapPhase()60 mPhase -= 2.0; in incrementWrapPhase()62 while (mPhase < -1.0) { in incrementWrapPhase()63 mPhase += 2.0; in incrementWrapPhase()65 return mPhase; in incrementWrapPhase()
30 mPhase += kDelta; in incrementPhase()31 if (mPhase >= kTwoPi) mPhase -= kTwoPi; in incrementPhase()32 return mPhase; in incrementPhase()35 float mPhase = 0;
67 if (mPhase <= kPi){ in renderAudio()73 mPhase += mPhaseIncrement; in renderAudio()74 if (mPhase > kTwoPi) mPhase -= kTwoPi; in renderAudio()83 float mPhase = 0.0; variable
61 private double mPhase; field in TestDataPathsActivity89 mPhase = 0.0; in startSniffer()102 double diff = Math.abs(phase - mPhase); in run()107 mPhase = phase; in run()118 + "\nphase = " + getMagnitudeText(mPhase) in getCurrentStatusReport()
45 mPhase = -1.0f; in onProcess()
290 float sampleValue = kAmplitude * sinf(mPhase);294 mPhase += mPhaseIncrement;295 if (mPhase >= kTwoPi) mPhase -= kTwoPi;314 float mPhase = 0.0;