2 Copyright (C) 2015 Robin Gareus <robin@gareus.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 #ifndef __libardour_ltc_file_reader_h__
20 #define __libardour_ltc_file_reader_h__
27 #include "ardour/libardour_visibility.h"
28 #include "ardour/types.h"
32 class LIBARDOUR_API LTCFileReader
36 double framepos_sec; // relative to start of file
37 double timecode_sec; // timecode
39 LTCMap (double p, double t) {
45 LTCFileReader (std::string path, double expected_fps, LTC_TV_STANDARD tv_standard = LTC_TV_FILM_24);
48 uint32_t channels () const { return _info.channels; }
49 std::vector<LTCMap> read_ltc (uint32_t channel, uint32_t max_frames = 1);
58 LTC_TV_STANDARD _ltc_tv_standard;
64 float* _interleaved_audio_buffer;
65 uint32_t _frames_decoded;
66 framecnt_t _samples_read;
72 #endif /* __libardour_ltc_file_reader_h__ */