Giter VIP home page Giter VIP logo

command-line-music-player-climp's Introduction

Command Line Music Player CLIMP

This is a project with C++ to create a command line integrated music player using MciSendStrings

Sample Screenshots

1

2

3

4

Introduction:

The Project to be developed is a Command Line Based Music Player completely written in C++. It should play, pause and shuffle all music files in a specific directory and all it’s interface should be in C++ command line terminal. We have divided the code into three files namely files.h , define.h , and main.cpp so as to improve code readability and debugging.

Objective:

The main objective is to play any non variable bit rate mp3 file using mciSendStrings() function defined in C++ windows.h header file.

Instructions

  1. To run this code in visual studio code you have to add linker library -lwinmm It's a Windows Multimedia Library

  2. If you are using code blocks or Visual Studio IDE you can directly add path of lwinmm in linker library options.

  3. If you want to add more songs you can add it in songs folder after converting mp3 files to mono bitrate.

Working Environment:

  1. Visual Studio Code - 1.56.2
  2. C++ standard 17
  3. Operating System – Windows 10 64 Bit
  4. C++ Compiler – MinGW gcc x64

References

  1. CodeProject - https://www.codeproject.com/Articles/14709/Playing-MP3s-using-MCI
  2. Stackoverflow - https://stackoverflow.com/questions/22253074/how-to-play-or-open-mp3-or-wav-sound-file-in-c-program
  3. Codespeedy - https://www.codespeedy.com/play-a-part-of-an-mp3-file-in-cpp/
  4. Github - microsoft/vscode-cpptools#6191

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.