1
/**************************************************************************
2
Lightspark, a free flash player implementation
4
Copyright (C) 2009,2010 Alessandro Pignotti (a.pignotti@sssup.it)
5
Copyright (C) 2010 Alexandre Demers (papouta@hotmail.com)
7
This program is free software: you can redistribute it and/or modify
8
it under the terms of the GNU Lesser General Public License as published by
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU Lesser General Public License for more details.
17
You should have received a copy of the GNU Lesser General Public License
18
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
**************************************************************************/
21
#include "IAudioPlugin.h"
27
IAudioPlugin::IAudioPlugin ( string plugin_name, string backend_name, bool init_stopped ):
28
IPlugin(AUDIO, plugin_name, backend_name), stopped(init_stopped)
33
string IAudioPlugin::get_device ( DEVICE_TYPES desiredType )
37
return playbackDeviceName;
41
return captureDeviceName;
49
vector< string* > *IAudioPlugin::get_devicesList ( DEVICE_TYPES desiredType )
51
if ( desiredType == PLAYBACK )
53
return &playbackDevicesList;
55
else if ( desiredType == CAPTURE )
57
return &captureDevicesList;
65
IAudioPlugin::~IAudioPlugin()
71
AudioStream::AudioStream ( lightspark::AudioDecoder* dec, bool initPause ):
72
decoder(NULL), pause(initPause)