Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 11 of 11) sorted by relevance

/system/media/audio_utils/
Dtinysndfile.c184 unsigned channels = little2u(&fmt[2]); in sf_open_read() local
185 if ((channels < 1) || (channels > FCC_8)) { in sf_open_read()
187 fprintf(stderr, "unsupported channels %u\n", channels); in sf_open_read()
208 unsigned bytesPerFrame = (bitsPerSample >> 3) * channels; in sf_open_read()
211 handle->info.channels = channels; in sf_open_read()
302 (info->channels > 0 && info->channels <= FCC_8) && in sf_open_write()
329 wav[22] = info->channels; in sf_open_write()
352 unsigned blockAlignment = (bitsPerSample >> 3) * info->channels; in sf_open_write()
443 memcpy_to_i16_from_u8(ptr, (unsigned char *) ptr, actualFrames * handle->info.channels); in sf_readf_short()
447 my_swab(ptr, actualFrames * handle->info.channels); in sf_readf_short()
[all …]
DAndroid.bp25 "channels.c",
/system/media/alsa_utils/
Dalsa_device_proxy.c81 if (config->channels != 0 && profile_is_channel_count_valid(profile, config->channels)) { in proxy_prepare()
82 proxy->alsa_config.channels = config->channels; in proxy_prepare()
84 proxy->alsa_config.channels = profile_get_closest_channel_count(profile, config->channels); in proxy_prepare()
86 config->channels, proxy->alsa_config.channels); in proxy_prepare()
88 if (config->channels != 0) { in proxy_prepare()
107 proxy->frame_size = format_byte_size_map[config->format] * proxy->alsa_config.channels; in proxy_prepare()
187 return proxy->alsa_config.channels; in proxy_get_channel_count()
257 dprintf(fd, " channels: %d\n", proxy->alsa_config.channels); in proxy_dump()
Dalsa_device_profile.c351 config->channels = pcm_params_get_min(alsa_hw_params, PCM_PARAM_CHANNELS); in read_alsa_device_config()
355 config->channels < 2 && pcm_params_get_max(alsa_hw_params, PCM_PARAM_CHANNELS) >= 2) { in read_alsa_device_config()
356 config->channels = 2; in read_alsa_device_config()
391 profile->default_config.channels, profile->default_config.rate, in profile_read_device_info()
634 dprintf(fd, " channels: %d\n", profile->default_config.channels); in profile_dump()
Dalsa_logging.c105 ALOGV(" channels:%d", config->channels); in log_pcm_config()
/system/extras/sound/
Dplaywav.c38 int pcm_play(unsigned rate, unsigned channels, in pcm_play() argument
59 config.channel_count = channels; in pcm_play()
137 void play_file(unsigned rate, unsigned channels, in play_file() argument
150 pcm_play(rate, channels, fill_buffer, 0); in play_file()
156 unsigned rate, channels; in wav_play() local
193 int wav_rec(const char *fn, unsigned channels, unsigned rate) in wav_rec() argument
209 hdr.num_channels = channels; in wav_rec()
335 unsigned channels = 1; in main() local
346 channels = 2; in main()
348 channels = 1; in main()
[all …]
/system/media/audio_utils/tests/
Dfifo_tests.cpp98 size_t frameSize = sizeof(int16_t) * sfinfoin.channels; in main()
99 int16_t *inputBuffer = new int16_t[sfinfoin.frames * sfinfoin.channels]; in main()
108 int16_t *outputBuffer = new int16_t[sfinfoin.frames * sfinfoin.channels]; in main()
111 int16_t *fifoBuffer = new int16_t[frameCount * sfinfoin.channels]; in main()
129 &inputBuffer[framesWritten * sfinfoin.channels], framesToWrite); in main()
164 &outputBuffer[framesRead * sfinfoin.channels], framesToRead); in main()
225 sfinfoout.channels = sfinfoin.channels; in main()
/system/bt/embdrv/sbc/encoder/include/
Dsbc_if.h33 int SBC_init(int pcm_sample_freq, int channels, int bits_per_sample);
/system/media/audio_utils/include/audio_utils/
Dsndfile.h39 int channels; member
/system/media/audio/include/system/
Daudio_effect.h463 uint32_t channels; // channel mask (see audio_channel_mask_t in audio.h) member
/system/core/adb/
Dprotocol.txt238 support a smaller, fixed number of channels using pre-assigned channel