Searched refs:sample_rate (Results 1 - 25 of 28) sorted by relevance

12

/illumos-gate/usr/src/cmd/audio/include/
H A DAudioHdr.h58 // sample_rate Number of samples per second (per channel).
88 // C = (channels * bytes_per_unit * sample_rate) / samples_per_unit
123 unsigned int sample_rate; // samples per second member in class:AudioHdr
131 sample_rate(0), samples_per_unit(0), bytes_per_unit(0),
140 sample_rate(hdr.sample_rate),
190 hdr.sample_rate = sample_rate;
202 return ((sample_rate == tst.sample_rate)
[all...]
H A Daudio_hdr.h49 * sample_rate Number of samples per second (per channel).
86 * C = (channels * bytes_per_unit * sample_rate) / samples_per_unit
91 unsigned sample_rate; /* samples per second */ member in struct:__anon25
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioHdr.cc57 sample_rate = 0;
71 (sample_rate < 1) || (channels < 1))
132 ((double)(channels * bytes_per_unit * sample_rate) /
149 ((double)(channels * bytes_per_unit * sample_rate) /
193 (double)sample_rate));
207 (((double)sec * (double)sample_rate) / (double)samples_per_unit)));
H A DAudioTypeSampleRate.cc62 ((h.sample_rate != output_rate) && (h.sample_rate != input_rate)) ||
102 if ((inhdr.sample_rate != input_rate) ||
103 (outhdr.sample_rate != output_rate)) {
108 if (inhdr.sample_rate == outhdr.sample_rate) {
H A Dhdr_misc.c51 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) /
67 ((double)(hp->channels * hp->bytes_per_unit * hp->sample_rate) /
197 if (h1->sample_rate != h2->sample_rate)
275 (void) sprintf(sbuf, "%.3fkHz", ((double)hdrp->sample_rate / 1000.));
H A Ddevice_ctl.c95 prinfo->sample_rate = hdrp->sample_rate;
109 hdrp->sample_rate = prinfo->sample_rate;
H A DAudioTypeChannel.cc94 if ((inhdr.sample_rate != outhdr.sample_rate) ||
H A DAudioTypeMux.cc99 if ((inhdr.sample_rate != outhdr.sample_rate) ||
H A DAudioUnixfile.cc140 hdr_local.sample_rate = ohdr.sample_rate;
208 ohdr.sample_rate = hdr_local.sample_rate;
H A DAudioTypeG72X.cc124 (inhdr.sample_rate != outhdr.sample_rate) ||
H A Dfilehdr.c579 hdrp->sample_rate = sr;
660 AUDIO_AU_FILE2HOST(&fhdr.au_sample_rate, &hdrp->sample_rate);
711 AUDIO_WAV_FILE2HOST_INT(&fhdr.wav_fmt_sample_rate, &hdrp->sample_rate);
939 convert_to_ieee_extended((double)hdrp->sample_rate,
1099 AUDIO_AU_HOST2FILE(&hdrp->sample_rate, &fhdr.au_sample_rate);
1188 bytes_per_second = hdrp->sample_rate * hdrp->channels *
1197 AUDIO_WAV_HOST2FILE_INT(&hdrp->sample_rate, &fhdr.wav_fmt_sample_rate);
H A DAudioHdrParse.cc75 ratek = sample_rate / 1000;
76 rateh = sample_rate % 1000;
248 sample_rate = (unsigned int) rate;
H A DAudioTypePcm.cc233 if ((inhdr.sample_rate != outhdr.sample_rate) ||
H A DAudioGain.cc255 timeconstant = 1. / (inhdr.sample_rate / (double)DCfreq);
/illumos-gate/usr/src/cmd/cdrw/
H A Daudio.h50 uint32_t sample_rate; member in struct:__anon67
H A Dbstream.c502 (CPU_TO_LE32(wav->sample_rate) != 44100) ||
/illumos-gate/usr/src/cmd/audio/audioconvert/
H A Dparse.cc113 hdr.sample_rate = 48000;
119 hdr.sample_rate = 44100;
125 hdr.sample_rate = 8000;
235 if (hdr.sample_rate < 1000) {
H A Dconvert.cc483 fromrate = ihdr.sample_rate;
500 ihdr.sample_rate = torate;
541 #define RATE_CONV(ihp, ohp) (ihp.sample_rate != ohp.sample_rate)
621 ohdr.sample_rate, bufs);
701 if ((ohdr.sample_rate < 8000) || (ohdr.sample_rate > 48000)) {
H A Dmain.cc395 hdr.sample_rate = 0;
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_sun.c260 prinfo->sample_rate = 8000;
281 prinfo->sample_rate = 8000;
580 info->play.sample_rate = auclnt_get_rate(sp);
594 info->play.sample_rate = 0;
604 info->record.sample_rate = auclnt_get_rate(sp);
617 info->record.sample_rate = 0;
720 if (writer && CHANGED(npr, opr, sample_rate)) {
722 (npr->sample_rate < 5500) || (npr->sample_rate > 48000)) {
758 if (reader && CHANGED(npr, opr, sample_rate)) {
[all...]
/illumos-gate/usr/src/cmd/audio/audiotest/
H A Daudiotest.c233 int sample_rate; local
278 sample_rate = tmp;
279 if (sample_rate != tcfg->rate) {
335 ratio = ((float)total_bytes / (float)sample_rate) * 100.0;
337 (float)sample_rate * ratio / 100.0, ratio - 100.0);
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c521 cnt = BUFFER_LEN * File_hdr.sample_rate *
865 (Dev_hdr.sample_rate - File_hdr.sample_rate)) /
866 (double)File_hdr.sample_rate;
872 prog, Ifile, File_hdr.sample_rate,
873 Dev_hdr.sample_rate);
879 prog, Ifile, File_hdr.sample_rate);
/illumos-gate/usr/src/uts/common/sys/
H A Daudioio.h54 uint_t sample_rate; /* samples per second */ member in struct:audio_prinfo
/illumos-gate/usr/src/cmd/audio/audiorecord/
H A Daudiorecord.c69 /* XXX - the input buffer size should depend on sample_rate */
423 Sample_rate = File_hdr.sample_rate;
521 Dev_hdr.sample_rate = Sample_rate;
575 ((double)Dev_hdr.sample_rate / 1000.),
577 ((double)File_hdr.sample_rate / 1000.));
/illumos-gate/usr/src/uts/common/io/audio/drv/audiohd/
H A Daudiohd.h854 uint32_t sample_rate; member in struct:audiohd_state
985 _NOTE(DATA_READABLE_WITHOUT_LOCK(audiohd_state::sample_rate))

Completed in 76 milliseconds

12