summaryrefslogtreecommitdiff
path: root/gr-audio/python/audio/__init__.py
blob: 831311e9e4156cd6dbaf36d93b4b6c2d9fe7189f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# Copyright 2011 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
#

'''
Blocks to connect to audio sources (mic-in) and sinks (speaker-out)
ports on a computer.

The underlying hardware driver is system and OS dependent and this
module should automatically discover the correct one to use.
'''
from __future__ import unicode_literals
import os

try:
   from .audio_python import *
except ImportError:
   dirname, filename = os.path.split(os.path.abspath(__file__))
   __path__.append(os.path.join(dirname, "bindings"))
   from .audio_python import *