From ea2de9ea6922dace03684fb0dd97e913aa45c9ec Mon Sep 17 00:00:00 2001 From: Maciej Makowski Date: Fri, 19 Jul 2024 18:07:10 +0200 Subject: [PATCH] fix: fixed imports and removed useful logs --- .../java/com/audiocontext/nodes/oscillator/OscillatorNode.kt | 4 ---- cpp/AudioContext/AudioContextWrapper.h | 1 - cpp/AudioDestinationNode/AudioDestinationNodeWrapper.h | 1 - cpp/OscillatorNode/OscillatorNodeWrapper.h | 1 - 4 files changed, 7 deletions(-) diff --git a/android/src/main/java/com/audiocontext/nodes/oscillator/OscillatorNode.kt b/android/src/main/java/com/audiocontext/nodes/oscillator/OscillatorNode.kt index 6324d2bc..02eb5261 100644 --- a/android/src/main/java/com/audiocontext/nodes/oscillator/OscillatorNode.kt +++ b/android/src/main/java/com/audiocontext/nodes/oscillator/OscillatorNode.kt @@ -75,8 +75,6 @@ class OscillatorNode(context: BaseAudioContext) : AudioScheduledSourceNode(conte Log.e("OscillatorNode", "Thread sleep error: ${e.message}") } - Log.e("OscillatorNode", "Start playing") - isPlaying = true audioTrack.play() generateSound() @@ -95,8 +93,6 @@ class OscillatorNode(context: BaseAudioContext) : AudioScheduledSourceNode(conte Log.e("OscillatorNode", "Thread sleep error: ${e.message}") } - Log.e("OscillatorNode", "Stop playing") - isPlaying = false audioTrack.stop() playbackThread?.join() diff --git a/cpp/AudioContext/AudioContextWrapper.h b/cpp/AudioContext/AudioContextWrapper.h index be62fd5d..1efbad7c 100644 --- a/cpp/AudioContext/AudioContextWrapper.h +++ b/cpp/AudioContext/AudioContextWrapper.h @@ -1,6 +1,5 @@ #pragma once -#include #include #include "OscillatorNodeWrapper.h" #include "AudioDestinationNodeWrapper.h" diff --git a/cpp/AudioDestinationNode/AudioDestinationNodeWrapper.h b/cpp/AudioDestinationNode/AudioDestinationNodeWrapper.h index d62395f6..d74e032c 100644 --- a/cpp/AudioDestinationNode/AudioDestinationNodeWrapper.h +++ b/cpp/AudioDestinationNode/AudioDestinationNodeWrapper.h @@ -1,6 +1,5 @@ #pragma once -#include #include #ifdef ANDROID diff --git a/cpp/OscillatorNode/OscillatorNodeWrapper.h b/cpp/OscillatorNode/OscillatorNodeWrapper.h index f4b38e48..39cfdc44 100644 --- a/cpp/OscillatorNode/OscillatorNodeWrapper.h +++ b/cpp/OscillatorNode/OscillatorNodeWrapper.h @@ -1,6 +1,5 @@ #pragma once -#include #include #include "AudioDestinationNodeWrapper.h"