2018-10-01 20:19:57 +02:00
|
|
|
;******************************************************************************
|
2024-05-29 21:05:57 +02:00
|
|
|
; project name: SuperMP3
|
|
|
|
; target platform: MenuetOS, x86 (IA-32), x86-64 architectures
|
|
|
|
; compiler: flat assembler 1.64
|
2018-10-01 20:19:57 +02:00
|
|
|
; version: 0.65
|
2024-05-29 21:05:57 +02:00
|
|
|
; last update: 5th September 2005
|
|
|
|
; maintained by: Sergey Kuzmin aka Wildwest
|
|
|
|
; e-mail: kuzmin_serg@list.ru
|
2018-10-01 20:19:57 +02:00
|
|
|
;******************************************************************************
|
2024-05-29 21:05:57 +02:00
|
|
|
; Summary:
|
2018-10-01 20:19:57 +02:00
|
|
|
; initial reader for mp3's headers
|
|
|
|
; can read mostly needed parts from headers of almost all mp3 files
|
|
|
|
; can be used in tag editor, mp3 player or converter later
|
|
|
|
; License: GPL & LGPL
|
|
|
|
;******************************************************************************
|
|
|
|
|
|
|
|
;--------------------------------------------------------------------------------------
|
2024-05-29 21:05:57 +02:00
|
|
|
;HISTORY:
|
2018-10-01 20:19:57 +02:00
|
|
|
|
|
|
|
;0.7: MP3INFO 23/09/2018
|
|
|
|
Sergey Efremenkov aka theonlymirage
|
|
|
|
adopted app to use system f70 instead of old f58
|
|
|
|
Kiril Lipatov aka Leency make app to open with param, small UI update
|
|
|
|
|
|
|
|
;0.65: SuperMP3
|
2024-05-29 21:05:57 +02:00
|
|
|
Madis Kalme rewrited extract_bits (he used his Extracteax macro)
|
2018-10-01 20:19:57 +02:00
|
|
|
and decode_bitrate functions
|
|
|
|
|
|
|
|
;0.64: Xing header reading: correct time, bitrate and number of
|
2024-05-29 21:05:57 +02:00
|
|
|
frames for VBR files
|
2018-10-01 20:19:57 +02:00
|
|
|
;0.62: ID3v2 detecting and writing its version
|
2024-05-29 21:05:57 +02:00
|
|
|
;0.61: Header search
|
|
|
|
; Added 'Header found at' field
|
|
|
|
; If file has no frames, error message is shown
|
2018-10-01 20:19:57 +02:00
|
|
|
; Russian tag support (in windows-1251 encoding)
|
2024-05-29 21:05:57 +02:00
|
|
|
;
|
|
|
|
;0.6: SuperMP3 (not finished and its future in the dark) 19/08/2005
|
2018-10-01 20:19:57 +02:00
|
|
|
;Author: Sergey Kuzmin aka Wildwest <kuzmin_serg@list.ru>
|
|
|
|
;Additions: Alexei Ershov aka ealex <e-al@yandex.ru>
|
|
|
|
;Features: added checking of CRC bit;
|
|
|
|
; improved frame_size calculation (thanks to Alexei Ershov for the formula)
|
|
|
|
; added ID3v1 tag reading (except Genre field) by Alexei Ershov
|
|
|
|
;--------------------------------------------------------------------------------------
|
2024-05-29 21:05:57 +02:00
|
|
|
;0.5: SuperMP3 17/08/2005
|
2018-10-01 20:19:57 +02:00
|
|
|
;Author: Sergey Kuzmin aka Wildwest <kuzmin_serg@list.ru>
|
|
|
|
;Additions: Alexei Ershov aka ealex <e-al@yandex.ru>
|
|
|
|
;Features: added checking of Padding bit;
|
2024-05-29 21:05:57 +02:00
|
|
|
; Added open dialog and optimized macroses Text, Number, DrawLine by Alexei Ershov
|
2018-10-01 20:19:57 +02:00
|
|
|
;--------------------------------------------------------------------------------------
|
2024-05-29 21:05:57 +02:00
|
|
|
;0.4: SuperMP3 05/08/2005
|
2018-10-01 20:19:57 +02:00
|
|
|
;Author: Sergey Kuzmin aka Wildwest <kuzmin_serg@list.ru>
|
|
|
|
;Additions: Alexei Ershov aka ealex <e-al@yandex.ru>
|
|
|
|
;Features: added Frame_size and Quantity_of_Frames;
|
2024-05-29 21:05:57 +02:00
|
|
|
; optimized decode_samplerate and decode_bitrate routines by Alexei Ershov
|
2018-10-01 20:19:57 +02:00
|
|
|
;--------------------------------------------------------------------------------------
|
2024-05-29 21:05:57 +02:00
|
|
|
;0.3: SuperMP3 25/04/2005
|
|
|
|
;Author: Sergey Kuzmin aka Wildwest <kuzmin_serg@list.ru>
|
2018-10-01 20:19:57 +02:00
|
|
|
;Features: added File_size and Duration (rough estimation), improved SampleRate, fixed BitRate
|
2024-05-29 21:05:57 +02:00
|
|
|
;--------------------------------------------------------------------------------------
|
|
|
|
;0.2: SuperMP3 21/04/2005
|
|
|
|
;Author: Sergey Kuzmin aka Wildwest <kuzmin_serg@list.ru>
|
2018-10-01 20:19:57 +02:00
|
|
|
;Features: added SampleRate and BitRate
|
|
|
|
;--------------------------------------------------------------------------------------
|
2024-05-29 21:05:57 +02:00
|
|
|
;0.1: SuperMP3 20/04/2005
|
|
|
|
;Author: Sergey Kuzmin aka Wildwest <kuzmin_serg@list.ru>
|
2018-10-01 20:19:57 +02:00
|
|
|
;Features: able to detect MPEG Version, Layer, Channels
|
2024-05-29 21:05:57 +02:00
|
|
|
;----------------------------------------------------------------------------------------
|
|
|
|
;Issues:
|
|
|
|
; MP3 player needs work of several men during several months(approx. 10 men and 2-4 months, because it is ASM OS).
|
|
|
|
; If you want to listen a lot of mp3 in MenuetOS - make a bit of asm!
|
|
|
|
;-----------------------------------------------------------------------------
|
|
|
|
;CLEAN mp3 - is mp3 file without any info before header. Open mp3 in HEX EDITOR and check it out.
|
2018-10-01 20:19:57 +02:00
|
|
|
|
|
|
|
;Usually normal header's start looks like FFF3 or FFFB.
|
|
|
|
|
2024-05-29 21:05:57 +02:00
|
|
|
;If you see TAG (4944 3303 = ID3.) or RIFF (5249 4646 = RIFF)
|
|
|
|
;or (0000 0000 - encoded by Lame codec or another program) - it is bad,
|
2018-10-01 20:19:57 +02:00
|
|
|
;you must delete this piece until FFFx before testing. Happy testing!
|
|
|
|
|
|
|
|
;Note - I test it only on several files (test.mp3
|
|
|
|
;included in this package) in Bochs and Qemu.
|
|
|
|
;For testing change name if the end of "supermp3.asm" - section
|
|
|
|
fileinfo:
|
|
|
|
dd 0, 0, 1, mp3_file, 0x1000
|
2024-05-29 21:05:57 +02:00
|
|
|
db "/SYS/TEST.MP3",0
|
2018-10-01 20:19:57 +02:00
|
|
|
|
|
|
|
Package content:
|
|
|
|
readme.txt - this file
|
2024-05-29 21:05:57 +02:00
|
|
|
supermp3 - compiled executable file
|
2018-10-01 20:19:57 +02:00
|
|
|
supermp3.asm - main file - build program's GUI
|
2024-05-29 21:05:57 +02:00
|
|
|
MACROS.INC - standard file with macros
|
|
|
|
MOS_UZIT.INC - macros for interface, routines for extracting bits and decoding extracted bits
|
|
|
|
ASCL.INC - macros for interface and useful stuff
|
2018-10-01 20:19:57 +02:00
|
|
|
test.mp3 - test file
|
|
|
|
|
2024-05-29 21:05:57 +02:00
|
|
|
Any comments by e-mail or on forums (http://meos.sysbin.com, http://forum.meos.ru, http://menuetos.fastbb.ru,
|
2018-10-01 20:19:57 +02:00
|
|
|
http://menuet.2.forumer.com, http://board.flatassembler.net/forum.php?f=12) are appreciated.
|