This commit is contained in:
Isaac 2025-06-28 13:14:15 +02:00
parent 8b2bcc462c
commit 7512f7f017
16 changed files with 66 additions and 35 deletions

View file

@ -71,6 +71,10 @@
#elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */
# include <sys/types.h>
# include <_types/_uint16_t.h>
# include <_types/_uint32_t.h>
# include <_types/_uint64_t.h>
typedef int16_t ogg_int16_t;
typedef uint16_t ogg_uint16_t;
typedef int32_t ogg_int32_t;

View file

@ -102,7 +102,10 @@ void compute_dense(const DenseLayer *layer, float *output, const float *input)
for (i=0;i<N;i++)
output[i] = relu(output[i]);
} else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnull-dereference"
*(int*)0=0;
#pragma clang diagnostic pop
}
}
@ -148,7 +151,12 @@ void compute_gru(const GRULayer *gru, float *state, const float *input)
if (gru->activation == ACTIVATION_SIGMOID) sum = sigmoid_approx(WEIGHTS_SCALE*sum);
else if (gru->activation == ACTIVATION_TANH) sum = tansig_approx(WEIGHTS_SCALE*sum);
else if (gru->activation == ACTIVATION_RELU) sum = relu(WEIGHTS_SCALE*sum);
else *(int*)0=0;
else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnull-dereference"
*(int*)0=0;
#pragma clang diagnostic pop
}
h[i] = z[i]*state[i] + (1-z[i])*sum;
}
for (i=0;i<N;i++)

View file

@ -3127,6 +3127,7 @@ objc_library(
"-Wno-all",
"-Ithird-party/webrtc/libsrtp/third_party/libsrtp/include",
"-Ithird-party/webrtc/libsrtp/third_party/libsrtp/crypto/include",
"-Ithird-party/webrtc/libsrtp",
"-Ithird-party/webrtc/webrtc/",
"-Ithird-party/libyuv",
"-Ithird-party/webrtc/absl",
@ -3163,7 +3164,7 @@ objc_library(
":field_trials_header",
"//third-party/webrtc/crc32c",
"//third-party/webrtc/libsrtp_config",
"//third-party/webrtc/rnnoise",
"//third-party/webrtc/rnnoise:webrtc_rnnoise",
"//third-party/webrtc/pffft",
"//third-party/webrtc/libsrtp",
"//third-party/webrtc/absl",

View file

@ -1,6 +1,6 @@
cc_library(
name = "rnnoise",
name = "webrtc_rnnoise",
hdrs = [
"third_party/rnnoise/src/rnn_vad_weights.h",
"third_party/rnnoise/src/rnn_activations.h",