/illumos-gate/usr/src/cmd/audio/include/ |
H A D | AudioHdr.h | 121 unsigned int sample_rate; // samples per second 129 sample_rate(0), samples_per_unit(0), bytes_per_unit(0), in AudioHdr() 138 sample_rate(hdr.sample_rate), in AudioHdr() 188 hdr.sample_rate = sample_rate; in Audio_hdr() 200 return ((sample_rate == tst.sample_rate) &&
|
H A D | audio_hdr.h | 89 unsigned sample_rate; /* samples per second */ member
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioHdr.cc | 55 sample_rate = 0; in Clear() 69 (sample_rate < 1) || (channels < 1)) in Validate() 130 ((double)(channels * bytes_per_unit * sample_rate) / in Bytes_to_Time() 147 ((double)(channels * bytes_per_unit * sample_rate) / in Time_to_Bytes() 191 (double)sample_rate)); in Samples_to_Time() 205 (((double)sec * (double)sample_rate) / (double)samples_per_unit))); in Time_to_Samples()
|
H A D | AudioTypeSampleRate.cc | 62 ((h.sample_rate != output_rate) && (h.sample_rate != input_rate)) || in CanConvert() 104 if ((inhdr.sample_rate != input_rate) || in Convert() 105 (outhdr.sample_rate != output_rate)) { in Convert() 110 if (inhdr.sample_rate == outhdr.sample_rate) { in Convert()
|
H A D | hdr_misc.c | 49 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_bytes_to_secs() 65 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) / in audio_secs_to_bytes() 195 if (h1->sample_rate != h2->sample_rate) in audio_cmp_hdr() 273 (void) sprintf(sbuf, "%.3fkHz", ((double)hdrp->sample_rate / 1000.)); in audio_enc_to_str()
|
H A D | device_ctl.c | 93 prinfo->sample_rate = hdrp->sample_rate; in audio__setplayhdr() 107 hdrp->sample_rate = prinfo->sample_rate; in audio__setplayhdr()
|
H A D | filehdr.c | 577 hdrp->sample_rate = sr; in decode_aiff() 658 AUDIO_AU_FILE2HOST(&fhdr.au_sample_rate, &hdrp->sample_rate); in decode_au() 709 AUDIO_WAV_FILE2HOST_INT(&fhdr.wav_fmt_sample_rate, &hdrp->sample_rate); in decode_wav() 936 convert_to_ieee_extended((double)hdrp->sample_rate, in audio_encode_aiff() 1096 AUDIO_AU_HOST2FILE(&hdrp->sample_rate, &fhdr.au_sample_rate); in audio_encode_au() 1185 bytes_per_second = hdrp->sample_rate * hdrp->channels * in audio_encode_wav() 1194 AUDIO_WAV_HOST2FILE_INT(&hdrp->sample_rate, &fhdr.wav_fmt_sample_rate); in audio_encode_wav()
|
H A D | AudioUnixfile.cc | 138 hdr_local.sample_rate = ohdr.sample_rate; in decode_filehdr() 206 ohdr.sample_rate = hdr_local.sample_rate; in encode_filehdr()
|
H A D | AudioTypeChannel.cc | 92 if ((inhdr.sample_rate != outhdr.sample_rate) || in Convert()
|
H A D | AudioTypeMux.cc | 97 if ((inhdr.sample_rate != outhdr.sample_rate) || in Convert()
|
H A D | AudioTypeG72X.cc | 122 (inhdr.sample_rate != outhdr.sample_rate) || in Convert()
|
H A D | AudioHdrParse.cc | 75 ratek = sample_rate / 1000; in RateString() 76 rateh = sample_rate % 1000; in RateString() 249 sample_rate = (unsigned int) rate; in RateParse()
|
H A D | AudioTypePcm.cc | 231 if ((inhdr.sample_rate != outhdr.sample_rate) || in Convert()
|
H A D | AudioGain.cc | 253 timeconstant = 1. / (inhdr.sample_rate / (double)DCfreq); in process_dcfilter()
|
/illumos-gate/usr/src/cmd/audio/audioconvert/ |
H A D | parse.cc | 111 hdr.sample_rate = 48000; in audioformat_parse() 117 hdr.sample_rate = 44100; in audioformat_parse() 123 hdr.sample_rate = 8000; in audioformat_parse() 233 if (hdr.sample_rate < 1000) { in parse_format()
|
H A D | convert.cc | 481 fromrate = ihdr.sample_rate; in add_rate_convert() 498 ihdr.sample_rate = torate; in add_rate_convert() 539 #define RATE_CONV(ihp, ohp) (ihp.sample_rate != ohp.sample_rate) 619 ohdr.sample_rate, bufs); in build_conversion_list() 699 if ((ohdr.sample_rate < 8000) || (ohdr.sample_rate > 48000)) { in do_convert()
|
H A D | main.cc | 392 hdr.sample_rate = 0; in init_header()
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_sun.c | 260 prinfo->sample_rate = 8000; in devaudio_proc_alloc() 281 prinfo->sample_rate = 8000; in devaudio_proc_alloc() 580 info->play.sample_rate = auclnt_get_rate(sp); in devaudio_proc_update() 594 info->play.sample_rate = 0; in devaudio_proc_update() 604 info->record.sample_rate = auclnt_get_rate(sp); in devaudio_proc_update() 617 info->record.sample_rate = 0; in devaudio_proc_update() 720 if (writer && CHANGED(npr, opr, sample_rate)) { in devaudio_ioc_setinfo() 722 (npr->sample_rate < 5500) || (npr->sample_rate > 48000)) { in devaudio_ioc_setinfo() 758 if (reader && CHANGED(npr, opr, sample_rate)) { in devaudio_ioc_setinfo() 760 (npr->sample_rate < 5500) || (npr->sample_rate > 48000)) { in devaudio_ioc_setinfo() [all …]
|
/illumos-gate/usr/src/cmd/audio/audiotest/ |
H A D | audiotest.c | 233 int sample_rate; in testdsp() local 278 sample_rate = tmp; in testdsp() 279 if (sample_rate != tcfg->rate) { in testdsp() 335 ratio = ((float)total_bytes / (float)sample_rate) * 100.0; in testdsp() 337 (float)sample_rate * ratio / 100.0, ratio - 100.0); in testdsp()
|
/illumos-gate/usr/src/cmd/audio/audioplay/ |
H A D | audioplay.c | 525 cnt = BUFFER_LEN * File_hdr.sample_rate * in main() 870 (Dev_hdr.sample_rate - File_hdr.sample_rate)) / in reconfig() 871 (double)File_hdr.sample_rate; in reconfig() 877 prog, Ifile, File_hdr.sample_rate, in reconfig() 878 Dev_hdr.sample_rate); in reconfig() 884 prog, Ifile, File_hdr.sample_rate); in reconfig()
|
/illumos-gate/usr/src/cmd/audio/audiorecord/ |
H A D | audiorecord.c | 426 Sample_rate = File_hdr.sample_rate; in main() 524 Dev_hdr.sample_rate = Sample_rate; in main() 578 ((double)Dev_hdr.sample_rate / 1000.), in main() 580 ((double)File_hdr.sample_rate / 1000.)); in main()
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | audio.h | 48 uint32_t sample_rate; member
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | audioio.h | 54 uint_t sample_rate; /* samples per second */ member
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audiohd/ |
H A D | audiohd.h | 854 uint32_t sample_rate; member 985 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_state::sample_rate))
|
H A D | audiohd.c | 510 return (statep->sample_rate); in audiohd_engine_rate() 3048 statep->sample_rate = 48000; in audiohd_create_codec() 3053 statep->sample_rate = 192000; in audiohd_create_codec() 3056 statep->sample_rate = 96000; in audiohd_create_codec() 3058 statep->sample_rate = 48000; in audiohd_create_codec() 5027 switch (statep->sample_rate) { in audiohd_allocate_port() 5053 statep->sample_rate / 48000; in audiohd_allocate_port() 5056 statep->sample_rate / 48000; in audiohd_allocate_port()
|