Hello,
this is Win64 Basic Mp3 Player.See, runtime and source code video on youtube, named:
Win64 Basic Mp3 PlayerIn video you can see:
- visually attractive source code
- how i compile
- how i run and test
.formal_descriptor:
; ------------------------------------- ----------------------- ;
;
This is: Win64 Basic Mp3 Player ;
; Author: J.K. Encryptor256 ;
; Date: February 16, 2014 ;
; ;
; ------------------------------------- ----------------------- ;
; Video resultion: 1680x1050 ;
; ;
; Using custom screen recorder made via Win API. ;
; Video recorder is not recording sound, ;
; so you will not hear it. ;
; So, did i sprayed it clear?
;
; ;
; ------------------------------------- ----------------------- ;
;
Description: ;
; Create program soundplayer.exe, which plays mp3 file. ;
; Run: "soundplayer.exe file.mp3" ;
; ;
; ------------------------------------- ----------------------- ;
;
Using: ;
; ;
; 1. The Netwide Assembler. ;
; The Netwide Assembler, NASM, is an 80x86 and x86-64 ;
; assembler designed for portability and modularity. ;
; (Web:
http://nasm.us/) ;
; ;
; 2. MinGW: GCC, x64. ;
; Mingw-w64 delivers runtime, headers and libs for ;
; developing both 64 bit (x64) and 32 bit (x86) ;
; windows applications using GCC and other ;
; free software compilers. ;
; (Web:
http://mingw-w64.sourceforge.net/) ;
; ;
; 3. SDL2, x64. ;
; Simple DirectMedia Layer is a cross-platform ;
; development library designed to provide low level ;
; access to audio, keyboard, mouse, joystick, and ;
; graphics hardware via OpenGL and Direct3D. ;
; (Web:
http://www.libsdl.org/) ;
; ;
; 4. mpg123, x64. ;
; Fast console MPEG Audio Player and decoder library. ;
; (Web:
http://www.mpg123.de/) ;
; ;
; ------------------------------------- ----------------------- ;
;
Compile and Build: ;
; Current directory content: ;
; 1. libmpg123-0.dll ;
; 2. SDL2.dll ;
; 3. soundplayer.asm ;
; 4. cashregister.mp3 ;
; ;
; * Mp3 obtained from: ;
; "
http://eng.universal-soundbank.com/money.htm" ;
; ;
; ;
; 1. Compile, NASM, one command line[1.1 - 1.4]: ;
; 1.1. nasm.exe ;
; 1.2. -f win64 ;
; 1.3. -o soundplayer.obj ;
; 1.4. soundplayer.asm ;
; ;
; 2. Build, GCC, one command line[2.1 - 2.4]: ;
; 2.1. gcc.exe ;
; 2.2. -L"." ;
; 2.3. -lsdl2 -llibmpg123-0 ;
; 2.4. -o soundplayer.exe soundplayer.obj ;
; ;
; ------------------------------------- ----------------------- ;
Added attachment, named: "win64_basic_mp3_player.zip",
which includes all files required to compile and build.
+ Project Manager 1 node file, named: "soundplayer.node" (See screenshot).
+ Compile And Build, bat files.
Additional info:
Sometimes when playing mp3,
library mpg123 throws some message out,
complains, that mp3 provided, have some problems.
But it kept playing anyways.
And that's it,
Encryptor256.