audio blocks: note to alsa users, hide the device name when empty
authorjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 5 Mar 2009 22:38:09 +0000 (22:38 +0000)
committerjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Thu, 5 Mar 2009 22:38:09 +0000 (22:38 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10562 221aa14e-8319-0410-a670-987f0aec2ac5

grc/data/platforms/python/blocks/audio_sink.xml
grc/data/platforms/python/blocks/audio_source.xml

index 56c5980fc6a234214a1d17360b3d73dfb1ce065d..decaf2a08d6e869ccc31f6ab6a409207644be5c3 100644 (file)
                <key>device_name</key>
                <value></value>
                <type>string</type>
+               <hide>#if $device_name.eval 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>
@@ -75,7 +77,7 @@
 Not all sampling rates will be supported by your hardware.
 
 Leave the device name blank to choose deafult audio device. \
-Audio device names may look like hw:0,0
+ALSA users with audio trouble may try setting the device name to plughw:0,0
 
 The audio sink can have multiple inputs depending upon your hardware. \
 For example, set the inputs to 2 for stereo audio.
index 2ae74e4912e4c907a8c3e8b5fd14ac7d239dc770..21407dccdecc3028c9aff15912a1b0066ce33023 100644 (file)
                <key>device_name</key>
                <value></value>
                <type>string</type>
+               <hide>#if $device_name.eval 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>
@@ -75,7 +77,7 @@
 Not all sampling rates will be supported by your hardware.
 
 Leave the device name blank to choose deafult audio device. \
-Audio device names may look like hw:0,0
+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.