XX CMake Package
Loading...
Searching...
No Matches
XXSampleReader.h
Go to the documentation of this file.
1#ifndef XXSampleOscilatorH
2#define XXSampleOscilatorH
3
4#include "XXAudioExportDef.h"
5#include "XXSampleWave.h"
6
7#include <QString>
8
9namespace XX
10{
11 namespace Sample
12 {
16
18 {
19 public:
20 Reader(const QString& fileName);
21
22 public:
23 const Meta& getMeta() const;
24 Data getChannel(const uint8_t& channel) const;
25 Data get(const size_t& position, const size_t& numberOfSamples, const uint8_t& channel) const;
26
27 size_t getPlayhead() const;
29 bool atEnd() const;
31
32 float getSound(const uint8_t& channel) const;
33
34 private:
35 Channels channels;
36 size_t playhead;
37 };
38 } // namespace Sample
39} // namespace XX
40
41#endif // NOT XXSampleOscilatorH
#define XXAUDIO_DECLSPEC
Definition XXAudioExportDef.h:11
Data getChannel(const uint8_t &channel) const
size_t getPlayhead() const
bool atEnd() const
Data get(const size_t &position, const size_t &numberOfSamples, const uint8_t &channel) const
Reader(const QString &fileName)
float getSound(const uint8_t &channel) const
const Meta & getMeta() const
wave audio sample baseclass for Reader and Writer
Definition XXSampleWave.h:16
QList< Data > Channels
Definition XXSampleAbstract.h:17
QList< float > Data
Definition XXSampleAbstract.h:14
Definition XXSampleAbstract.h:12
Definition XXPopulatedAbstract.h:11
meta data of audio sample
Definition XXSampleAbstract.h:23