Audaspace 1.10.0
A high level audio library.
Loading...
Searching...
No Matches
ICaptureDeviceFactory.h
Go to the documentation of this file.
1#pragma once
2
8
9#include "Audaspace.h"
11
12#include <memory>
13#include <string>
14
16
17class IReader;
18
24{
25public:
30
37 virtual std::shared_ptr<IReader> openDevice(Specs specs, int buffersize)=0;
38
43 virtual void setName(const std::string &name)=0;
44};
45
The main header file of the library defining the namespace and basic data types.
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
Defines all important macros and basic data structures for stream format descriptions.
The ICaptureDeviceFactory interface opens an input capture device.
Definition ICaptureDeviceFactory.h:24
virtual std::shared_ptr< IReader > openDevice(Specs specs, int buffersize)=0
Opens an audio capture device.
virtual void setName(const std::string &name)=0
Sets a name for the capture device.
virtual ~ICaptureDeviceFactory()
Destroys the capture device factory.
Definition ICaptureDeviceFactory.h:29
This class represents a sound source as stream or as buffer which can be read for example by another ...
Definition IReader.h:35
192000 Hz.
Definition Specification.h:116