Giter Site home page Giter Site logo

md.net's Introduction

MD.Net

A package containing binaries and a managed wrapper API for minidisc devices. The binaries are from this project: https://github.com/gavinbenda/platinum-md

A simple example;

//Read device and disc info.
var device = DeviceManager.Default.GetDevices().SingleOrDefault();
var currentDisc = DiscManager.Default.GetDisc(device);

//Create an updatable copy of the disc.
var updatedDisc = currentDisc.Clone();

//Set the title and erase existing tracks.
updatedDisc.Title = "MD.Net.Tests - " + Math.Abs(DateTime.Now.Ticks);
updatedDisc.Tracks.Clear();

//Add 3 new tracks (SP).
foreach (var fileName in new[] { "Track_001.wav", "Track_002.wav", "Track_003.wav" })
{
    var track = updatedDisc.Tracks.Add(fileName, Compression.None);
    track.Name = "MD.Net.Tests - " + updatedDisc.Tracks.Count;
}

//Compile the actions, these may be inspected before writing.
var actions = ActionBuilder.Default.GetActions(device, currentDisc, updatedDisc);
//Apply changes.
var result = DiscManager.Default.ApplyActions(device, actions, Status.None, true);

Input files must be WAVE (or ATRAC so long as it matches the specified compression), 44.1kHz, 16 bit, stereo. They may be converted depending on the Compression flag (SP, LP2, LP4). Progress for various operations (Action, Transfer, Encode) are emitted to your IStatus implementation.

md.net's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.