media/libcubeb/src/cubeb_panner.h
author Nick Alexander <nalexander@mozilla.com>
Mon, 09 Nov 2015 10:18:45 -0800
changeset 307655 4ed20ca285932773e617e1f477119d598118d6bc
parent 196014 e0bba6f4966fe87744e042273d404a67f3d8225e
permissions -rw-r--r--
Bug 938994 - Post: Update Gradle configurations. r?sebastian I moved the JAR out of the root directory because I didn't want multiple copies of things in robocop/ appearing in IntelliJ, although this turns out to not be strictly necessary. Keeping it as part of a general push to move things out of the root dumping ground.

/*
 * Copyright © 2014 Mozilla Foundation
 *
 * This program is made available under an ISC-style license.  See the
 * accompanying file LICENSE for details.
 */

#if !defined(CUBEB_PANNER)
#define CUBEB_PANNER

#if defined(__cplusplus)
extern "C" {
#endif

/**
 * Pan an integer or an float stereo buffer according to a cos/sin pan law
 * @param buf the buffer to pan
 * @param frames the number of frames in `buf`
 * @param pan a float in [-1.0; 1.0]
 */
void cubeb_pan_stereo_buffer_float(float * buf, uint32_t frames, float pan);
void cubeb_pan_stereo_buffer_int(short* buf, uint32_t frames, float pan);

#if defined(__cplusplus)
}
#endif

#endif