2014-08-27 Fred Gleason <fredg@paravelsystems.com>

* Added support for RIFF WAV files with WAVE_FORMAT_MPEGLAYER3
	format in 'lib/rdwavefile.cpp' and 'lib/rdwavefile.h'.
This commit is contained in:
Fred Gleason
2014-08-27 19:31:29 -04:00
parent 79953efa7f
commit bbeff9f343
3 changed files with 113 additions and 0 deletions

View File

@@ -2343,6 +2343,15 @@ bool RDWaveFile::GetFmt(int fd)
fmt_chunk_data[34]+16777216*fmt_chunk_data[35];
}
if(format_tag==WAVE_FORMAT_MPEGLAYER3) {
if(!GetChunk(wave_file.handle(),"data",&data_length,NULL,0)) {
return false;
}
data_start=lseek(wave_file.handle(),0,SEEK_CUR);
GetMpegHeader(fd,data_start);
format_tag=WAVE_FORMAT_MPEG;
}
return true;
}