~ben-sput/+junk/libwaveplot

« back to all changes in this revision

Viewing changes to src/info.h

  • Committer: Ben Ockmore
  • Date: 2014-08-13 17:05:35 UTC
  • Revision ID: ben.sput@gmail.com-20140813170535-wn2vm73f8h08t6tn
Tags: upstream-0.0
ImportĀ upstreamĀ versionĀ 0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2014 Ben Ockmore
 
3
 *
 
4
 * This file is part of libwaveplot.
 
5
 
 
6
 * libwaveplot is free software: you can redistribute it and/or modify it under
 
7
 * the terms of the GNU Lesser General Public License as published by the Free
 
8
 * Software Foundation, either version 3 of the License, or (at your option)
 
9
 * any later version.
 
10
 
 
11
 * libwaveplot is distributed in the hope that it will be useful, but WITHOUT
 
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 
14
 * for more details.
 
15
 
 
16
 * You should have received a copy of the GNU Lesser General Public License
 
17
 * along with libwaveplot. If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#ifndef __LIBWP_INFO_H__
 
21
#define __LIBWP_INFO_H__
 
22
 
 
23
#include <stdint.h>
 
24
 
 
25
#include "dllexport.h"
 
26
#include "typedefs.h"
 
27
 
 
28
struct info_t_t
 
29
{
 
30
        uint32_t duration_secs;
 
31
 
 
32
        uint8_t num_channels;
 
33
 
 
34
        uint16_t bit_depth;
 
35
        uint32_t bit_rate;
 
36
        uint32_t sample_rate;
 
37
 
 
38
        char* file_format;
 
39
};
 
40
 
 
41
/* For allocating and freeing information structures */
 
42
LIBWAVEPLOT_API info_t* alloc_info(void);
 
43
LIBWAVEPLOT_API void free_info(info_t* info);
 
44
 
 
45
LIBWAVEPLOT_API void get_info(info_t* info, file_t* file);
 
46
 
 
47
#endif //__LIBWP_INFO_H__