summaryrefslogtreecommitdiff
path: root/gr-audio/grc/audio_source.xml
diff options
context:
space:
mode:
authorJohnathan Corgan2011-03-14 09:41:14 -0700
committerJohnathan Corgan2011-03-14 09:41:14 -0700
commit2ce363d4e82c2f7b7f83f1a9283c33b9793bac2d (patch)
treef2d3de51a8360b95347797a361cbc2768d0e5e1a /gr-audio/grc/audio_source.xml
parent07bd878bc30f7ab54afc1e2f0055419388c3c992 (diff)
parentd1f8773301dba43e382a88d1fccb52a6197412c7 (diff)
downloadgnuradio-2ce363d4e82c2f7b7f83f1a9283c33b9793bac2d.tar.gz
gnuradio-2ce363d4e82c2f7b7f83f1a9283c33b9793bac2d.tar.bz2
gnuradio-2ce363d4e82c2f7b7f83f1a9283c33b9793bac2d.zip
Merge remote branch 'jblum/wip/gr-audio' into wip/gr-audio
* jblum/wip/gr-audio: audio: high prio for platform specific audio osx audio: added windows and osx audio source files audio: added config checks for other audios, added jack and port audio: make prefs look like old audio, removed old audio.py audio: register arches with priorities, ex: prefer alsa over oss audio: added oss support to gr-audio audio: use conf files to specify default arch audio: moved the grc audio blocks into gr-audio dir audio: moved alsa support files into subdirectory audio: work on swig support, it imports audio: work to get alsa support in, lets see if this works before adding more audio: added audio factory registry and top level includes audio: skeleton for gr-audio component
Diffstat (limited to 'gr-audio/grc/audio_source.xml')
-rw-r--r--gr-audio/grc/audio_source.xml86
1 files changed, 86 insertions, 0 deletions
diff --git a/gr-audio/grc/audio_source.xml b/gr-audio/grc/audio_source.xml
new file mode 100644
index 000000000..59b375244
--- /dev/null
+++ b/gr-audio/grc/audio_source.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Audio Source
+###################################################
+ -->
+<block>
+ <name>Audio Source</name>
+ <key>audio_source</key>
+ <category>Sources</category>
+ <import>from gnuradio import audio</import>
+ <make>audio.source($samp_rate, $device_name, $ok_to_block)</make>
+ <param>
+ <name>Sample Rate</name>
+ <key>samp_rate</key>
+ <value>samp_rate</value>
+ <type>int</type>
+ <option>
+ <name>16KHz</name>
+ <key>16000</key>
+ </option>
+ <option>
+ <name>22.05KHz</name>
+ <key>22050</key>
+ </option>
+ <option>
+ <name>24KHz</name>
+ <key>24000</key>
+ </option>
+ <option>
+ <name>32KHz</name>
+ <key>32000</key>
+ </option>
+ <option>
+ <name>44.1KHz</name>
+ <key>44100</key>
+ </option>
+ <option>
+ <name>48KHz</name>
+ <key>48000</key>
+ </option>
+ </param>
+ <param>
+ <name>Device Name</name>
+ <key>device_name</key>
+ <value></value>
+ <type>string</type>
+ <hide>#if $device_name() then 'none' else 'part'#</hide>
+ </param>
+ <param>
+ <name>OK to Block</name>
+ <key>ok_to_block</key>
+ <value>True</value>
+ <type>enum</type>
+ <hide>part</hide>
+ <option>
+ <name>Yes</name>
+ <key>True</key>
+ </option>
+ <option>
+ <name>No</name>
+ <key>False</key>
+ </option>
+ </param>
+ <param>
+ <name>Num Outputs</name>
+ <key>num_outputs</key>
+ <value>1</value>
+ <type>int</type>
+ </param>
+ <check>0 &lt; $num_outputs</check>
+ <source>
+ <name>out</name>
+ <type>float</type>
+ <nports>$num_outputs</nports>
+ </source>
+ <doc>
+Not all sampling rates will be supported by your hardware.
+
+Leave the device name blank to choose deafult audio device. \
+ALSA users with audio trouble may try setting the device name to plughw:0,0
+
+The audio source can have multiple outputs depending upon your hardware. \
+For example, set the outputs to 2 for stereo audio.
+ </doc>
+</block>