00001 /********** 00002 This library is free software; you can redistribute it and/or modify it under 00003 the terms of the GNU Lesser General Public License as published by the 00004 Free Software Foundation; either version 2.1 of the License, or (at your 00005 option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) 00006 00007 This library is distributed in the hope that it will be useful, but WITHOUT 00008 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00009 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for 00010 more details. 00011 00012 You should have received a copy of the GNU Lesser General Public License 00013 along with this library; if not, write to the Free Software Foundation, Inc., 00014 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00015 **********/ 00016 // Copyright (c) 2001-2003 Live Networks, Inc. All rights reserved. 00017 // Generic audio input device (such as a microphone, or an input sound card) 00018 // Implementation 00019 00020 #include <AudioInputDevice.hh> 00021 00022 AudioInputDevice 00023 ::AudioInputDevice(UsageEnvironment& env, unsigned char bitsPerSample, 00024 unsigned char numChannels, 00025 unsigned samplingFrequency, unsigned granularityInMS) 00026 : FramedSource(env), fBitsPerSample(bitsPerSample), 00027 fNumChannels(numChannels), fSamplingFrequency(samplingFrequency), 00028 fGranularityInMS(granularityInMS) { 00029 } 00030 00031 AudioInputDevice::~AudioInputDevice() { 00032 } 00033 00034 char** AudioInputDevice::allowedDeviceNames = NULL; 00035 00037 00038 AudioPortNames::AudioPortNames() 00039 : numPorts(0), portName(NULL) { 00040 } 00041 00042 AudioPortNames::~AudioPortNames() { 00043 for (unsigned i = 0; i < numPorts; ++i) delete portName[i]; 00044 delete portName; 00045 }
1.5.5