tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RLBoxSoundTouchFactory.h (1364B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #include "SoundTouch.h"
      8 
      9 // Exposed C API that is used by RLBox
     10 
     11 extern "C" {
     12 
     13 void SetSampleRate(soundtouch::SoundTouch* mTimeStretcher, uint srate);
     14 void SetChannels(soundtouch::SoundTouch* mTimeStretcher, uint numChannels);
     15 void SetPitch(soundtouch::SoundTouch* mTimeStretcher, double newPitch);
     16 void SetSetting(soundtouch::SoundTouch* mTimeStretcher, int settingId,
     17                int value);
     18 void SetTempo(soundtouch::SoundTouch* mTimeStretcher, double newTempo);
     19 void SetRate(soundtouch::SoundTouch* mTimeStretcher, double newRate);
     20 uint NumChannels(soundtouch::SoundTouch* mTimeStretcher);
     21 uint NumSamples(soundtouch::SoundTouch* mTimeStretcher);
     22 uint NumUnprocessedSamples(soundtouch::SoundTouch* mTimeStretcher);
     23 void PutSamples(soundtouch::SoundTouch* mTimeStretcher,
     24                const soundtouch::SAMPLETYPE* samples, uint numSamples);
     25 uint ReceiveSamples(soundtouch::SoundTouch* mTimeStretcher,
     26                    soundtouch::SAMPLETYPE* output, uint maxSamples);
     27 void Flush(soundtouch::SoundTouch* mTimeStretcher);
     28 }