File: player.h

package info (click to toggle)
shairport-sync 2.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,272 kB
  • ctags: 844
  • sloc: ansic: 8,508; xml: 760; sh: 126; makefile: 83
file content (25 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (2)
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
#ifndef _PLAYER_H
#define _PLAYER_H

#include "audio.h"

typedef struct {
  int encrypted;
  uint8_t aesiv[16], aeskey[16];
  int32_t fmtp[12];
} stream_cfg;

typedef uint16_t seq_t;

// wrapped number between two seq_t.
int32_t seq_diff(seq_t a, seq_t b);

int player_play(stream_cfg *cfg, pthread_t *thread);
void player_stop(pthread_t *thread);

void player_volume(double f);
void player_flush(uint32_t timestamp);

void player_put_packet(seq_t seqno, uint32_t timestamp, uint8_t *data, int len);

#endif //_PLAYER_H