MCPcopy Create free account
hub / github.com/bbc/audiowaveform / SndFileAudioFileReader

Class SndFileAudioFileReader

src/SndFileAudioFileReader.h:37–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35//------------------------------------------------------------------------------
36
37class SndFileAudioFileReader : public AudioFileReader
38{
39 public:
40 SndFileAudioFileReader();
41 virtual ~SndFileAudioFileReader();
42
43 SndFileAudioFileReader(const SndFileAudioFileReader&) = delete;
44 SndFileAudioFileReader& operator=(const SndFileAudioFileReader&) = delete;
45
46 public:
47 void configure(int channels, int sample_rate, const std::string& format);
48
49 virtual bool open(const char* input_filename, bool show_info = true);
50
51 virtual bool run(AudioProcessor& processor);
52
53 private:
54 void close();
55
56 private:
57 SNDFILE* input_file_;
58 SF_INFO info_;
59};
60
61//------------------------------------------------------------------------------
62

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected