Home
last modified time | relevance | path

Searched refs:chunk_fmt (Results 1 – 3 of 3) sorted by relevance

/external/tinyalsa_new/utils/
Dtinywavinfo.c52 struct chunk_fmt { struct
89 struct chunk_fmt chunk_fmt; in main() local
118 xfread(&chunk_fmt, sizeof(chunk_fmt), 1, file); in main()
120 if (chunk_header.sz > sizeof(chunk_fmt)) in main()
121 fseek(file, chunk_header.sz - sizeof(chunk_fmt), SEEK_CUR); in main()
134 printf("Channels : %u \n", chunk_fmt.num_channels); in main()
135 printf("Sample Rate : %u \n", chunk_fmt.sample_rate); in main()
136 printf("Bits per sample : %u \n\n", chunk_fmt.bits_per_sample); in main()
138 analyse_sample(file, chunk_fmt.num_channels, chunk_fmt.bits_per_sample, in main()
Dtinyplay.c90 struct chunk_fmt { struct
104 struct chunk_fmt chunk_fmt; argument
172 if (fread(&ctx->chunk_fmt, sizeof(ctx->chunk_fmt), 1, ctx->file) != 1){ in ctx_init()
178 if (ctx->chunk_header.sz > sizeof(ctx->chunk_fmt)) in ctx_init()
179 fseek(ctx->file, ctx->chunk_header.sz - sizeof(ctx->chunk_fmt), SEEK_CUR); in ctx_init()
190 config->channels = ctx->chunk_fmt.num_channels; in ctx_init()
191 config->rate = ctx->chunk_fmt.sample_rate; in ctx_init()
192 bits = ctx->chunk_fmt.bits_per_sample; in ctx_init()
193 is_float = ctx->chunk_fmt.audio_format == WAVE_FORMAT_IEEE_FLOAT; in ctx_init()
/external/tinyalsa/
Dtinyplay.c53 struct chunk_fmt { struct
80 struct chunk_fmt chunk_fmt; in main() argument
114 fread(&chunk_fmt, sizeof(chunk_fmt), 1, file); in main()
116 if (chunk_header.sz > sizeof(chunk_fmt)) in main()
117 fseek(file, chunk_header.sz - sizeof(chunk_fmt), SEEK_CUR); in main()
157 play_sample(file, card, device, chunk_fmt.num_channels, chunk_fmt.sample_rate, in main()
158 chunk_fmt.bits_per_sample, period_size, period_count, chunk_header.sz); in main()