2 libltc - en+decode linear timecode
4 Copyright (C) 2006-2012 Robin Gareus <robin@gareus.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as
8 published by the Free Software Foundation, either version 3 of the
9 License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library.
18 If not, see <http://www.gnu.org/licenses/>.
22 #ifndef SAMPLE_CENTER // also defined in decoder.h
23 #define SAMPLE_CENTER 128 // unsigned 8 bit.
31 enum LTC_TV_STANDARD standard;
32 ltcsnd_sample_t enc_lo, enc_hi;
40 double samples_per_clock;
41 double samples_per_clock_2;
42 double sample_remainder;
47 int encode_byte(LTCEncoder *e, int byte, double speed);