diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-16 17:14:53 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-16 17:14:53 +0000 |
commit | 2a715ede5240227df198b81ed36aba1e5ad2ff6d (patch) | |
tree | c0025dd29df3c4674f2484c0069ddb7df8efe21a /main/autoservice.c | |
parent | 2ae84c274d50753912ea24120cf86626cea1af47 (diff) |
Merged revisions 246899 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r246899 | dvossel | 2010-02-16 11:07:41 -0600 (Tue, 16 Feb 2010) | 16 lines
fixes sample rate conversion issue with Monitor application
When using ast_seekstream with the read/write streams of a monitor,
the number of samples we are seeking must be of the same rate as the
stream or the jump calculation will be incorrect. This patch adds logic
to correctly convert the number of samples to jump to the sample rate
the read/write stream is using.
For example, if the call is G722 (16khz) and the read/write stream is
recording a 8khz wav, seeking 320 samples of 16khz audio is not the
same as seeking 320 samples of 8khz audio when performing the ast_seekstream
on the stream.
ABE-2044
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@246903 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/autoservice.c')
0 files changed, 0 insertions, 0 deletions