Home
last modified time | relevance | path

Searched refs:nchannels (Results 1 – 22 of 22) sorted by relevance

/external/bluetooth/bluez/sbc/
Dsbc_primitives.c229 int nsamples, int nchannels, int big_endian) in sbc_encoder_process_input_s4_internal() argument
233 if (nchannels > 0) in sbc_encoder_process_input_s4_internal()
236 if (nchannels > 1) in sbc_encoder_process_input_s4_internal()
248 if (nchannels > 0) { in sbc_encoder_process_input_s4_internal()
250 x[0] = PCM(0 + 7 * nchannels); in sbc_encoder_process_input_s4_internal()
251 x[1] = PCM(0 + 3 * nchannels); in sbc_encoder_process_input_s4_internal()
252 x[2] = PCM(0 + 6 * nchannels); in sbc_encoder_process_input_s4_internal()
253 x[3] = PCM(0 + 4 * nchannels); in sbc_encoder_process_input_s4_internal()
254 x[4] = PCM(0 + 0 * nchannels); in sbc_encoder_process_input_s4_internal()
255 x[5] = PCM(0 + 2 * nchannels); in sbc_encoder_process_input_s4_internal()
[all …]
Dsbc_primitives.h51 int nsamples, int nchannels);
54 int nsamples, int nchannels);
57 int nsamples, int nchannels);
60 int nsamples, int nchannels);
Dsbc.c1064 int nsamples, int nchannels); in sbc_encode()
/external/qemu/audio/
Dwavcapture.c11 int nchannels; member
75 wav->freq, wav->bits, wav->nchannels, in wav_capture_info()
85 int bits, int nchannels) in wav_start_capture() argument
105 if (nchannels != 1 && nchannels != 2) { in wav_start_capture()
107 nchannels); in wav_start_capture()
111 stereo = nchannels == 2; in wav_start_capture()
115 as.nchannels = 1 << stereo; in wav_start_capture()
128 le_store (hdr + 22, as.nchannels, 2); in wav_start_capture()
143 wav->nchannels = nchannels; in wav_start_capture()
Dossaudio.c77 int nchannels; member
196 req->nchannels, obt->nchannels); in oss_dump_info()
210 int fmt, freq, nchannels; in oss_open() local
221 nchannels = req->nchannels; in oss_open()
229 if (ioctl (fd, SNDCTL_DSP_CHANNELS, &nchannels)) { in oss_open()
231 req->nchannels); in oss_open()
264 obt->nchannels = nchannels; in oss_open()
272 (req->nchannels != obt->nchannels) || in oss_open()
451 req.nchannels = as->nchannels; in oss_init_out()
466 obt_as.nchannels = obt.nchannels; in oss_init_out()
[all …]
Dalsaaudio.c141 int nchannels; member
152 int nchannels; member
297 req->nchannels, obt->nchannels); in alsa_dump_info()
342 unsigned int freq, nchannels; in alsa_open() local
349 nchannels = req->nchannels; in alsa_open()
396 &nchannels in alsa_open()
400 req->nchannels); in alsa_open()
404 if (nchannels != 1 && nchannels != 2) { in alsa_open()
407 nchannels); in alsa_open()
520 bytes_per_sec = freq << (nchannels == 2); in alsa_open()
[all …]
Dwavaudio.c132 stereo = wav_as.nchannels == 2; in wav_out_init()
163 le_store (hdr + 22, hw->info.nchannels, 2); in wav_out_init()
257 int nchannels, freq, format, bits; in wav_in_init() local
280 nchannels = le_read( hdr+22, 2 ); in wav_in_init()
288 switch (nchannels) { in wav_in_init()
293 nchannels, path); in wav_in_init()
307 if (format*8/nchannels != bits) { in wav_in_init()
309 bits, format*8/nchannels, path); in wav_in_init()
313 wav_as.nchannels = nchannels; in wav_in_init()
430 {"DAC_FIXED_CHANNELS", AUD_OPT_INT, &conf_out.settings.nchannels,
Daudio.c617 dolog ("frequency=%d nchannels=%d fmt=", as->freq, as->nchannels); in audio_print_settings()
662 invalid = as->nchannels != 1 && as->nchannels != 2; in audio_validate_settings()
705 && info->nchannels == as->nchannels in audio_pcm_info_eq()
739 info->nchannels = as->nchannels; in audio_pcm_init_info()
740 info->shift = (as->nchannels == 2) + shift; in audio_pcm_init_info()
765 int shift = info->nchannels - 1; in audio_pcm_info_clear_buf()
782 int shift = info->nchannels - 1; in audio_pcm_info_clear_buf()
931 hw, sw->info.freq, sw->info.bits, sw->info.nchannels); in audio_attach_capture()
1177 cap, info->bits, info->sign, info->freq, info->nchannels); in audio_pcm_print_info()
1650 {"DAC_FIXED_CHANNELS", AUD_OPT_INT, &conf.fixed_out.settings.nchannels,
[all …]
Daudio_template.h162 [sw->info.nchannels == 2] in glue()
293 [hw->info.nchannels == 2] in glue()
423 name, as->freq, as->nchannels, as->fmt); in glue()
452 SW_NAME (sw), sw->info.freq, sw->info.bits, sw->info.nchannels); in glue()
457 nchannels); in glue()
Ddsoundaudio.c314 wfx->nChannels = as->nchannels; in waveformat_from_audio_settings()
316 wfx->nAvgBytesPerSec = as->freq << (as->nchannels == 2); in waveformat_from_audio_settings()
317 wfx->nBlockAlign = 1 << (as->nchannels == 2); in waveformat_from_audio_settings()
364 as->nchannels = 1; in waveformat_to_audio_settings()
368 as->nchannels = 2; in waveformat_to_audio_settings()
1048 {"PRIMARY_CHANNELS", AUD_OPT_INT, &conf.settings.nchannels,
Daudio.h50 int nchannels; member
172 int bits, int nchannels);
Dwinaudio.c175 format.nChannels = as->nchannels; in winaudio_out_init()
177 format.nAvgBytesPerSec = as->freq*as->nchannels; in winaudio_out_init()
422 format.nChannels = as->nchannels; in winaudio_in_init()
424 format.nAvgBytesPerSec = as->freq*as->nchannels; in winaudio_in_init()
Dsdlaudio.c527 shift <<= as->nchannels == 2; in sdl_init_out()
531 req.channels = as->nchannels; in sdl_init_out()
555 obt_as.nchannels = obt.channels; in sdl_init_out()
Desdaudio.c175 esdfmt |= (as->nchannels == 2) ? ESD_STEREO : ESD_MONO; in qesd_init_out()
332 esdfmt |= (as->nchannels == 2) ? ESD_STEREO : ESD_MONO; in qesd_init_in()
Dfmodaudio.c364 mode = aud_to_fmodfmt (as->fmt, as->nchannels == 2 ? 1 : 0); in fmod_init_out()
430 mode = aud_to_fmodfmt (as->fmt, as->nchannels == 2 ? 1 : 0); in fmod_init_in()
Daudio_int.h62 int nchannels; member
Ddsound_template.h278 hw->bufsize, settings.freq, settings.nchannels, settings.fmt); in dsound_init_in()
/external/qemu/hw/
Dgoldfish_audio.c578 as.nchannels = 2; in goldfish_audio_init()
599 as.nchannels = 1; in goldfish_audio_init()
/external/qemu/
Dvnc.c1809 vs->as.nchannels = read_u8(data, 5); in protocol_client_msg()
1810 if (vs->as.nchannels != 1 && vs->as.nchannels != 2) { in protocol_client_msg()
2075 vs->as.nchannels = 2; in vnc_connect()
Dvnc-android.c1815 vs->as.nchannels = read_u8(data, 5); in protocol_client_msg()
1816 if (vs->as.nchannels != 1 && vs->as.nchannels != 2) { in protocol_client_msg()
2081 vs->as.nchannels = 2; in vnc_connect()
Dmonitor.c1518 int has_channels, int nchannels) in do_wav_capture() argument
1526 nchannels = has_channels ? nchannels : 2; in do_wav_capture()
1528 if (wav_start_capture (s, path, freq, bits, nchannels)) { in do_wav_capture()
/external/esd/include/
Daudiofile.h469 void afInitChannels (AFfilesetup, int track, int nchannels);