File: fake__soundfile.py

package info (click to toggle)
pysoundfile 0.13.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: python: 2,017; makefile: 160; sh: 21
file content (24 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""Mock module for Sphinx autodoc."""

import ctypes
import ctypes.util

# Monkey-patch ctypes to disable searching for libsndfile
ctypes.util.find_library = lambda _: NotImplemented


class ffi(object):

    def dlopen(self, _):
        return self

    def string(self, _):
        return b'not implemented'

    def sf_version_string(self):
        return NotImplemented

    SFC_GET_FORMAT_INFO = NotImplemented


ffi = ffi()