コード例 #1
0
ファイル: upload.py プロジェクト: wroldwiedbwe/linux-minidisc
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)
コード例 #2
0
ファイル: eraseDisc.py プロジェクト: mhwong/linux-minidisc
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()
コード例 #3
0
ファイル: dump_md.py プロジェクト: AlexanderS/linux-minidisc
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()
コード例 #4
0
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)
コード例 #5
0
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()
コード例 #6
0
ファイル: get_audio.py プロジェクト: JazzMaster/Linux-NetMD
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
コード例 #7
0
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)
コード例 #8
0
ファイル: lsmd.py プロジェクト: AlexanderS/linux-minidisc
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)
コード例 #9
0
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)
コード例 #10
0
def main(bus=None, device_address=None):
    context = usb1.LibUSBContext()
    for md in libnetmd.iterdevices(context,
                                   bus=bus,
                                   device_address=device_address):
        MDctl(md)
コード例 #11
0
ファイル: mdctl.py プロジェクト: AlexanderS/linux-minidisc
def main(bus=None, device_address=None):
    context = usb1.LibUSBContext()
    for md in libnetmd.iterdevices(context, bus=bus,
                                   device_address=device_address):
        MDctl(md)
コード例 #12
0
ファイル: upload.py プロジェクト: AlexanderS/linux-minidisc
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)