File: README.examples

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 (24 lines) | stat: -rw-r--r-- 849 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This directory contains some sample source code for using libalsaplayer

add.c       Add files to a running alsaplayer
clear.c     Clear playlist
seek.c      Seek in songs
speed.c     Set playback speed/pause, negative parameter is allowed ;-)
time.c      Displays position info for a session
relative.c  Jump relative amount of seconds
sort.c	    Sort playlist items with a rule given in first arg.

All these examples can be build as follows:

$ gcc -o example example.c `pkg-config alsaplayer --cflags --libs`

Where example is any of the above filenames (sans extension). If pkg-config
gives you errors you might need to set PKG_CONFIG_PATH:

$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig

(if you used /usr/local as the prefix path for alsaplayer)

Questions, etc. can be send to the alsaplayer-devel mailing list

-andy