From fa2d9e90ed530fad6525f01120595b5db0c4172c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Tue, 31 May 2022 15:37:54 +0200 Subject: [PATCH] Fix copyright in C++ files --- .../src/main/cpp/codec/CodecOggOpus.cpp | 18 +++++++++++++++--- .../src/main/cpp/codec/CodecOggOpus.h | 18 +++++++++++++++--- library/opusencoder/src/main/cpp/opuscodec.cpp | 16 ++++++++++++++++ .../app/features/voice/VoiceRecorderL.kt | 1 + 4 files changed, 47 insertions(+), 6 deletions(-) diff --git a/library/opusencoder/src/main/cpp/codec/CodecOggOpus.cpp b/library/opusencoder/src/main/cpp/codec/CodecOggOpus.cpp index c5f80ec989..3b28780ef0 100644 --- a/library/opusencoder/src/main/cpp/codec/CodecOggOpus.cpp +++ b/library/opusencoder/src/main/cpp/codec/CodecOggOpus.cpp @@ -1,6 +1,18 @@ -// -// Created by Jorge Martín Espinosa on 30/5/22. -// +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include "CodecOggOpus.h" #include "../utils/Logger.h" diff --git a/library/opusencoder/src/main/cpp/codec/CodecOggOpus.h b/library/opusencoder/src/main/cpp/codec/CodecOggOpus.h index 4696a86f64..5c94a0d874 100644 --- a/library/opusencoder/src/main/cpp/codec/CodecOggOpus.h +++ b/library/opusencoder/src/main/cpp/codec/CodecOggOpus.h @@ -1,6 +1,18 @@ -// -// Created by Jorge Martín Espinosa on 30/5/22. -// +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #ifndef ELEMENT_ANDROID_CODECOGGOPUS_H #define ELEMENT_ANDROID_CODECOGGOPUS_H diff --git a/library/opusencoder/src/main/cpp/opuscodec.cpp b/library/opusencoder/src/main/cpp/opuscodec.cpp index 32e4c07591..51bd656c5d 100644 --- a/library/opusencoder/src/main/cpp/opuscodec.cpp +++ b/library/opusencoder/src/main/cpp/opuscodec.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include "codec/CodecOggOpus.h" diff --git a/vector/src/main/java/im/vector/app/features/voice/VoiceRecorderL.kt b/vector/src/main/java/im/vector/app/features/voice/VoiceRecorderL.kt index e90df82383..69de911d60 100644 --- a/vector/src/main/java/im/vector/app/features/voice/VoiceRecorderL.kt +++ b/vector/src/main/java/im/vector/app/features/voice/VoiceRecorderL.kt @@ -124,6 +124,7 @@ class VoiceRecorderL( audioRecorder?.stop() } audioRecorder?.release() + audioRecorder = null noiseSuppressor?.release() noiseSuppressor = null