Git Product home page Git Product logo

chez-mpg123's Introduction

Chez-mpg123

About

This project provides bindings to the mpg123 library for Chez Scheme. It is currently a work in progress.

Function Status

Complete

  • [X] Library and handle setup
  • [X] Error Handling
  • [X] Decoder Selection
  • [X] Output Audio Format
  • [X] File Input and Decoding
  • [ ] Position and Seeking
  • [ ] Volume and Equalizer
  • [ ] Status and Information
  • [ ] Metadata Handling
  • [ ] Advanced Parameter API
  • [X] Low Level I/O

Differences from C API

Overall the biggest change is in the naming: the mpg123 prefix has been removed and complete words are favored. mpg123_init becomes initialize (with R6RS prefixes it’s trivial to make it mpg123:initialize). Additionally, snake case is being used for multi-word names. Lastly, because of the removed prefix, generic name’s like open, read, and write, were given more specific names, open-stream, read-stream, and write-stream respectively

Some functions have API’s which aren’t super friendly to the “Scheme way”, and would have required consumers of the library to manually allocate and reference memory. Functions with different API’s are outlined here.

get-format

Get format has been turned into a continuation-passing-style (CPS) function:

(mpg123:get-format handle (lambda (rate channels encoding) ... ))

with rate channels and encoding then made available inside the lambda.

chez-mpg123's People

Contributors

vidjuheffex avatar

Stargazers

 avatar

Watchers

 avatar  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.