1
0
mirror of http://mpg123.de/trunk/.git synced 2025-11-01 12:51:03 +03:00
Commit Graph

31 Commits

Author SHA1 Message Date
thor
5e9399194b Add dump_seekindex to distribution and example Makefile.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@2672 35dc7657-300d-0410-a2e5-dc2837fedb53
2010-04-27 17:09:48 +00:00
patr3ck
dc265cea38 dump_seekindex example
git-svn-id: svn://scm.orgis.org/mpg123/trunk@2669 35dc7657-300d-0410-a2e5-dc2837fedb53
2010-04-26 20:27:30 +00:00
thor
ac16ef1a9f Honor errors during feedseek stage... prompted by segfaults in libmpg123 that got --disable-real.
Now there is a question: Should libmpg123 refuse to work with handles that have an error state? Should there be some cleanup to bring the handle in a consistent state?
The latter might be it... close the file...



git-svn-id: svn://scm.orgis.org/mpg123/trunk@2665 35dc7657-300d-0410-a2e5-dc2837fedb53
2010-04-23 23:25:10 +00:00
thor
cf4a7c2d5c How embarrassing... I messed up the release -- forgot to merge the soname change!!
git-svn-id: svn://scm.orgis.org/mpg123/trunk@2624 35dc7657-300d-0410-a2e5-dc2837fedb53
2010-03-21 21:32:34 +00:00
thor
e7001b2075 Fix MPG123_NEW_FORMAT behaviour ... clients are not forced to call mpg123_getformat(), it is just a one-time hint.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@2163 35dc7657-300d-0410-a2e5-dc2837fedb53
2009-06-10 07:55:32 +00:00
patr3ck
11f1ebc0bd Split scan.c into a general and a MSVC specific one to get rid of #ifdefs
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1849 35dc7657-300d-0410-a2e5-dc2837fedb53
2009-03-03 22:26:47 +00:00
patr3ck
cf2d461149 Handles which are opened by _topen must be used with _read and _close functions
Added a MSVC++ scan project for the scan.c example

git-svn-id: svn://scm.orgis.org/mpg123/trunk@1841 35dc7657-300d-0410-a2e5-dc2837fedb53
2009-03-02 14:11:40 +00:00
thor
abf89c087b fix a bit off_t versus size_t
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1750 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-11-30 14:39:48 +00:00
thor
4afa9fff2c give it some space
Note: that simple makefile won't work with static linking.



git-svn-id: svn://scm.orgis.org/mpg123/trunk@1749 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-11-30 14:38:45 +00:00
patr3ck
206dc8a46a Add feedseek example to makefile and distribution
Add new MSVC solution and project files to distribution

git-svn-id: svn://scm.orgis.org/mpg123/trunk@1748 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-11-28 20:24:08 +00:00
patr3ck
f0f8550359 new programming example fuzzy seeking in feeder mode
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1745 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-11-28 17:27:10 +00:00
patr3ck
051b9b65a0 Make it compile under MSVC++
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1743 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-11-27 22:55:04 +00:00
thor
8755ec49ab include style
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1684 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-11-05 01:23:05 +00:00
thor
c43c4427d5 Initializing framesize (as pointed out by "Gates Fan").
Adding resync limit as tunable parameter, with possible setting to -1 to scan through all available data for next valid MPEG frame.


git-svn-id: svn://scm.orgis.org/mpg123/trunk@1347 35dc7657-300d-0410-a2e5-dc2837fedb53
2008-01-26 15:33:24 +00:00
thor
8033f75a05 Do not leave the data fields modified after print_lines - that screwed raw tag display.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1211 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-02 00:02:35 +00:00
thor
1fc0405c78 last clean up for today.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1210 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-01 22:19:41 +00:00
thor
ef95435282 Oh, man... surprising how many errors you can make in such a simple program.
While cleaning up, I found the innocent lang[3] = 0 on a variable defined as char lang[3] ... just now made the program segfault.
Coders, you have to keep your eyes open!


git-svn-id: svn://scm.orgis.org/mpg123/trunk@1209 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-01 22:17:24 +00:00
thor
3027cb6577 Baah! That loop was even with the wrong limit! Will vanish now anyway.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1208 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-01 22:02:52 +00:00
thor
d5226c8117 remove leftovers
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1207 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-01 22:02:01 +00:00
thor
489a56fbcf Simplify v1 printing... that looping was too clever - and didn't save code lines!
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1206 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-01 22:01:03 +00:00
thor
56ed6fb018 Some things relating to ID3v2 handling:
- the named entries for artist, album, etc in struct mpg123_id3v2 are now pointers...
	- ... into the new arrays of ID3v2 text, comment and extra (TXXX) data
	- That makes a lot more info directly accessible; which id3dump now does access
	- adapted id3print.c to the pointer thing (by dropping some & ;-)
	- mpg123_copy_string() now produces an empty string (_not_ "") when copying from NULL

id3.c got a bit of structure, but the main parsing function is still to bloated.
In general, I hope this change of ID3v2 handling makes sense.
You have more data plus the possibility to easily loop through the entries...



git-svn-id: svn://scm.orgis.org/mpg123/trunk@1205 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-01 21:42:44 +00:00
thor
57fe26c8e9 Made ID3 code store all comments in a list (API change in mpg123_id3v2 struct!) and while doing that seen what I did wrong last time: I ignored the encoding of the description field.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1204 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-01 17:24:49 +00:00
thor
4926dd1b48 move that comment into cleanup itself
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1202 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-01 13:30:10 +00:00
thor
734d93580f mpg123_to_wav with some more care.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1201 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-12-01 13:27:48 +00:00
thor
49204b005f Include the examples in API doc.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1196 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-11-30 23:20:04 +00:00
thor
b37aeb5bd5 Just swapping headers to confirm that stdio.h is not needed for mpg123.h anymore.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1162 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-11-28 12:11:41 +00:00
thor
a32af9e214 more usage info
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1150 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-11-28 10:09:17 +00:00
thor
9946ae4fff usage for scan
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1149 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-11-28 10:06:31 +00:00
thor
bf8e644005 Move example programs from src/ to doc/examples/ .
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1148 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-11-28 09:35:58 +00:00
thor
95e40fade5 get a newline at the end.
git-svn-id: svn://scm.orgis.org/mpg123/trunk@1146 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-11-28 09:34:05 +00:00
njh
4861339222 My very poor first attempt at a mp3 to wav converter (but it works!).
Needs a lot of error handling added.


git-svn-id: svn://scm.orgis.org/mpg123/trunk@1138 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-11-27 00:07:06 +00:00