summaryrefslogtreecommitdiff
path: root/cmd/ossplay/ossplay_decode.h
blob: c05fe8bbe8dc7da19e97e45d2483335b04da59a3 (plain)
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
#ifndef OSSPLAY_DECODE_H
#define OSSPLAY_DECODE_H

#include "ossplay.h"

#define MAC_IMA_BLKLEN		34
/*
 * ima4 block length in AIFC files. Qt has "stsd" chunk which can change this,
 * but I know of no AIFC equivalent.
 */

typedef struct verbose_values {
  char tstring[20];
  double secs;
  double next_sec;
  double secs_timer2;
  double next_sec_timer2;
  double tsecs;
  double constant;
  int format;
}
verbose_values_t;

errors_t decode_sound (dspdev_t *, int, big_t, int, int, int, void *);
errors_t encode_sound (dspdev_t *, fctypes_t, const char *, int, int, int,
                       double);
int get_db_level (const unsigned char *, ssize_t, int);
verbose_values_t * setup_verbose (int, double, double);

#endif