Async 1.8.0
AsyncAudioDeviceFactory.h File Reference

A class for handling audio device types. More...

#include <string>
#include <map>

Go to the source code of this file.

Classes

class  Async::AudioDeviceFactory
 A factory class for audio devices. More...
 

Namespaces

namespace  Async
 Namespace for the asynchronous programming classes.
 

Macros

#define REGISTER_AUDIO_DEVICE_TYPE(_name, _class)
 Register a new audio device type.
 

Detailed Description

A class for handling audio device types.

Author
Tobias Blomberg / SM0SVX
Date
2009-12-26
Async - A library for programming event driven applications
Copyright (C) 2003-2013 Tobias Blomberg / SM0SVX

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

Definition in file AsyncAudioDeviceFactory.h.

Macro Definition Documentation

◆ REGISTER_AUDIO_DEVICE_TYPE

#define REGISTER_AUDIO_DEVICE_TYPE ( _name,
_class )
Value:
AudioDevice *create_ ## _class(const std::string& dev_name) \
{ return new _class(dev_name); } \
static bool _class ## _creator_registered = \
AudioDeviceFactory::instance().registerCreator(_name, \
create_ ## _class)

Register a new audio device type.

Parameters
_nameThe name of the audio device type
_classThe name of the class that handle the new audio device type

Definition at line 96 of file AsyncAudioDeviceFactory.h.