Page 2 of 3

Re: minimp3

Posted: Tue Jul 22, 2014 2:14 pm
by right-hearted
Вот .obj библиотека на основе minimp3. Так же в архиве файл для проверки библиотеки.
Что бы проверить нужно указывать путь следующим образом
"path/to/mp3libcheck /path/to/mp3/file /path/to/output/file"

Вот ссылка на исходный код на гитхабе: https://github.com/right-hearted/kolibrios-minimp3
Downloaded 410 times

Re: minimp3

Posted: Wed Jul 23, 2014 11:12 am
by hidnplayr
So how do I use this library? Where is the documentation? Or maybe just a description of the API?
Any demo programs available? How did you test this?

Re: minimp3

Posted: Wed Jul 23, 2014 12:11 pm
by right-hearted
hidnplayr wrote:So how do I use this library? Where is the documentation? Or maybe just a description of the API?
Any demo programs available? How did you test this?
Test application is inside archive attached to the post. Also, there is source code of both library and test application on github link. On the github you will find small readme file that shortly describes main functions.

As usual you just stdcall functions that are inside library and use them to decode mp3 files into raw data adn do whatever you want to do with it.
I only know how to open raw audio files on linux, sorry. In audacity you just import file as a raw file without header data.

Re: minimp3

Posted: Wed Jul 23, 2014 12:31 pm
by hidnplayr
The test application inside the archive seems broken.
No output on debug board, no visible crashes, just exits immediately.
Loading it into the debugger revealed that you immediately want to allocate memory after load, while you did not initialise heap yet.

Re: minimp3

Posted: Wed Jul 23, 2014 1:07 pm
by right-hearted
Probablly you haven't put newlib (libc.dll) into the corresponding folder. You see I am using newlibc from Serge. Would you mind trying to test it on iso image of kolibri. There has to be right newlibc. I am also attaching libc.dll into this post, in case you don't have any.
The other reason may be that you haven't put minimp3.obj into /lib/ folder.

Re: minimp3

Posted: Wed Feb 25, 2015 8:37 pm
by Leency
popovpa wrote:Не проигрывает файлы большого объёма...130 мб и 146 мб...1 секунду слышен скрежет и дальше тишина...проблема в minimp3 он падает...

Re: minimp3

Posted: Wed Feb 25, 2015 9:13 pm
by right-hearted
Leency,
Впервые слышу о mp3 файле такого размера, вероятно запустился не mp3 а какой нибудь flac или еще чего. Но если все же это такой огромный mp3, то скорее всего тупо не хватает памяти все это дело разжевать, хотя хз, Дима лучше шарит

Re: minimp3

Posted: Wed Feb 25, 2015 9:41 pm
by Leency
popovpa
Он ведь переводит распаковывает перед воспроизведением? Может память закончилась?

Re: minimp3

Posted: Wed Feb 25, 2015 9:42 pm
by popovpa
2 гигабайта памяти закончились? А где посмотреть сколько памяти свободной?

ASOT Armin van Buuren, всё время в таком размере, а бывает ещё толще...
В данном случае вот это не проигрывается: http://www.litesoundsession.com/podcast ... out_coast/
chillout coast by Andrey Faustov

Posted: Wed Feb 25, 2015 11:34 pm
by right-hearted
Насколько я помню он выгружает raw файл, то есть декодирует и занимаемая память довольно сильно растет, так что 140 метров mp3 могут превратиться в 800 метров raw
Хотя по хорошему он должен разжимать в память и сразу удалять то что использовано. Но в данной библиотеке вся песня кажется в памяти сидит

Re: minimp3

Posted: Thu Feb 26, 2015 10:03 am
by SoUrcerer
Нет, здесь вызывается функция "декодировать чанк". Нужно внимательно смотреть, в чем дело.

Re: minimp3

Posted: Mon Mar 23, 2015 5:54 pm
by hidnplayr
I would like to listen to internet radio in Kolibri. HTTP part is ready to go!

Minimp3 however does not seem to decode the stream correctly (outputs some garbage through the speakers).
Also the usage of newlib (which requires big fat runtime library) is unacceptable to me.

Is anybody still working on this library?

PS: AC97snd player decodes the stream correctly, and the decoder is even smaller then minimp3!
Perhaps making this decoder a COFF library would be even better then this minimp3...

EDIT: It seems minimp3.obj works without any external library's, only the example program needs libc.dll

Re: minimp3

Posted: Wed Jan 23, 2019 4:37 pm
by Roman
А есть асм исходники minimp3 для Fasm-а ?
И можно их посмотреть ?

Re: minimp3

Posted: Fri Jan 25, 2019 12:20 am
by Leency
Roman wrote:А есть асм исходники minimp3 для Fasm-а ?
И можно их посмотреть ?
Либа на Си.

Re: minimp3

Posted: Fri Jan 25, 2019 10:24 am
by Roman
А в чем собирали Си код ?
Code::Blocks или Visual Studio 2012 ?

Я на github находил minimp3-master.
Компилил в Code::Blocks. Размер экзешника получил 67 kb (килограмм)