File: relative.c

package info (click to toggle)
alsaplayer 0.99.82-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,892 kB
  • sloc: ansic: 40,741; cpp: 14,400; makefile: 983; sh: 796; lex: 751; asm: 45; python: 29; sed: 16
file content (14 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <alsaplayer/control.h>

int main (int argc, char *argv[])
{
	int pos;
	if (argc == 2) {
		pos = atoi(argv[1]);

		if (ap_set_position_relative (0, pos)) {
			printf("Seeked ahead %d seconds\n", pos);
		}
	}	
  return 0;
}