summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/spectrum/tonegenerator.h
blob: 2c331fb3ce0dd0ccad6e67ecf6f52be6bac001bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef TONEGENERATOR_H
#define TONEGENERATOR_H

#include "spectrum.h"

#include <QtGlobal>

QT_BEGIN_NAMESPACE
class QAudioFormat;
class QByteArray;
QT_END_NAMESPACE

/**
 * Generate a sine wave
 */
void generateTone(const SweptTone &tone, const QAudioFormat &format, QByteArray &buffer);

#endif // TONEGENERATOR_H