summaryrefslogtreecommitdiff
path: root/Audio/WavInputLoader.hpp
blob: 8071ea9f208d060900a7b95af73fe8eaa8d7e4b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef WAV_INPUT_LOADER_HPP
#define WAV_INPUT_LOADER_HPP

#include <vector>

#include <QString>

namespace Radio
{

struct WavInputResult
{
  std::vector<short> samples;
  QString fileDateTime;
  int frames {0};
  int nutc {0};
  int yymmdd {0};
  bool valid {false};
};

WavInputResult load_wav_input (QString const& name, int sample_limit);

}

#endif // WAV_INPUT_LOADER_HPP