def main(bus=None, device_address=None, track_range=None): context = usb1.LibUSBContext() for md in libnetmd.iterdevices(context, bus=bus, device_address=device_address): md_iface = libnetmd.NetMDInterface(md) MDDump(md_iface, track_range)
def main(bus=None, device_address=None): context = usb1.LibUSBContext() for md in libnetmd.iterdevices(context, bus=bus, device_address=device_address): md_iface = libnetmd.NetMDInterface(md) md_iface.eraseDisc()
def main(bus=None, device_address=None, ext='ogg', track_range=None, title=None): context = usb1.LibUSBContext() for md in libnetmd.iterdevices(context, bus=bus, device_address=device_address): md_iface = libnetmd.NetMDInterface(md) try: MDDump(md_iface, ext, track_range, title) finally: md_iface.stop()
def download(filename,title,wireformat=libnetmd.WIREFORMAT_PCM,bus=None,device_address=None): print "Download request received for file %s and title %s" % (filename,title) context = usb1.LibUSBContext() for md in libnetmd.iterdevices(context, bus=bus, device_address=device_address): md_iface = libnetmd.NetMDInterface(md) mdtrack = MDTrack(filename,title,wireformat) DownloadHack(md_iface,mdtrack)
def main(bus=None, device_address=None, ext='wav', track_range=None, title=None): context = usb1.LibUSBContext() try: for md in libnetmd.iterdevices(context, bus=bus, device_address=device_address): md_iface = libnetmd.NetMDInterface(md) try: MDDump(md_iface, ext, track_range, title) finally: md_iface.stop() except IOError: print 'no MD-- connect a NetMD Device' return finally: return
def main(bus=None, device_address=None): context = usb1.LibUSBContext() for md in libnetmd.iterdevices(context, bus=bus, device_address=device_address): md_iface = libnetmd.NetMDInterface(md) DownloadHack(md_iface)
def main(bus=None, device_address=None, show_uuids=False): context = usb1.LibUSBContext() for md in libnetmd.iterdevices(context, bus=bus, device_address=device_address): listMD(md, show_uuids)
def main(bus=None, device_address=None): context = usb1.LibUSBContext() for md in libnetmd.iterdevices(context, bus=bus, device_address=device_address): MDctl(md)