1 /*
2  * Copyright 2020 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #include <jni.h>
17 
18 #include <android/log.h>
19 
20 #include "DefaultAudioSink.h"
21 
22 static const char * const TAG = "DefaultAudioSink";
23 
start()24 void DefaultAudioSink::start() {
25 
26 }
27 
stop()28 void DefaultAudioSink::stop() {
29 
30 }
31 
push(float * audioData,int numChannels,int numFrames)32 void DefaultAudioSink::push(float* audioData, int numChannels, int numFrames) {
33     // __android_log_print(ANDROID_LOG_INFO, TAG, "process()");
34 }
35 
36 extern "C" {
37 JNIEXPORT jlong JNICALL
Java_org_hyphonate_megaaudio_recorder_sinks_NopAudioSinkProvider_allocOboeSinkN(JNIEnv * env,jobject thiz)38 Java_org_hyphonate_megaaudio_recorder_sinks_NopAudioSinkProvider_allocOboeSinkN(
39         JNIEnv *env, jobject thiz) {
40     __android_log_print(ANDROID_LOG_INFO, TAG, "Java_org_hyphonate_megaaudio_recorder_sinks_NopAudioSinkProvider_allocOboeSinkN");
41     DefaultAudioSink* sink = new DefaultAudioSink();
42     return (jlong)sink;
43 }
44 } // extern "C"
45