Ring Daemon 16.0.0
Loading...
Searching...
No Matches
audiodevice.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2004-2025 Savoir-faire Linux Inc.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef AUDIO_DEVICE_H
19#define AUDIO_DEVICE_H
20
21#import <TargetConditionals.h>
22
23#if !TARGET_OS_IPHONE
24#include <CoreServices/CoreServices.h>
25#include <CoreAudio/CoreAudio.h>
26#endif
27
28#include <string>
29
30namespace jami {
31
33{
34#if !TARGET_OS_IPHONE
35public:
40 void init(AudioDeviceID devid, bool isInput);
41 bool valid() const;
42 void setBufferSize(UInt32 size);
43
44public:
46 std::string name_;
52
53private:
54 int countChannels() const;
55 std::string getName() const;
56#endif
57};
58
59} // namespace jami
60
61#endif /* defined(AUDIO_DEVICE_H) */
UInt32 bufferSizeFrames_
Definition audiodevice.h:50
void init(AudioDeviceID devid, bool isInput)
bool valid() const
AudioStreamBasicDescription format_
Definition audiodevice.h:51
void setBufferSize(UInt32 size)
AudioDeviceID id_
Definition audiodevice.h:45
std::string name_
Definition audiodevice.h:46
void emitSignal(Args... args)
Definition ring_signal.h:64