Overte C++ Documentation
AudioFileWav.h
1
//
2
// AudioWavFile.h
3
// libraries/audio-client/src
4
//
5
// Created by Luis Cuenca on 12/1/2017.
6
// Copyright 2017 High Fidelity, Inc.
7
//
8
// Distributed under the Apache License, Version 2.0.
9
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10
//
11
12
#ifndef hifi_AudioFileWav_h
13
#define hifi_AudioFileWav_h
14
15
#include <QObject>
16
#include <QFile>
17
#include <QDataStream>
18
#include <QVector>
19
#include <QAudioFormat>
20
21
class
AudioFileWav :
public
QObject {
22
Q_OBJECT
23
public
:
24
AudioFileWav() {}
25
bool
create(
const
QAudioFormat& audioFormat,
const
QString& filepath);
26
bool
addRawAudioChunk(
char
* chunk,
int
size);
27
void
close();
28
29
private
:
30
void
addHeader(
const
QAudioFormat& audioFormat);
31
QFile _file;
32
};
33
34
#endif
// hifi_AudioFileWav_h
libraries
audio-client
src
AudioFileWav.h
Generated by
1.9.1