Skip to content

Opus error when compiling #3

@trevorwatkins1129

Description

@trevorwatkins1129
godot-2-3ds git:(master) scons platform=3ds target=release llvm=yes
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling ==> thirdparty/opus/silk/quant_LTP_gains.c
In file included from thirdparty/opus/silk/quant_LTP_gains.c:32:
thirdparty/opus/silk/quant_LTP_gains.c: In function 'silk_quant_LTP_gains':
thirdparty/opus/silk/quant_LTP_gains.c:86:17: error: passing argument 3 of 'silk_VQ_WMat_EC_c' from incompatible pointer type [-Wincompatible-pointer-types]
   86 |                 &gain_Q7,               /* O    sum of absolute LTP coefficients                        */
      |                 ^~~~~~~~
      |                 |
      |                 opus_int32 * {aka long int *}
thirdparty/opus/silk/main.h:237:57: note: in definition of macro 'silk_VQ_WMat_EC'
  237 |     ((void)(arch),silk_VQ_WMat_EC_c(ind, rate_dist_Q14, gain_Q7, in_Q14, W_Q18, cb_Q7, cb_gain_Q7, cl_Q5, \
      |                                                         ^~~~~~~
thirdparty/opus/silk/main.h:223:34: note: expected 'int *' but argument is of type 'opus_int32 *' {aka 'long int *'}
  223 |     opus_int                    *gain_Q7,                       /* O    sum of absolute LTP coefficients            */
scons: *** [thirdparty/opus/silk/quant_LTP_gains.3ds.opt.32.o] Error 1
scons: building terminated because of errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions