Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-07-18 01:40:55 +0400
committerGregory Maxwell <greg@xiph.org>2012-07-18 01:42:00 +0400
commit37f56593a20242a08b5315d3b78820f6dc060996 (patch)
tree8ccc75278b6dc21fde0aedc3530df8baa6329e8b /src/opus_multistream.c
parent9621e7113d6bfbaee51a91891c307b1e1993168e (diff)
Convert some double constants to float.
Diffstat (limited to 'src/opus_multistream.c')
-rw-r--r--src/opus_multistream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opus_multistream.c b/src/opus_multistream.c
index 5b2519df..e1bd3a8b 100644
--- a/src/opus_multistream.c
+++ b/src/opus_multistream.c
@@ -348,7 +348,7 @@ int opus_multistream_encode(
ALLOC(in, frame_size*st->layout.nb_channels, float);
for (i=0;i<frame_size*st->layout.nb_channels;i++)
- in[i] = (1./32768)*pcm[i];
+ in[i] = (1.f/32768.f)*pcm[i];
ret = opus_multistream_encode_float(st, in, frame_size, data, max_data_bytes);
RESTORE_STACK;
return ret;
@@ -733,7 +733,7 @@ int opus_multistream_decode_float(OpusMSDecoder *st, const unsigned char *data,
if (ret > 0)
{
for (i=0;i<ret*st->layout.nb_channels;i++)
- pcm[i] = (1./32768.)*(out[i]);
+ pcm[i] = (1.f/32768.f)*(out[i]);
}
RESTORE_STACK;
return ret;