Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
avfaudiopreviewdelegate_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef AVFAUDIOPREVIEWDELEGATE_P_H
5#define AVFAUDIOPREVIEWDELEGATE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qglobal.h>
19
20#include <AVFoundation/AVFoundation.h>
21
23
25
26QT_END_NAMESPACE
27
28@interface AVFAudioPreviewDelegate : NSObject<AVCaptureAudioDataOutputSampleBufferDelegate>
29
30- (id)init;
31- (void)setupWithCaptureSession: (AVFCameraSession*)session
32 audioOutputDevice: (NSString*)deviceId;
33- (void)renderAudioSampleBuffer:(CMSampleBufferRef)sampleBuffer;
34- (void)resetAudioPreviewDelegate;
35- (void)setVolume: (float)volume;
36- (void)setMuted: (bool)muted;
37
38@end
39
40#endif // AVFAUDIOPREVIEWDELEGATE_P_H
void error(int error, const QString &errorString)
AVCaptureDeviceInput * videoInput() const
AVCaptureSession * captureSession() const
QCameraDevice activecameraDevice() const
void setCameraFormat(const QCameraFormat &format)
AVCaptureDevice * videoCaptureDevice() const
void setAudioOutputMuted(bool muted)
QCameraFormat cameraFormat() const
~AVFCameraSession() override
void setActiveCamera(const QCameraDevice &info)
void setAudioInputVolume(float volume)
AVFCameraRenderer * videoOutput() const
AVCaptureDevice * audioCaptureDevice() const
void newViewfinderFrame(const QVideoFrame &frame)
void setVideoSink(QVideoSink *sink)
FourCharCode defaultCodec()
void activeChanged(bool)
void setAudioOutputVolume(float volume)
AVCaptureDeviceInput * audioInput() const
void setAudioInputMuted(bool muted)
AVFAudioPreviewDelegate * audioPreviewDelegate() const
AVCaptureAudioDataOutput * audioOutput() const