OpenDAFF C++ API
v1.7
Directional Audio File Format
Main Page
Namespaces
Classes
Files
File List
File Members
include
DAFFContentMS.h
Go to the documentation of this file.
1
/*
2
* -------------------------------------------------------------------------------------
3
*
4
* OpenDAFF - A free, open source software package for directional audio data
5
* Copyright 2016 Institute of Technical Acoustics, RWTH Aachen University
6
* OpenDAFF is distributed under the Apache License Version 2.0.
7
*
8
* ------------------------------------------------------------------------------------
9
*
10
*/
11
12
#ifndef IW_DAFF_CONTENTMS
13
#define IW_DAFF_CONTENTMS
14
15
#include <
DAFFDefs.h
>
16
#include <
DAFFContent.h
>
17
#include <vector>
18
20
31
class
DAFF_API
DAFFContentMS
:
public
DAFFContent
32
{
33
public
:
34
inline
virtual
~DAFFContentMS
() {};
35
37
/*
38
* @return Number of frequencies
39
*/
40
virtual
int
getNumFrequencies()
const
=0;
41
43
/*
44
* @return Vector of frequencies
45
*/
46
virtual
const
std::vector<float>& getFrequencies()
const
=0;
47
49
54
virtual
float
getOverallMagnitudeMaximum()
const
=0;
55
56
// --= Data access =--
57
59
73
virtual
int
getMagnitudes(
int
iRecordIndex,
int
iChannel,
float
* pfDest)
const
=0;
74
76
89
virtual
int
getMagnitude(
int
iRecordIndex,
int
iChannel,
int
iFreqIndex,
float
& fMag)
const
=0;
90
};
91
92
#endif // IW_DAFF_CONTENTMS
DAFF_API
#define DAFF_API
Definition:
DAFFDefs.h:29
DAFFContent
Common content interface.
Definition:
DAFFContent.h:40
DAFFContentMS
Magnitude spectrum content interface.
Definition:
DAFFContentMS.h:31
DAFFDefs.h
DAFFContentMS::~DAFFContentMS
virtual ~DAFFContentMS()
Definition:
DAFFContentMS.h:34
DAFFContent.h
OpenDAFF
is a project from the
Institute of Technical Acoustics
, RWTH Aachen University, Germany.