def __init__(self): # TODO: better exception handling obj = lib.groove_sink_create() assert obj != ffi.NULL self._obj = ffi.gc(obj, lib.groove_sink_destroy) self._attach_callbacks() self._playlist = None
def __init__(self, base64_encode=True): # TODO: error handling obj = lib.groove_fingerprinter_create() assert obj != ffi.NULL self._obj = ffi.gc(obj, lib.groove_fingerprinter_destroy) self._playlist = None self.base64_encode = base64_encode
def __init__(self): # TODO: error handling obj = lib.groove_player_create() assert obj != ffi.NULL self._obj = ffi.gc(obj, lib.groove_player_destroy) self._playlist = None self.device = Player.dummy_device
def __init__(self): # TODO: better exception handling obj = lib.groove_encoder_create() assert obj != ffi.NULL self._obj = ffi.gc(obj, lib.groove_encoder_destroy) self._playlist = None
def __init__(self): # TODO: error handling obj = lib.groove_loudness_detector_create() assert obj != ffi.NULL self._obj = ffi.gc(obj, lib.groove_loudness_detector_destroy) self._playlist = None
def __init__(self): obj = lib.groove_playlist_create() # TODO: raise proper exception # TODO: read error message from AV_LOG assert obj != ffi.NULL self._obj = ffi.gc(obj, lib.groove_playlist_destroy)