Loading media/libaudioclient/ToneGenerator.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1420,7 +1420,7 @@ bool ToneGenerator::prepareWave() { // Instantiate a wave generator if ot already done for this frequency if (mWaveGens.indexOfKey(frequency) == NAME_NOT_FOUND) { ToneGenerator::WaveGenerator *lpWaveGen = new ToneGenerator::WaveGenerator((unsigned short)mSamplingRate, new ToneGenerator::WaveGenerator(mSamplingRate, frequency, TONEGEN_GAIN/lNumWaves); mWaveGens.add(frequency, lpWaveGen); Loading Loading @@ -1544,7 +1544,7 @@ ToneGenerator::tone_type ToneGenerator::getToneForRegion(tone_type toneType) { // none // //////////////////////////////////////////////////////////////////////////////// ToneGenerator::WaveGenerator::WaveGenerator(unsigned short samplingRate, ToneGenerator::WaveGenerator::WaveGenerator(uint32_t samplingRate, unsigned short frequency, float volume) { double d0; double F_div_Fs; // frequency / samplingRate Loading media/libaudioclient/include/ToneGenerator.h +1 −1 Original line number Diff line number Diff line Loading @@ -299,7 +299,7 @@ private: WAVEGEN_STOP // Stop wave on zero crossing }; WaveGenerator(unsigned short samplingRate, unsigned short frequency, WaveGenerator(uint32_t samplingRate, unsigned short frequency, float volume); ~WaveGenerator(); Loading Loading
media/libaudioclient/ToneGenerator.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -1420,7 +1420,7 @@ bool ToneGenerator::prepareWave() { // Instantiate a wave generator if ot already done for this frequency if (mWaveGens.indexOfKey(frequency) == NAME_NOT_FOUND) { ToneGenerator::WaveGenerator *lpWaveGen = new ToneGenerator::WaveGenerator((unsigned short)mSamplingRate, new ToneGenerator::WaveGenerator(mSamplingRate, frequency, TONEGEN_GAIN/lNumWaves); mWaveGens.add(frequency, lpWaveGen); Loading Loading @@ -1544,7 +1544,7 @@ ToneGenerator::tone_type ToneGenerator::getToneForRegion(tone_type toneType) { // none // //////////////////////////////////////////////////////////////////////////////// ToneGenerator::WaveGenerator::WaveGenerator(unsigned short samplingRate, ToneGenerator::WaveGenerator::WaveGenerator(uint32_t samplingRate, unsigned short frequency, float volume) { double d0; double F_div_Fs; // frequency / samplingRate Loading
media/libaudioclient/include/ToneGenerator.h +1 −1 Original line number Diff line number Diff line Loading @@ -299,7 +299,7 @@ private: WAVEGEN_STOP // Stop wave on zero crossing }; WaveGenerator(unsigned short samplingRate, unsigned short frequency, WaveGenerator(uint32_t samplingRate, unsigned short frequency, float volume); ~WaveGenerator(); Loading