Silly application to play an MP3 file – uses mpg123.
More...
#include "asterisk.h"
#include <sys/time.h>
#include <sys/types.h>
#include <signal.h>
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/frame.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/app.h"
#include "asterisk/format_cache.h"
Go to the source code of this file.
|
#define | LOCAL_MPG_123 "/usr/local/bin/mpg123" |
|
#define | MPG_123 "/usr/bin/mpg123" |
|
|
| AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY,"Silly MP3 Application") |
|
static int | load_module (void) |
|
static int | mp3_exec (struct ast_channel *chan, const char *data) |
|
static int | mp3play (const char *filename, unsigned int sampling_rate, int fd) |
|
static int | timed_read (int fd, void *data, int datalen, int timeout, int pid) |
|
static int | unload_module (void) |
|
|
static char * | app = "MP3Player" |
|
Silly application to play an MP3 file – uses mpg123.
- Author
- Mark Spencer marks.nosp@m.ter@.nosp@m.digiu.nosp@m.m.co.nosp@m.m
- Note
- Add feature to play local M3U playlist file Vincent Li mchun.nosp@m..li@.nosp@m.gmail.nosp@m..com
Definition in file app_mp3.c.