diff options
Diffstat (limited to 'gr-audio/doc')
-rw-r--r-- | gr-audio/doc/.gitignore | 2 | ||||
-rw-r--r-- | gr-audio/doc/Makefile.am | 27 | ||||
-rw-r--r-- | gr-audio/doc/README.audio | 20 | ||||
-rw-r--r-- | gr-audio/doc/audio.dox | 51 |
4 files changed, 100 insertions, 0 deletions
diff --git a/gr-audio/doc/.gitignore b/gr-audio/doc/.gitignore new file mode 100644 index 000000000..b336cc7ce --- /dev/null +++ b/gr-audio/doc/.gitignore @@ -0,0 +1,2 @@ +/Makefile +/Makefile.in diff --git a/gr-audio/doc/Makefile.am b/gr-audio/doc/Makefile.am new file mode 100644 index 000000000..959a9044f --- /dev/null +++ b/gr-audio/doc/Makefile.am @@ -0,0 +1,27 @@ +# +# Copyright 2011 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. +# + +include $(top_srcdir)/Makefile.common + +SUBDIRS = + +dist_gr_doc_DATA = \ + README.audio diff --git a/gr-audio/doc/README.audio b/gr-audio/doc/README.audio new file mode 100644 index 000000000..ebd0fe5d7 --- /dev/null +++ b/gr-audio/doc/README.audio @@ -0,0 +1,20 @@ +This is the gr-audio package. This package includes all of the +supported audio interfaces, including: + - alsa + - oss + - jack + - portaudio + - osx + - windows + +Typically, the audio package will auto-detect the proper driver to use +based on the system it is run on. Import this package with: + + from gnuradio import audio + +See the Doxygen documentation for details about the blocks available +in this package. A quick listing of the details can be found in Python +after importing by using: + + help(audio) + diff --git a/gr-audio/doc/audio.dox b/gr-audio/doc/audio.dox new file mode 100644 index 000000000..3a0cb5e48 --- /dev/null +++ b/gr-audio/doc/audio.dox @@ -0,0 +1,51 @@ +/*! \page page_audio Audio Interface + +\section Introduction + +This is the gr-audio package. This package includes all of the +supported audio interfaces, including: + +\li alsa +\li oss +\li jack +\li portaudio +\li osx +\li windows + +\code + from gnuradio import audio +\endcode + +See the Doxygen documentation for details about the blocks available +in this package. The relevant blocks are listed in the \ref audio_blk group. + +A quick listing of the details can be found in Python after importing +by using: + +\code + help(digital) +\endcode + + +\section Usage +For an audio source, a typical OptionParser option and it's use looks +like: + +\code + parser.add_option("-O", "--audio-output", type="string", default="", + help="pcm device name. E.g., hw:0,0 or surround51 or /dev/dsp") + audio_rate = 32e3 + audio_sink = audio.sink (int (audio_rate), options.audio_output) +\endcode + +Similarly, an audio sink would have a typical OptionParser option and +its use would look like: + +\code + parser.add_option("-I", "--audio-input", type="string", default="", + help="pcm input device name. E.g., hw:0,0 or /dev/dsp") + audio_rate = 32e3 + audio_source = audio.source(int(audio_rate), audio_input) +\endcode + +*/ |