Home
last modified time | relevance | path

Searched refs:mPhase (Results 1 – 9 of 9) sorted by relevance

/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DSineWaveTone.java29 private double mPhase; // current phase field in SineWaveTone
44 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 …]
/external/oboe/apps/OboeTester/app/src/main/cpp/flowunits/
DOscillatorBase.h54 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
DImpulseOscillator.cpp33 mPhase += mFrequencyToPhaseIncrement * frequencies[i]; in onProcess()
34 if (mPhase >= 1.0f) { in onProcess()
36 mPhase -= 2.0f; in onProcess()
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/
DSawOscillator.java20 private float mPhase = 0.0f; field in SawOscillator
58 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()
/external/oboe/apps/fxlab/app/src/main/cpp/effects/utils/
DPhaseAccumulator.h30 mPhase += kDelta; in incrementPhase()
31 if (mPhase >= kTwoPi) mPhase -= kTwoPi; in incrementPhase()
32 return mPhase; in incrementPhase()
35 float mPhase = 0;
/external/oboe/samples/shared/
DOscillator.h67 if (mPhase <= kPi){ in renderAudio()
73 mPhase += mPhaseIncrement; in renderAudio()
74 if (mPhase > kTwoPi) mPhase -= kTwoPi; in renderAudio()
83 float mPhase = 0.0; variable
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DTestDataPathsActivity.java61 private double mPhase; field in TestDataPathsActivity
89 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()
/external/oboe/apps/OboeTester/app/src/main/cpp/
DSawPingGenerator.cpp45 mPhase = -1.0f; in onProcess()
/external/oboe/docs/
DGettingStarted.md290 float sampleValue = kAmplitude * sinf(mPhase);
294 mPhase += mPhaseIncrement;
295 if (mPhase >= kTwoPi) mPhase -= kTwoPi;
314 float mPhase = 0.0;