blob: 6b7135361042df095f8026aa72044a8e17915c14 [file] [log] [blame]
henrike@webrtc.org28e20752013-07-10 00:45:36 +00001/*
kjellanderb24317b2016-02-10 07:54:43 -08002 * Copyright 2013 The WebRTC project authors. All Rights Reserved.
henrike@webrtc.org28e20752013-07-10 00:45:36 +00003 *
kjellanderb24317b2016-02-10 07:54:43 -08004 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
henrike@webrtc.org28e20752013-07-10 00:45:36 +00009 */
10
11package org.webrtc;
12
13/** Java wrapper for a C++ AudioTrackInterface */
14public class AudioTrack extends MediaStreamTrack {
15 public AudioTrack(long nativeTrack) {
16 super(nativeTrack);
17 }
dax9d65f392017-04-12 16:58:48 -070018
19 /** Sets the volume for the underlying MediaSource. Volume is a gain value in the range
20 * 0 to 10.
21 */
22 public void setVolume(double volume) {
23 nativeSetVolume(super.nativeTrack, volume);
24 }
25
26 private static native void nativeSetVolume(long nativeTrack, double volume);
henrike@webrtc.org28e20752013-07-10 00:45:36 +000027}