summaryrefslogtreecommitdiff
path: root/gr-audio/python/audio/__init__.py
blob: 435d7c591e38e5cc4f2b63325c863d967fe2000a (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_swig import *
except ImportError:
    dirname, filename = os.path.split(os.path.abspath(__file__))
    __path__.append(os.path.join(dirname, "..", "..", "swig"))
    from .audio_swig import *