File: README.examples

package info (click to toggle)
alsaplayer 0.99.76-9%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,752 kB
  • ctags: 2,970
  • sloc: ansic: 16,775; sh: 10,709; cpp: 9,442; makefile: 694
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