no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / media / libsoundtouch / src / RLBoxSoundTouchFactory.h
blob5a19ef2fd8c479769c6e5f81efb7748867e73fa8
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/. */
7 #include "SoundTouch.h"
9 // Exposed C API that is used by RLBox
11 extern "C" {
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);