Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 17 of 17) 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.bp34 "channels.c",
/system/media/alsa_utils/
Dalsa_device_proxy.c83 if (config->channels != 0 && profile_is_channel_count_valid(profile, config->channels)) { in proxy_prepare()
84 proxy->alsa_config.channels = config->channels; in proxy_prepare()
86 proxy->alsa_config.channels = profile_get_closest_channel_count(profile, config->channels); in proxy_prepare()
88 config->channels, proxy->alsa_config.channels); in proxy_prepare()
90 if (config->channels != 0) { in proxy_prepare()
109 proxy->frame_size = format_byte_size_map[config->format] * proxy->alsa_config.channels; in proxy_prepare()
189 return proxy->alsa_config.channels; in proxy_get_channel_count()
285 dprintf(fd, " channels: %d\n", proxy->alsa_config.channels); in proxy_dump()
Dalsa_device_profile.c365 config->channels = pcm_params_get_min(alsa_hw_params, PCM_PARAM_CHANNELS); in read_alsa_device_config()
369 config->channels < 2 && pcm_params_get_max(alsa_hw_params, PCM_PARAM_CHANNELS) >= 2) { in read_alsa_device_config()
370 config->channels = 2; in read_alsa_device_config()
405 profile->default_config.channels, profile->default_config.rate, in profile_read_device_info()
649 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/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/extras/sound/
Dplaywav.c38 int pcm_play(unsigned rate, unsigned channels, in pcm_play() argument
61 config.channel_count = channels; in pcm_play()
138 void play_file(unsigned rate, unsigned channels, in play_file() argument
151 pcm_play(rate, channels, fill_buffer, 0); in play_file()
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()
376 return wav_rec(fn, channels, rate); 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.h40 int channels; member
/system/core/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DDeployAgent.java28 import java.nio.channels.Channels;
29 import java.nio.channels.FileChannel;
30 import java.nio.channels.WritableByteChannel;
DApkArchive.java26 import java.nio.channels.FileChannel;
/system/media/audio/include/system/
Daudio_effect.h485 uint32_t channels; // channel mask (see audio_channel_mask_t in audio.h) member
/system/media/audio_utils/fuzz/sndfile_fuzzer/
Dsndfile_fuzzer.cpp122 getSizeByType(input_format) * desired_frame_count * info.channels; in LLVMFuzzerTestOneInput()
/system/timezone/debug_tools/host/main/java/
DZoneSplitter.java21 import java.nio.channels.FileChannel;
/system/core/adb/
Dprotocol.txt249 support a smaller, fixed number of channels using pre-assigned channel
/system/apex/docs/
DREADME.md122 files to be delivered via existing channels such as package installer apps and
/system/update_engine/
DREADME.md527 channels, getting the current status of update process, doing a rollback,