libamsip  5.1.0
Functions
amsip player interface
Various other API.

Functions

int am_player_start (int soundcard, const char *file, int loop)
int am_player_start_with_callback (int soundcard, const char *file, int loop, MSFilterNotifyFunc cb_fileplayer_eof, void *userdata)
int am_player_stop (int soundcard)
int am_player_stop_all (void)
int am_player_stop_terminated (void)

Detailed Description

Function Documentation

int am_player_start ( int  soundcard,
const char *  file,
int  loop 
)

Configure amsip to play a file.

Parameters
soundcardDevice to use
fileFile to play
loopPlay the file in a loop
int am_player_start_with_callback ( int  soundcard,
const char *  file,
int  loop,
MSFilterNotifyFunc  cb_fileplayer_eof,
void *  userdata 
)

Configure amsip to play a file.

Parameters
soundcardDevice to use
fileFile to play
loopPlay the file in a loop
cb_fileplayer_eofcallback when file finished to play
userdatauserdata
int am_player_stop ( int  soundcard)

Configure amsip to stop playing a file.

Parameters
soundcardid of soundcard to stop.
int am_player_stop_all ( void  )

Configure amsip to stop release ressource in terminated players.

int am_player_stop_terminated ( void  )

Configure amsip to stop release ressource in terminated players.