mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
don't use 8000, use DEFAULT_SAMPLE_RATE
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -671,7 +671,7 @@ static int setformat(struct chan_oss_pvt *o, int mode)
|
||||
ast_log(LOG_WARNING, "Failed to set audio device to mono\n");
|
||||
return -1;
|
||||
}
|
||||
fmt = desired = 8000; /* 8000 Hz desired */
|
||||
fmt = desired = DEFAULT_SAMPLE_RATE; /* 8000 Hz desired */
|
||||
res = ioctl(fd, SNDCTL_DSP_SPEED, &fmt);
|
||||
|
||||
if (res < 0) {
|
||||
|
Reference in New Issue
Block a user