diff options
author | Gregory Maxwell <greg@xiph.org> | 2012-07-18 01:40:55 +0400 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2012-07-18 01:42:00 +0400 |
commit | 37f56593a20242a08b5315d3b78820f6dc060996 (patch) | |
tree | 8ccc75278b6dc21fde0aedc3530df8baa6329e8b /src/opus_multistream.c | |
parent | 9621e7113d6bfbaee51a91891c307b1e1993168e (diff) |
Convert some double constants to float.
Diffstat (limited to 'src/opus_multistream.c')
-rw-r--r-- | src/opus_multistream.c | 4 |
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; |