Skip to content

Play & organize musical tracks with visuals using Win32 Multimedia API

License

Notifications You must be signed in to change notification settings

bijoy26/music-player-console

Repository files navigation

Music-Player-Console-Application-in-C++-

An application to organize and play musical tracks along with corresponding artworks using OOP concepts and Win32 API (Windows Multimedia).

This mini (and understandably buggy) project has been developed in response to my first introduction to Object Oriented Programming course.

music player app showing artworks


Dependencies at a glance

Click to expand dependency list
  • Win32 API : Microsoft's core set of application programming interfaces available in the Windows operating systems.

    • Required header files-
      • Windows.h
      • MMSystem.h
    • Required linker libraries-
      • gdi32
      • comdlg32
      • oleaut32
      • ole32
      • uuid
  • WinBGIm Library : A Windows based C++ graphics library based on the classic Borland Graphics Interface.

    • Required header files-
      • graphics.h
      • winbgim.h
      • MMSystem.h
    • Required static link library file-
      • libbgi.a
    • Required linker library-
      • bgi

Environment Setup

Click to expand setup instructions
  • Import Headers

    • From WinBGIm_GCC47 folder, copy graphics and winbgim header files, goto C:\Program Files (x86)\CodeBlocks\MinGW\include and paste them
    • From WinBGIm_GCC47 folder, copy libbgi.a goto C:\Program Files (x86)\CodeBlocks\MinGW\lib and paste it
  • Configure Codeblocks

    • From codeblocks IDE, goto Settings > Compiler > Linker Settings. Click on Add, write "winmm" and then press OK.
  • Link Libraries

    • From WinBGIm_GCC47 folder,open 'linker.txt' and copy all the contents.
    • From codeblocks IDE, goto Settings > Compiler > Linker Settings. `
    • Under other linker options, paste the copied text
    • Under Link Libraries, click <kbdAdd,click browse and select C:\Program Files (x86)\CodeBlocks\MinGW\lib

FAQ

1. What does TrackInfo file do?

TrackInfo is a CSV file that contains all the track information in the format "TRACK_NAME, ALBUM_NAME, ALBUM_COVER_TITLE"

2. How do I add my new track to the library?

In order to add a new track in the library, paste the track (WAV format) in Audio Library subfolder and Cover art (JPG) in Album Covers subfolder, then add the track related information by pressing option 6 in the program or directly editing the TrackInfo text file.

NOTE: Added track title should be followed by 'wav' and cover art should be followed by 'jpg' extension.

3. The tracks are not playing properly. HELP!

If the track doesn't play by itself, please uncomment (remove '//' characters) the system("pause") statement in LINE 68 of music player beta.cpp file.


Credits

About

Play & organize musical tracks with visuals using Win32 Multimedia API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages