/usr/include/parlatype/pt-wavedata.h is in libparlatype-dev 1.5.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | /* Copyright (C) Gabor Karsay 2016 <gabor.karsay@gmx.at>
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PT_WAVEDATA_H
#define PT_WAVEDATA_H
#include <glib-object.h>
#include <glib.h>
#define PT_TYPE_WAVEDATA (pt_wavedata_get_type ())
typedef struct _PtWavedata PtWavedata;
/**
* PtWavedata:
* @array: (array length=length): array of min/max values. One single sample is
* represented by a min value ranging from -1.0 to 0.0 and a max value ranging
* from 0.0 to 1.0. This is a simplified approach, as a sample is not a single
* point in time, but a min and a max value in a certain amount of time, e.g.
* 10 ms.
* @length: number of elements in array
* @channels: number of channels for future use, currently it's always 1.
* @px_per_sec: pixels/samples per second. For example 100 means one second in time
* is 100 pixels wide.
*
* Contains all information about the wave. Usually you don't have to access
* the struct's members.
*/
struct _PtWavedata
{
gfloat *array;
gint64 length;
guint channels;
guint px_per_sec;
};
GType pt_wavedata_get_type (void) G_GNUC_CONST;
PtWavedata* pt_wavedata_copy (PtWavedata *data);
void pt_wavedata_free (PtWavedata *data);
PtWavedata* pt_wavedata_new (gfloat *array,
gint64 length,
guint channels,
guint px_per_sec);
#endif
|