mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Remove some variables that were set but unused.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@320947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -384,7 +384,6 @@ static int alsa_write(struct ast_channel *chan, struct ast_frame *f)
|
||||
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;
|
||||
@@ -398,7 +397,6 @@ static int alsa_write(struct ast_channel *chan, struct ast_frame *f)
|
||||
} 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);
|
||||
|
||||
Reference in New Issue
Block a user