mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-27 16:10:48 +01:00
Remove .al/al2 raw format (use TXTH + ALAW)
This commit is contained in:
parent
4e40b8d73c
commit
f25905f7a9
@ -1270,7 +1270,6 @@ static const meta_info meta_info_list[] = {
|
||||
{meta_EA_SNU, "Electronic Arts SNU header"},
|
||||
{meta_AWC, "Rockstar AWC header"},
|
||||
{meta_OPUS, "Nintendo Switch OPUS header"},
|
||||
{meta_RAW_AL, "Illwinter Game Design .AL raw header"},
|
||||
{meta_PC_AST, "Capcom AST (PC) header"},
|
||||
{meta_UBI_SB, "Ubisoft SBx header"},
|
||||
{meta_NAAC, "Namco NAAC header"},
|
||||
|
@ -1,42 +0,0 @@
|
||||
#include "meta.h"
|
||||
#include "../coding/coding.h"
|
||||
|
||||
/* AL/AL2 - headerless a-law, from Illwinter Game Design games */
|
||||
VGMSTREAM * init_vgmstream_raw_al(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
off_t start_offset;
|
||||
int loop_flag = 0, channel_count;
|
||||
|
||||
/* checks */
|
||||
/* .al: Dominions 3 - The Awakening (PC)
|
||||
* .al2: Conquest of Elysium 3 (PC) */
|
||||
if ( !check_extensions(streamFile,"al,al2"))
|
||||
goto fail;
|
||||
|
||||
channel_count = check_extensions(streamFile,"al") ? 1 : 2;
|
||||
|
||||
/* build the VGMSTREAM */
|
||||
vgmstream = allocate_vgmstream(channel_count,loop_flag);
|
||||
if (!vgmstream) goto fail;
|
||||
|
||||
vgmstream->sample_rate = 22050;
|
||||
vgmstream->coding_type = coding_ALAW;
|
||||
vgmstream->layout_type = layout_interleave;
|
||||
vgmstream->interleave_block_size = 0x01;
|
||||
vgmstream->meta_type = meta_RAW_AL;
|
||||
vgmstream->num_samples = pcm_bytes_to_samples(get_streamfile_size(streamFile), channel_count, 8);
|
||||
if (loop_flag) {
|
||||
vgmstream->loop_start_sample = 0;
|
||||
vgmstream->loop_end_sample = vgmstream->num_samples;
|
||||
}
|
||||
|
||||
start_offset = 0;
|
||||
|
||||
if ( !vgmstream_open_stream(vgmstream, streamFile, start_offset) )
|
||||
goto fail;
|
||||
return vgmstream;
|
||||
|
||||
fail:
|
||||
close_vgmstream(vgmstream);
|
||||
return NULL;
|
||||
}
|
@ -553,7 +553,6 @@ init_vgmstream_t init_vgmstream_functions[] = {
|
||||
init_vgmstream_raw_wavm, /* .wavm raw xbox */
|
||||
init_vgmstream_raw_pcm, /* .raw raw PCM */
|
||||
init_vgmstream_s14_sss, /* .s14/sss raw siren14 */
|
||||
init_vgmstream_raw_al, /* .al/al2 raw A-LAW */
|
||||
init_vgmstream_ngc_ulw, /* .ulw raw u-Law */
|
||||
init_vgmstream_exakt_sc, /* .sc raw PCM */
|
||||
init_vgmstream_zwdsp, /* fake format */
|
||||
|
@ -560,7 +560,6 @@ typedef enum {
|
||||
meta_EA_SNU, /* Electronic Arts SNU (Dead Space) */
|
||||
meta_AWC, /* Rockstar AWC (GTA5, RDR) */
|
||||
meta_OPUS, /* Nintendo Opus [Lego City Undercover (Switch)] */
|
||||
meta_RAW_AL,
|
||||
meta_PC_AST, /* Dead Rising (PC) */
|
||||
meta_NAAC, /* Namco AAC (3DS) */
|
||||
meta_UBI_SB, /* Ubisoft banks */
|
||||
|
Loading…
Reference in New Issue
Block a user