mirror of
https://github.com/google/liblc3.git
synced 2026-05-05 12:38:00 +00:00
feature: Add High-Resolution LC3 plus mode
Duplicate interfaces for HR mode spec: Remove intermediate quantized table fix: legacy lc3_frame_bytes() and lc3_resolve_bitrate() Cosmetic: rename fast_xxx math function to lc3_xxx
This commit is contained in:
@@ -49,7 +49,7 @@ struct wave_file {
|
||||
* Audio format statement
|
||||
* | id WAVE_FORMAT_ID
|
||||
* | size Size of the block - 8 bytes (= 16 bytes)
|
||||
* | format WAVE_FORMAT_PCM
|
||||
* | format WAVE_FORMAT_PCM or WAVE_FORMAT_EXT
|
||||
* | channels Number of channels
|
||||
* | samplerate Sampling rate
|
||||
* | byterate Bytes per secondes = `samplerate * framesize`
|
||||
@@ -58,7 +58,8 @@ struct wave_file {
|
||||
*/
|
||||
|
||||
#define WAVE_FORMAT_ID __WAVE_ID("fmt ")
|
||||
#define WAVE_FORMAT_PCM 1
|
||||
#define WAVE_FORMAT_PCM 0x0001
|
||||
#define WAVE_FORMAT_EXT 0xfffe
|
||||
|
||||
struct wave_format {
|
||||
uint32_t id;
|
||||
@@ -103,7 +104,8 @@ int wave_read_header(FILE *fp, int *bitdepth, int *samplesize,
|
||||
|
||||
if (fread(&format, sizeof(format), 1, fp) != 1
|
||||
|| format.id != WAVE_FORMAT_ID
|
||||
|| format.fmt != WAVE_FORMAT_PCM
|
||||
|| ( format.fmt != WAVE_FORMAT_PCM &&
|
||||
format.fmt != WAVE_FORMAT_EXT )
|
||||
|| format.channels <= 0
|
||||
|| format.samplerate <= 0
|
||||
|| format.framesize <= 0
|
||||
|
||||
Reference in New Issue
Block a user