Commit Graph

26 Commits

Author SHA1 Message Date
bnnm
467f7d0b3d Adjust MSF samples and use mpg123 over FFmpeg
Don't adjust loops to frame boundaries since offsets are always aligned
and MSF only does CBR. There was a minor bug getting samples: FFmpeg was
parsing the MSF and would add its header to the bitrate, which was used
for calcs. Now FFmpeg only sees the MP3 data.

Use mpg123 if available too since it's easier to setup in non-Windows
builds (no audible differences otherwise).
2018-03-29 20:25:54 +02:00
bnnm
757e4cde69 Rename init_x_codec_data to init_x for consistency 2018-01-04 23:22:03 +01:00
bnnm
f74f9f0b24 Add MSF with .MP3 extension (Darkstalkers Resurrection PS3) 2017-12-06 15:53:42 +01:00
bnnm
6308818b77 Simplify MPEG coding/layouts to allow blocked layouts and future changes 2017-07-29 13:05:23 +02:00
bnnm
6a922be613 Fix encoder delay/skip samples in: SCD/SGXD/RIFF/MSF ATRAC3/p, SGXD AC3 2017-05-20 18:00:27 +02:00
bnnm
b7ffd11fca Add/use atrac3_bytes_to_samples 2017-04-07 21:18:07 +02:00
bnnm
cbd4e4e726 Fixed some MSF looping [Castlevania HoD (PS3)] 2017-03-24 16:37:14 +01:00
bnnm
a8fea8f35c Fix Malicious PS3 looping 2017-03-18 17:41:45 +01:00
bnnm
7f98f5b4f6 Remove MPEG sample rate check and channel/sample rate pointer updates
Rarely used, frame sample rate/channels are now exposed, and FFmpeg will
end up playing any MP3 anyway.
Encoders may modify sample rate to adjust looping to frame boundaries,
too.
2017-02-19 21:16:09 +01:00
bnnm
7418b61793 Hide buffer and mpeg_bytes_to_samples MPEG internals; cleanup
Also removes VBR check from metas; it's only needed because
mpeg_bytes_to_samples doesn't work with VBR, but now it'll return 0,
which would be validated later.
2017-02-18 00:17:38 +01:00
bnnm
5040b4746e Fix minor bugs; cleanup
- loop flag parsed from the spec [TTT HD]
- add joint stereo ATRAC3 [Silent Hill HD]
- fix MSFv1 ATRAC3 sample rate [Digi World SP]
- use "fake RIFF" ATRAC3 for flexibility (sample rate fix)
2017-02-04 23:26:13 +01:00
bnnm
ad3b081681 Fix possible segfault 2016-12-27 23:18:41 +01:00
bnnm
cdfd47eb7b FFmpeg: expose block/frame size, rename totalFrames for clarity 2016-12-10 15:53:29 +01:00
bnnm
6568acc305 Favor FFMPEG over MPEG due to inaccurate looping and worse MPEG support 2016-12-04 23:10:18 +01:00
bnnm
69116cb6ad Fix VGM_USE_MPEG #ifdef 2016-11-26 15:15:50 +01:00
bnnm
eb491e0e1b Added WMSF variation; AT3/MP3 support via FFMPEG 2016-11-25 22:29:07 +01:00
Chris Moeller
a6b64189e0 fix interleaved msf (PS ADPCM in particular) 2013-09-03 11:17:16 -07:00
Chris Moeller
142cfc971d Raised path length limit to 32767 characters, controlled by a global enum definition 2013-05-26 20:55:50 -07:00
snakemeat
8202441041 Fix missing equals sign in PS3 MSF.
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@979 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2012-05-16 02:43:55 +00:00
halleyscometsw
7b78a5262d MPEG fixes from kode54, get the right freq and srate even with MPG123_NEED_MORE, avoid locking up with too little data
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@911 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2011-01-19 13:54:59 +00:00
snakemeat
c14e50f478 Update MSF container for Sony ADPCM content with an invalid file size (0xFFFFFFFF) in the header.
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@907 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2011-01-14 01:13:02 +00:00
bxaimc
bb6ed86d98 Added sample rate hack for files with an unspecified frequency
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@876 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2010-11-05 02:14:53 +00:00
manakoAT
2b2a16f8be Removed GENH creator source
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@857 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2010-09-26 08:25:43 +00:00
manakoAT
fe0df93e2f add psx coding to msf
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@854 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2010-09-17 19:00:21 +00:00
manakoAT
399d570a83 fixed MPEG stuff, loops and crashing files in PS3_MSF.C
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@853 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2010-09-17 18:32:18 +00:00
manakoAT
26d9ce5367 add PS3 MSF header, just mpeg support for 320kbps CBR, someone needs to finish it
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@848 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
2010-09-14 18:22:49 +00:00