git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@320947
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
static char sizbuf[8000];
static int sizpos = 0;
int len = sizpos;
- int pos;
int res = 0;
/* size_t frames = 0; */
snd_pcm_state_t state;
} else {
memcpy(sizbuf + sizpos, f->data.ptr, f->datalen);
len += f->datalen;
- pos = 0;
state = snd_pcm_state(alsa.ocard);
if (state == SND_PCM_STATE_XRUN)
snd_pcm_prepare(alsa.ocard);
static struct ast_channel *mgcp_request(const char *type, format_t format, const struct ast_channel *requestor, void *data, int *cause)
{
- format_t oldformat;
struct mgcp_subchannel *sub;
struct ast_channel *tmpc = NULL;
char tmp[256];
char *dest = data;
- oldformat = format;
format &= capability;
if (!format) {
ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format '%s'\n", ast_getformatname_multiple(tmp, sizeof(tmp), format));