libamsip  5.2.1
Functions
amsip player interface

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

◆ am_player_start()

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

◆ am_player_start_with_callback()

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

◆ am_player_stop()

int am_player_stop ( int  soundcard)

Configure amsip to stop playing a file.

Parameters
soundcardid of soundcard to stop.

◆ am_player_stop_all()

int am_player_stop_all ( void  )

Configure amsip to stop release ressource in terminated players.

◆ am_player_stop_terminated()

int am_player_stop_terminated ( void  )

Configure amsip to stop release ressource in terminated players.