bnnm
b438b5fa01
Add debug util for easier custom IO testing
2018-08-11 17:58:16 +02:00
bnnm
0fc5b466c8
Add some extra streamfile helpers
2018-08-04 20:42:00 +02:00
NicknineTheEagle
e2160f4e09
Added a helper function for auto-detecting value endianness
2018-07-17 23:54:24 +03:00
bnnm
46f333cc8e
Remove get_realname from streamfiles as it's not used anymore
...
It was implemented for Audacious only to open companion NWA files, but
current version has no need for it. In case there is some obscure thing
that needs it, Audacious's vfs.cc should translate or return realnames
transparently, without having to modify other streamfiles.
2018-04-19 22:54:45 +02:00
bnnm
d6ade4123f
Add buffer_streamfile (for custom IO) and simplify stdio reads
2018-04-19 22:19:30 +02:00
Christopher Snowhill
35bede85fe
Merge pull request #209 from haspor/master
...
Android change for streamfile
2018-03-31 17:54:45 -07:00
bnnm
e4c819af2e
Add size_callback to open_io_streamfile for more complex stuff
2018-03-30 18:10:23 +02:00
-
d5b095361c
revert back the Android change. It seems that the 'dup' is not working perfectly with unistd.h either.
2018-03-30 08:22:03 +03:00
bnnm
92b9992552
Rename open_stream_ext/name to open_streamfile_by_ext/filename (cleanup)
2018-03-29 22:34:21 +02:00
bnnm
2b63d451d9
Minor tweaks to get_streamfile_name and co
2018-03-29 21:03:25 +02:00
bnnm
69fb29fc7a
Return size_t in read_string for consistency
2018-03-29 20:42:52 +02:00
bnnm
49e62d2bcc
Move read_pos_file to ffmpeg.c since it was only needed there
2018-03-29 20:38:06 +02:00
bnnm
b97fc632be
Fix minor compiler warnings
2018-03-03 19:07:59 +01:00
bnnm
15ca185052
Add util to get base filename without path
2018-02-25 16:27:48 +01:00
-
2e020143cf
A small fix for Android. Songs from this set fails to play without the fix:Bionicle Heroes (2006-11-14)(Traveller's Tales)(Eidos)
2018-01-28 16:52:03 +02:00
bnnm
8c7eba151a
Add STREAMFILE for segmented files
2018-01-27 13:58:46 +01:00
bnnm
88999d570d
Add STREAMFILE for fake names (used to call other meta)
2018-01-27 11:07:45 +01:00
bnnm
ae2ba1bc29
Update read_key_file for variable-sized keys
2018-01-20 20:06:15 +01:00
bnnm
75a1023b60
Add new streamfile definitions; don't segfault on close_streamfile(NULL)
2018-01-20 01:59:36 +01:00
bnnm
927a3b5f39
Remove PROFILE_STREAMFILE to simplify further changes, not used anymore
2018-01-19 00:16:14 +01:00
bnnm
dbbbfcc9f5
Make get_streamfile_dos_line read CR/LF too and rename accordingly
...
CR used in some Falcom looping files as separator
2017-11-23 22:53:43 +01:00
bnnm
801383382d
Add util to open stream in the same dir
2017-11-05 17:05:39 +01:00
bnnm
c4a6e6e194
Add read_64bitBE/LE for Rockstar AWC
...
They use it encode 3 values in 64b and save one byte in the process,
whee.
2017-08-28 15:11:52 +02:00
bnnm
f4f920482a
Unify open_stdio usage and add opening by FILE
2017-08-13 19:58:01 +02:00
bnnm
a3146ed2f6
Add stream index selection, to use in metas if supported by the format
...
Not ideal here, but it's the simplest way to pass to all
init_vgmstream_x functions without having to change all functions to
pass extra params or use globals. The value can be set externally by
plugins and metas can use to play the selected stream, or just ignore
it.
2017-08-12 11:23:09 +02:00
bnnm
c5dbece5ac
Add string reader util
2017-08-12 11:14:16 +02:00
bnnm
0a39d7636e
Add helper functions to get file name/path/ext
2017-07-15 11:28:42 +02:00
bnnm
2ec41eb054
Add option to set if zero-sized chunks stop find_chunk (for XVAG)
2017-04-02 12:23:42 +02:00
bnnm
4673050fcb
Add find_chunk with configurable endianness
2017-02-18 15:19:25 +01:00
bnnm
30ec4d7c41
Increase default I/O buffer to improve performance
2017-01-15 20:48:00 +01:00
bnnm
48fa7b7dc0
Added a few helper functions
...
- open_stream_ext: opens a streamfile based on the filename + ext
- find_chunk_be/le: finds chunk_offset in chunked headers
2017-01-14 01:37:53 +01:00
bnnm
c68608149c
Moved check_extensions/open_stream to streamfile.c/vgmstream.c
2017-01-14 00:59:54 +01:00
bnnm
76dc236b41
Added .pos support for .vgmstream (FFmpeg) files not directly supported
...
The format is LE 4+4 [loop_start loop_end], or LE 4+4+4 [loop_start
loop_end num_samples] when FFmpeg can't determine correctly num_samples
2016-12-11 13:05:54 +01:00
bnnm
f5e8e8ad8e
Open key using streamFile, needed to allow user-defined callbacks
2016-11-27 22:42:42 +01:00
bnnm
5a1a122698
Util to read encryption keys from external file based on a songname
...
The format is "(songname.ext)key" (per song), "(.ext)key" (per folder)
2016-11-27 19:35:26 +01:00
halleyscometsw
037a0aeb36
fseeko to fseek for XBMC
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@569 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2009-01-27 14:25:16 +00:00
halleyscometsw
875c0d1eae
MUS Playlists! ARGH!
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@353 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-07-20 23:28:16 +00:00
halleyscometsw
b058236064
Add get_realname() to streamfile, so that we can get the plain name of the file even if the file names handled by the streamfile are encoded somehow. Needed for nwa.
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@306 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-07-11 08:29:04 +00:00
halleyscometsw
f944267644
add error counting with STREAMFILE_PROFILE
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@280 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-07-03 20:08:02 +00:00
halleyscometsw
57e227e4c1
"profiling" for STREAMFILE, to see how much is actually being read
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@186 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-05-20 18:56:44 +00:00
halleyscometsw
5d36d9105a
clean up mingw issues
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@183 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-05-20 18:19:02 +00:00
paladine
3ae797a88a
Changed STREAMFILE to be an abstract structure with function pointers for file operations. These changes have been done to support the audacious plugin which will use audacious-VFS I/O instead of stdio. The winamp plugin uses stdio, and has been tested and is working.
...
stdio optimizations include the prevention of 'doubly opening' a file. If a file is opened that is already opened, the file handle is duplicated instead of using the normal fopen call.
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@180 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-05-20 15:18:38 +00:00
halleyscometsw
2a686eeea2
consolidate headers
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@89 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-05-06 03:35:37 +00:00
halleyscometsw
07e9513675
cleanup indents, don't use pstdint.h outside of MSVC
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@68 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-04-03 13:56:50 +00:00
halleyscometsw
dd84452570
Now buildable with MSVS 2005.
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@67 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-04-03 13:40:36 +00:00
halleyscometsw
62aa07926d
changes for mingw32 building
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@22 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-02-06 00:27:51 +00:00
halleyscometsw
b3633585e1
Inlined some common stuff for speed.
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@4 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-01-31 22:26:11 +00:00
halleyscometsw
354d29cf92
Move things into src/
...
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@2 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2008-01-31 06:09:11 +00:00