mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-29 19:37:30 +01:00
Fix ACM/NWA bitrate
This commit is contained in:
parent
71d642574b
commit
4e0ce29f4a
@ -2377,12 +2377,25 @@ static int get_vgmstream_average_bitrate_channel_count(VGMSTREAM * vgmstream)
|
|||||||
/* average bitrate helper */
|
/* average bitrate helper */
|
||||||
static STREAMFILE * get_vgmstream_average_bitrate_channel_streamfile(VGMSTREAM * vgmstream, int channel)
|
static STREAMFILE * get_vgmstream_average_bitrate_channel_streamfile(VGMSTREAM * vgmstream, int channel)
|
||||||
{
|
{
|
||||||
//AAX, AIX, ACM?
|
//AAX, AIX?
|
||||||
|
|
||||||
if (vgmstream->layout_type==layout_scd_int) {
|
if (vgmstream->layout_type==layout_scd_int) {
|
||||||
scd_int_codec_data *data = (scd_int_codec_data *) vgmstream->codec_data;
|
scd_int_codec_data *data = (scd_int_codec_data *) vgmstream->codec_data;
|
||||||
return data->intfiles[channel];
|
return data->intfiles[channel];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (vgmstream->coding_type==coding_NWA) {
|
||||||
|
nwa_codec_data *data = (nwa_codec_data *) vgmstream->codec_data;
|
||||||
|
if (data && data->nwa)
|
||||||
|
return data->nwa->file;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (vgmstream->coding_type==coding_ACM) {
|
||||||
|
acm_codec_data *data = (acm_codec_data *) vgmstream->codec_data;
|
||||||
|
if (data && data->file)
|
||||||
|
return data->file->streamfile;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef VGM_USE_VORBIS
|
#ifdef VGM_USE_VORBIS
|
||||||
if (vgmstream->coding_type==coding_OGG_VORBIS) {
|
if (vgmstream->coding_type==coding_OGG_VORBIS) {
|
||||||
ogg_vorbis_codec_data *data = (ogg_vorbis_codec_data *) vgmstream->codec_data;
|
ogg_vorbis_codec_data *data = (ogg_vorbis_codec_data *) vgmstream->codec_data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user