Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioTypeMux.cc74 unsigned int channels; in Convert() local
86 channels = outhdr.channels; in Convert()
87 if (channels == 1) { in Convert()
104 if (inhdr.channels == outhdr.channels) in Convert()
106 if ((inhdr.channels != 1) && (outhdr.channels != 1)) in Convert()
117 if (channels == 1) { in Convert()
121 channels = inhdr.channels; in Convert()
124 for (i = 0; i < channels; i++) { in Convert()
142 for (i = 0; i < channels; i++) { in Convert()
181 for (channels = 0; ; channels++) { in Convert()
[all …]
H A DAudioTypeChannel.cc99 if (inhdr.channels == outhdr.channels) in Convert()
101 if ((inhdr.channels != 1) && (outhdr.channels != 1)) in Convert()
108 newhdr.channels = outhdr.channels; in Convert()
112 if ((inhdr.channels > 1) && (newhdr.channels == 1)) { in Convert()
130 chans = inhdr.channels; in Convert()
133 if ((chans > 1) && (newhdr.channels == 1)) { in Convert()
173 } else if ((chans == 1) && (newhdr.channels > 1)) { in Convert()
175 chans = newhdr.channels; in Convert()
H A DAudioHdr.cc60 channels = 0; in Clear()
71 (sample_rate < 1) || (channels < 1)) in Validate()
129 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Time()
132 ((double)(channels * bytes_per_unit * sample_rate) / in Bytes_to_Time()
149 ((double)(channels * bytes_per_unit * sample_rate) / in Time_to_Bytes()
153 offset -= (offset % (bytes_per_unit * channels)); in Time_to_Bytes()
166 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Bytes()
179 cnt -= (cnt % (bytes_per_unit * channels)); in Bytes_to_Bytes()
214 return (bytes_per_unit * channels); in FrameLength()
H A Dhdr_misc.c51 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_bytes_to_secs()
67 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_secs_to_bytes()
71 offset -= (offset % (hp->bytes_per_unit * hp->channels)); in audio_secs_to_bytes()
193 (h1->channels != h2->channels) || in audio_cmp_hdr()
225 switch (hdrp->channels) { in audio_enc_to_str()
238 (void) sprintf(cbuf, "%u-channel", hdrp->channels); break; in audio_enc_to_str()
H A Dfilehdr.c156 tmp_uint = size / channels / bytes_per_sample; in audio_rewrite_aiff_filesize()
262 unsigned int channels, unsigned int bytes_per_sample) in audio_rewrite_filesize() argument
288 return (audio_rewrite_aiff_filesize(fd, size, channels, in audio_rewrite_filesize()
520 short channels; in decode_aiff() local
583 &channels); in decode_aiff()
585 hdrp->channels = channels; in decode_aiff()
661 AUDIO_AU_FILE2HOST(&fhdr.au_channels, &hdrp->channels); in decode_au()
930 tmp_ushort = hdrp->channels; in audio_encode_aiff()
1100 AUDIO_AU_HOST2FILE(&hdrp->channels, &fhdr.au_channels); in audio_encode_au()
1188 bytes_per_second = hdrp->sample_rate * hdrp->channels * in audio_encode_wav()
[all …]
H A Ddevice_ctl.c96 prinfo->channels = hdrp->channels; in audio__setplayhdr()
110 hdrp->channels = prinfo->channels; in audio__setplayhdr()
H A DAudioTypeG72X.cc58 if (h.channels != 1) in CanConvert()
125 (inhdr.channels != outhdr.channels)) in Convert()
136 4 * outhdr.bytes_per_unit * outhdr.channels); in Convert()
H A DAudioGain.cc261 for (i = 0; i < frames; i++, inptr += inhdr.channels) { in process_dcfilter()
308 for (i = 0; i < frames; i++, inptr += inhdr.channels) { in process_instant()
375 for (i = 0; i < frames; i++, inptr += inhdr.channels) { in process_weighted()
H A DAudioUnixfile.cc143 hdr_local.channels = ohdr.channels; in decode_filehdr()
211 ohdr.channels = hdr_local.channels; in encode_filehdr()
H A DAudioHdrParse.cc102 switch (channels) { in ChannelString()
113 (void) sprintf(str, "%d-channel", channels); in ChannelString()
312 channels = (unsigned int) chan; in ChannelParse()
H A DAudioTypePcm.cc236 (inhdr.channels != outhdr.channels)) in Convert()
259 * inhdr.channels; in Convert()
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c625 demux(1, cnt / File_hdr.channels); in main()
628 cnt / File_hdr.channels, in main()
646 demux(3, cnt / File_hdr.channels); in main()
649 cnt / File_hdr.channels, in main()
713 cnt / File_hdr.channels, in main()
732 cnt / File_hdr.channels); in main()
734 c < File_hdr.channels; in main()
739 File_hdr.channels, in main()
1025 in_ch_size = insiz / File_hdr.channels; in initmux()
1040 for (c = 0; c < File_hdr.channels; c++) { in initmux()
[all …]
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioHdr.h126 unsigned int channels; // # of interleaved channels variable
132 channels(0), encoding(NONE) in AudioHdr()
143 channels(hdr.channels), in AudioHdr()
193 hdr.channels = channels; in Audio_hdr()
205 (channels == tst.channels) &&
H A Daudio_hdr.h94 unsigned channels; /* # of interleaved channels */ member
/illumos-gate/usr/src/cmd/bhyve/
H A Daudio.c130 int format, channels, rate; in audio_set_params() local
173 channels = params->channels; in audio_set_params()
174 err = ioctl(audio_fd, SNDCTL_DSP_CHANNELS, &channels); in audio_set_params()
177 params->channels, errno); in audio_set_params()
182 if (channels != params->channels) { in audio_set_params()
184 channels, params->channels); in audio_set_params()
H A Daudio.h44 int channels; member
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Dwavedata.c70 int channels = 1; in uncompress_wave() local
85 channels = le_int(&hdr[p + 10], 2); in uncompress_wave()
142 for (i = 0; i < channels; i++) { in uncompress_wave()
147 for (i = 0; i < channels; i++) { in uncompress_wave()
152 for (i = 0; i < channels; i++) { in uncompress_wave()
158 for (i = 0; i < channels; i++) { in uncompress_wave()
164 while (n < (wSamplesPerBlock * 2 * channels)) in uncompress_wave()
165 for (i = 0; i < channels; i++) { in uncompress_wave()
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dconvert.cc232 n = ihdr.channels; // save the target number of buffers in add_mux_convert()
233 ihdr.channels = 1; // each output buffer will be mono in add_mux_convert()
237 ihdr.channels = bufs; // set the target interleave in add_mux_convert()
305 if (((ihdr.channels != 1) && (tochans != 1)) || (bufs != 1)) in add_channel_convert()
311 if (!conv->CanConvert(ihdr) || (ihdr.channels != 1)) { in add_channel_convert()
324 ihdr.channels = tochans; in add_channel_convert()
540 #define IS_MONO(ihp) (ihp.channels == 1)
546 #define CHAN_CONV(ihp, ohp) (ihp.channels != ohp.channels)
599 } else if (ihdr.channels != 1) { in build_conversion_list()
657 ihdr, ohdr.channels, bufs); in build_conversion_list()
[all …]
H A Dparse.cc112 hdr.channels = 2; in audioformat_parse()
118 hdr.channels = 2; in audioformat_parse()
124 hdr.channels = 1; in audioformat_parse()
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_sun.c259 prinfo->channels = 1; in devaudio_proc_alloc()
280 prinfo->channels = 1; in devaudio_proc_alloc()
581 info->play.channels = auclnt_get_channels(sp); in devaudio_proc_update()
605 info->record.channels = auclnt_get_channels(sp); in devaudio_proc_update()
727 if (writer && CHANGED(npr, opr, channels)) { in devaudio_ioc_setinfo()
728 if ((isctl) || (npr->channels < 1) || (npr->channels > 2)) { in devaudio_ioc_setinfo()
765 if (reader && CHANGED(npr, opr, channels)) { in devaudio_ioc_setinfo()
766 if ((isctl) || (npr->channels < 1) || (npr->channels > 2)) { in devaudio_ioc_setinfo()
818 if (CHANGED(npr, opr, channels)) { in devaudio_ioc_setinfo()
819 if ((rv = auclnt_set_channels(sp, npr->channels)) != 0) in devaudio_ioc_setinfo()
[all …]
/illumos-gate/usr/src/common/mc/imc/
H A Dimc_dump.c199 nvlist_t *channels[IMC_MAX_CHANPERMC]; in imc_dump_mc() local
208 channels[i] = imc_dump_channel(&mc->icn_channels[i]); in imc_dump_mc()
210 fnvlist_add_nvlist_array(nvl, "icn_channels", channels, i); in imc_dump_mc()
212 nvlist_free(channels[i]); in imc_dump_mc()
478 nvlist_t **channels; in imc_restore_mc() local
487 nvlist_lookup_nvlist_array(nvl, "icn_channels", &channels, in imc_restore_mc()
493 if (!imc_restore_channel(channels[i], &mc->icn_channels[i])) { in imc_restore_mc()
/illumos-gate/usr/src/cmd/lp/model/
H A Dlp.tsol_separator.c245 char *channels = NULL; in EmitLabelInfo() local
269 if (label_to_str(FileLabel, &channels, PRINTER_CHANNELS, in EmitLabelInfo()
287 (void) printf("\t/Job_Channels (%s) def\n", channels); in EmitLabelInfo()
294 free(channels); in EmitLabelInfo()
/illumos-gate/usr/src/uts/common/io/audio/drv/audiocmihd/
H A Daudiocmihd.c676 int channels; in cmediahd_reset_port() local
698 channels = 0; in cmediahd_reset_port()
701 channels = 1; in cmediahd_reset_port()
704 channels = 2; in cmediahd_reset_port()
707 channels = 3; in cmediahd_reset_port()
710 channels = 0x0; in cmediahd_reset_port()
735 channels = 0x0; in cmediahd_reset_port()
738 channels = 0x1; in cmediahd_reset_port()
741 channels = 0x2; in cmediahd_reset_port()
744 channels = 0x4; in cmediahd_reset_port()
[all …]
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Dmem_addr.c266 int channels, channels1; in channels_interleave() local
270 channels = 0; in channels_interleave()
271 (void) address_to_channel(node, addr, 0, 0, 0, &channels); in channels_interleave()
273 channels = 0; in channels_interleave()
275 (void) address_to_channel(0, addr, 0, 0, 0, &channels); in channels_interleave()
277 channels += channels1; in channels_interleave()
279 return (channels); in channels_interleave()
/illumos-gate/usr/src/cmd/audio/audiorecord/
H A Daudiorecord.c428 Channels = File_hdr.channels; in main()
528 Dev_hdr.channels = Channels; in main()
705 Dev_hdr.channels, Dev_hdr.bytes_per_unit); in main()

123