Code Monkey home page Code Monkey logo

minimp3-delphi's Introduction

minimp3-delphi

A demo program for Delphi thats play mp3 files with DirectSound/OpenAl by using the famous minimp3 library built in. No external mp3 decoder required.

For OpenAl playback make sure you have the required OpenAl libraries installed.

How-to run

You need a copy of Delphi XE2 or greater. Just open the Project file and Run.

The demo program includes follow functionalities

First select your Audio Renderer DirectShow or OpenAl. Then drag and drop a mp3 file into application container.

  • Chunk Stream Play (DirectShow/OpenAl)
    • decodes the mp3 frame by frame to a small buffer and streams directly to a DirectSound/OpenAl buffer. Low Memory usage.
  • Stream Play (DirectShow)
    • decodes the mp3 frame by frame into a buffer before playing and streams this to a DirectSound buffer. High Memory usage.
  • Write to wav
    • decodes the mp3 file and writeout to a playable wave file.

Remarks

  • Yes i know, the source miss some checks and cleanup steps.
  • The DirectShow Playback is timer based and the OpenAl is thread based. Thats not renderer dependent, just different methods for streaming data. It can be exchanged between renderer.

How-to build minimp3 library

To build a installed version of GCC 4.8.1 are required, use the batch buildlib.bat that compile minimp3lib.cpp file.

Remarks

Builds works only with GCC v4.8.1 32-bit. Depends on required ___chkstk_ms. I took this from lz4-delphi, i have no idea how to extract this dependency from libgcc.a. Leave a comment if you know how to build the lib without or with other versions.

Dependencies

minimp3-delphi's People

Contributors

dasziesel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

cybersys

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.