1bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen/* 2bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * Copyright (C) 2010 Google Inc. All rights reserved. 3bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * 4bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * Redistribution and use in source and binary forms, with or without 5bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * modification, are permitted provided that the following conditions 6bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * are met: 7bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * 8bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * 1. Redistributions of source code must retain the above copyright 9bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * notice, this list of conditions and the following disclaimer. 10bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * 2. Redistributions in binary form must reproduce the above copyright 11bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * notice, this list of conditions and the following disclaimer in the 12bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * documentation and/or other materials provided with the distribution. 13bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 14bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * its contributors may be used to endorse or promote products derived 15bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * from this software without specific prior written permission. 16bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * 17bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 18bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 21bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen */ 28bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen 29bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen#ifndef AudioGain_h 30bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen#define AudioGain_h 31bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen 32bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen#include "AudioParam.h" 33bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen#include <wtf/PassRefPtr.h> 34bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen 35bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsennamespace WebCore { 36bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen 37bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsenclass AudioGain : public AudioParam { 38bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsenpublic: 39bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen static PassRefPtr<AudioGain> create(const char* name, double defaultValue, double minValue, double maxValue) 40bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen { 41bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen return adoptRef(new AudioGain(name, defaultValue, minValue, maxValue)); 42bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen } 43bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen 44bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsenprivate: 45bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen AudioGain(const char* name, double defaultValue, double minValue, double maxValue) 46bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen : AudioParam(name, defaultValue, minValue, maxValue) 47bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen { 48bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen } 49bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen}; 50bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen 51bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen} // namespace WebCore 52bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen 53bec39347bb3bb5bf1187ccaf471d26247f28b585Kristian Monsen#endif // AudioParam_h 54