summaryrefslogtreecommitdiffstats
path: root/binding/radio_output.h
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2017-05-22 18:05:21 -0400
committerScott Murray <scott.murray@konsulko.com>2017-05-23 18:53:26 -0400
commit9aebdfa77d57426fdaaab123d7c91c32a20e87be (patch)
tree68215fa3a0f70171bf0e05a2ce41ac2e924939ce /binding/radio_output.h
parent9f227dc72607106641269560608b0297358adfa8 (diff)
Rework to add and use a binding for radio controldab_3.99.1dab/3.99.13.99.1
A radio binding has been added in the new binding directory, and the application has been reworked to use it. The binding uses a modified version of the rtl_fm code used in the qtmultimedia radio plugin that was previously used, and some new code has been added to output to PulseAudio using the asynchronous API to ensure compatibility with stream corking. The rtl_fm code has been enhanced to add seeking support, and the application has been tweaked to use it. Bug-AGL: SPEC-581 Change-Id: I011e98374accc2cad2b36c93ac800948ee51f2aa Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'binding/radio_output.h')
-rw-r--r--binding/radio_output.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/binding/radio_output.h b/binding/radio_output.h
new file mode 100644
index 0000000..2192811
--- /dev/null
+++ b/binding/radio_output.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2017 Konsulko Group
+ *
+ * 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 _RADIO_OUTPUT_H
+#define _RADIO_OUTPUT_H
+
+int radio_output_open(void);
+
+int radio_output_start(void);
+
+void radio_output_stop(void);
+
+void radio_output_close(void);
+
+int radio_output_write(void *buf, int len);
+
+#endif /* _RADIO_OUTPUT_H */
+