File: __init__.py

package info (click to toggle)
python-soundcard 0.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 312 kB
  • sloc: python: 1,870; ansic: 790; makefile: 53; sh: 49
file content (15 lines) | stat: -rw-r--r-- 489 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys

if sys.platform == 'linux':
    from soundcard.pulseaudio import *

    # also load main classes if building documentation:
    if 'sphinx' in sys.modules:
        from soundcard.pulseaudio import _Speaker, _Microphone, _Player, _Recorder

elif sys.platform == 'darwin':
    from soundcard.coreaudio import *
elif sys.platform == 'win32':
    from soundcard.mediafoundation import *
else:
    raise NotImplementedError('SoundCard does not support {} yet'.format(sys.platform))