/third_party/alsa-utils/bat/ |
H A D | bat.c | 47 static void get_snr_thd_db(struct bat *bat, char *thd) in get_snr_thd_db() argument 56 fprintf(bat->err, _("Invalid threshold '%s':%d\n"), thd, err); in get_snr_thd_db() 59 bat->snr_thd_db = thd_db; in get_snr_thd_db() 63 static void get_snr_thd_pc(struct bat *bat, char *thd) in get_snr_thd_pc() argument 72 fprintf(bat->err, _("Invalid threshold '%s':%d\n"), thd, err); in get_snr_thd_pc() 75 bat->snr_thd_db = 20.0 * log10f(100.0 / thd_pc); in get_snr_thd_pc() 78 static int get_duration(struct bat *bat) in get_duration() argument 116 get_sine_frequencies(struct bat *bat, char *freq) get_sine_frequencies() argument 130 get_format(struct bat *bat, char *optarg) get_format() argument 174 test_loopback(struct bat *bat) test_loopback() argument 246 test_playback(struct bat *bat) test_playback() argument 280 test_capture(struct bat *bat) test_capture() argument 313 usage(struct bat *bat) usage() argument 349 set_defaults(struct bat *bat) set_defaults() argument 388 parse_arguments(struct bat *bat, int argc, char *argv[]) parse_arguments() argument 498 validate_options(struct bat *bat) validate_options() argument 539 bat_init(struct bat *bat) bat_init() argument 655 struct bat bat; main() local [all...] |
H A D | latencytest.c | 25 #include "bat-signal.h" 36 static float sumaudio(struct bat *bat, short int *buffer, int frames) in sumaudio() argument 44 for (n = 0; n < bat->channels; n++) { in sumaudio() 50 sum = sum / bat->channels; in sumaudio() 55 static void play_and_listen(struct bat *bat, void *buffer, int frames) in play_and_listen() argument 63 int num = bat->latency.number; in play_and_listen() 65 averageinput = (int) (sumaudio(bat, buffer, frames) / frames); in play_and_listen() 69 if (averageinput > bat in play_and_listen() 158 calculate_threshold(struct bat *bat) calculate_threshold() argument 171 roundtrip_latency_init(struct bat *bat) roundtrip_latency_init() argument 187 handleinput(struct bat *bat, void *buffer, int frames) handleinput() argument 227 handleoutput(struct bat *bat, void *buffer, int bytes, int frames) handleoutput() argument [all...] |
H A D | alsa.c | 60 static int format_convert(struct bat *bat, snd_pcm_format_t *fmt) in format_convert() argument 65 if (t->format_bat == bat->format) { in format_convert() 70 fprintf(bat->err, _("Invalid format!\n")); in format_convert() 74 static int set_snd_pcm_params(struct bat *bat, struct pcm_container *sndpcm) in set_snd_pcm_params() argument 87 err = format_convert(bat, &format); in set_snd_pcm_params() 97 fprintf(bat->err, _("Set parameter to device error: ")); in set_snd_pcm_params() 98 fprintf(bat->err, _("default params: %s: %s(%d)\n"), in set_snd_pcm_params() 107 fprintf(bat in set_snd_pcm_params() 306 write_to_pcm(const struct pcm_container *sndpcm, int frames, struct bat *bat) write_to_pcm() argument 347 latencytest_process_output(struct pcm_container *sndpcm, struct bat *bat) latencytest_process_output() argument 381 write_to_pcm_loop(struct pcm_container *sndpcm, struct bat *bat) write_to_pcm_loop() argument 441 playback_alsa(struct bat *bat) playback_alsa() argument 510 read_from_pcm(struct pcm_container *sndpcm, int frames, struct bat *bat) read_from_pcm() argument 548 read_from_pcm_loop(struct pcm_container *sndpcm, struct bat *bat) read_from_pcm_loop() argument 606 latencytest_process_input(struct pcm_container *sndpcm, struct bat *bat) latencytest_process_input() argument 675 record_alsa(struct bat *bat) record_alsa() argument [all...] |
H A D | analyze.c | 30 #include "bat-signal.h" 32 static void check_amplitude(struct bat *bat, float *buf) in check_amplitude() argument 38 for (i = 0, sum = 0.0, average = 0.0; i < bat->frames; i++) in check_amplitude() 40 average = sum / bat->frames; in check_amplitude() 43 for (i = 0, sum = 0.0; i < bat->frames; i++) in check_amplitude() 45 amplitude = sum / bat->frames * M_PI / 2.0; in check_amplitude() 48 percent = amplitude * 100 / ((1 << ((bat->sample_size << 3) - 1)) - 1); in check_amplitude() 50 fprintf(bat->log, _("Amplitude: %.1f; Percentage: [%d]\n"), in check_amplitude() 53 fprintf(bat in check_amplitude() 66 check_peak(struct bat *bat, struct analyze *a, int end, int peak, float hz, float mean, float p, int channel, int start) check_peak() argument 105 check(struct bat *bat, struct analyze *a, int channel) check() argument 164 calc_magnitude(struct bat *bat, struct analyze *a, int N) calc_magnitude() argument 178 find_and_check_harmonics(struct bat *bat, struct analyze *a, int channel) find_and_check_harmonics() argument 230 calculate_noise_one_period(struct bat *bat, struct noise_analyzer *na, float *src, int length, int channel) calculate_noise_one_period() argument 290 calculate_noise(struct bat *bat, float *src, int channel) calculate_noise() argument 374 find_and_check_noise(struct bat *bat, void *buf, int channel) find_and_check_noise() argument 396 reorder_data(struct bat *bat) reorder_data() argument 425 truncate_frames(struct bat *bat) truncate_frames() argument 438 analyze_capture(struct bat *bat) analyze_capture() argument [all...] |
H A D | tinyalsa.c | 44 static int format_convert(struct bat *bat, struct pcm_config *config) in format_convert() argument 49 if (t->format_bat == bat->format) { in format_convert() 54 fprintf(bat->err, _("Invalid format!\n")); in format_convert() 58 static int init_config(struct bat *bat, struct pcm_config *config) in init_config() argument 60 config->channels = bat->channels; in init_config() 61 config->rate = bat->rate; in init_config() 62 if (bat->period_size > 0) in init_config() 63 config->period_size = bat in init_config() 88 check_param(struct bat *bat, struct pcm_params *params, unsigned int param, unsigned int value, char *param_name, char *param_unit) check_param() argument 118 check_playback_params(struct bat *bat, struct pcm_config *config) check_playback_params() argument 163 latencytest_process_output(struct bat *bat, struct pcm *pcm, void *buffer, int bytes) latencytest_process_output() argument 197 play_sample(struct bat *bat, struct pcm *pcm, void *buffer, int bytes) play_sample() argument 251 get_tiny_device(struct bat *bat, char *alsa_device, unsigned int *tiny_card, unsigned int *tiny_device) get_tiny_device() argument 283 playback_tinyalsa(struct bat *bat) playback_tinyalsa() argument 384 capture_sample(struct bat *bat, struct pcm *pcm, void *buffer, unsigned int bytes) capture_sample() argument 429 latencytest_process_input(struct bat *bat, struct pcm *pcm, void *buffer, unsigned int bytes) latencytest_process_input() argument 479 record_tinyalsa(struct bat *bat) record_tinyalsa() argument [all...] |
H A D | common.c | 28 #include "bat-signal.h" 33 /* update chunk_fmt data to bat */ 34 static int update_fmt_to_bat(struct bat *bat, struct chunk_fmt *fmt) in update_fmt_to_bat() argument 36 bat->channels = fmt->channels; in update_fmt_to_bat() 37 bat->rate = fmt->sample_rate; in update_fmt_to_bat() 38 bat->sample_size = fmt->sample_length / 8; in update_fmt_to_bat() 39 if (bat->sample_size > 4) { in update_fmt_to_bat() 40 fprintf(bat->err, _("Invalid format: sample size=%d\n"), in update_fmt_to_bat() 41 bat in update_fmt_to_bat() 50 update_frames_to_bat(struct bat *bat, struct wav_chunk_header *header, FILE *file ATTRIBUTE_UNUSED) update_frames_to_bat() argument 63 read_chunk_fmt(struct bat *bat, char *file, FILE *fp, bool skip, struct wav_chunk_header *header) read_chunk_fmt() argument 97 read_wav_header(struct bat *bat, char *file, FILE *fp, bool skip) read_wav_header() argument 162 prepare_wav_info(struct wav_container *wav, struct bat *bat) prepare_wav_info() argument 180 write_wav_header(FILE *fp, struct wav_container *wav, struct bat *bat) write_wav_header() argument 204 update_wav_header(struct bat *bat, FILE *fp, int bytes) update_wav_header() argument 226 generate_input_data(struct bat *bat, void *buffer, int bytes, int frames) generate_input_data() argument [all...] |
H A D | signal.c | 91 static int reorder(struct bat *bat, float *val, int frames) in reorder() argument 96 bytes = frames * bat->channels * sizeof(float); in reorder() 100 fprintf(bat->err, _("Not enough memory.\n")); in reorder() 106 for (c = 0; c < bat->channels; c++) in reorder() 107 val[i * bat->channels + c] = in reorder() 114 static int adjust_waveform(struct bat *bat, float *val, int frames, in adjust_waveform() argument 120 switch (bat->format) { in adjust_waveform() 135 fprintf(bat in adjust_waveform() 148 generate_sine_wave(struct bat *bat, int frames, void *buf) generate_sine_wave() argument 190 generate_sine_wave_raw_mono(struct bat *bat, float *buf, float freq, int nsamples) generate_sine_wave_raw_mono() argument [all...] |
H A D | common.h | 21 #define TEMP_RECORD_FILE_NAME "/tmp/bat.wav.XXXXXX" 145 struct bat; 178 void *(*fct)(struct bat *); 215 struct bat { struct 265 void prepare_wav_info(struct wav_container *, struct bat *); 266 int read_wav_header(struct bat *, char *, FILE *, bool); 267 int write_wav_header(FILE *, struct wav_container *, struct bat *); 268 int update_wav_header(struct bat *, FILE *, int); 269 int generate_input_data(struct bat *, void *, int, int);
|
/third_party/protobuf/kokoro/release/python/windows/ |
H A D | build_artifacts.bat | 5 copy kokoro\release\python\windows\build_single_artifact.bat build_single_artifact.bat 38 CALL build_single_artifact.bat || goto :error 43 CALL build_single_artifact.bat || goto :error 48 CALL build_single_artifact.bat || goto :error 53 CALL build_single_artifact.bat || goto :error 58 CALL build_single_artifact.bat || goto :error 63 CALL build_single_artifact.bat || goto :error 68 CALL build_single_artifact.bat || goto :error 73 CALL build_single_artifact.bat || got [all...] |
/third_party/python/Tools/nuget/ |
H A D | build.bat | 28 call "%D%..\msi\get_externals.bat"
29 call "%PCBUILD%find_msbuild.bat" %MSBUILD%
35 if defined REBUILD ( call "%PCBUILD%build.bat" -e -r
36 ) else if not exist "%Py_OutDir%win32\python.exe" call "%PCBUILD%build.bat" -e
44 if defined REBUILD ( call "%PCBUILD%build.bat" -p x64 -e -r
45 ) else if not exist "%Py_OutDir%amd64\python.exe" call "%PCBUILD%build.bat" -p x64 -e
53 if defined REBUILD ( call "%PCBUILD%build.bat" -p ARM -e -r --no-tkinter
54 ) else if not exist "%Py_OutDir%arm32\python.exe" call "%PCBUILD%build.bat" -p ARM -e --no-tkinter
64 echo build.bat [-x86] [-x64] [--out DIR] [-r] [-h]
|
/third_party/python/Tools/msi/ |
H A D | build.bat | 28 call "%D%get_externals.bat"
29 call "%PCBUILD%find_msbuild.bat" %MSBUILD%
33 call "%PCBUILD%build.bat" -p Win32 -d -e %REBUILD% %BUILDTEST%
35 call "%PCBUILD%build.bat" -p Win32 -e %REBUILD% %BUILDTEST%
39 call "%PCBUILD%build.bat" -p x64 -d -e %REBUILD% %BUILDTEST%
41 call "%PCBUILD%build.bat" -p x64 -e %REBUILD% %BUILDTEST%
45 call "%PCBUILD%build.bat" -p ARM64 -d -e %REBUILD% %BUILDTEST%
47 call "%PCBUILD%build.bat" -p ARM64 -e %REBUILD% %BUILDTEST%
52 call "%PCBUILD%..\Doc\make.bat" html
87 echo build.bat [ [all...] |
H A D | buildrelease.bat | 79 call "%D%get_externals.bat"
80 call "%PCBUILD%find_msbuild.bat" %MSBUILD%
87 call "%D%..\..\doc\make.bat" html
107 call "%D%testrelease.bat" -t "%TESTTARGETDIR%"
169 @echo call "%PCBUILD%build.bat" -e -p %BUILD_PLAT% -t %TARGET% %PGOOPTS% %CERTOPTS%
170 @call "%PCBUILD%build.bat" -e -p %BUILD_PLAT% -t %TARGET% %PGOOPTS% %CERTOPTS%
172 @rem build.bat turns echo back on, so we disable it again
175 @echo call "%PCBUILD%build.bat" -d -e -p %BUILD_PLAT% -t %TARGET%
176 @call "%PCBUILD%build.bat" -d -e -p %BUILD_PLAT% -t %TARGET%
178 @rem build.bat turn [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | destructuredDeclarationEmit.js | 4 const foo = { bar: 'hello', bat: 'world', bam: { bork: { bar: 'a', baz: 'b' } } }; 11 const { bar: baz, bat, bam: { bork: { bar: ibar, baz: ibaz } } } = foo; 29 var foo = { bar: 'hello', bat: 'world', bam: { bork: { bar: 'a', baz: 'b' } } };
40 var baz = foo_1.foo.bar, bat = foo_1.foo.bat, _a = foo_1.foo.bam.bork, ibar = _a.bar, ibaz = _a.baz;
57 bat: string;
|
H A D | genericWithNoConstraintComparableWithCurlyCurly.js | 17 function bat<T extends object>() { 46 function bat() {
function
|
/third_party/python/PCbuild/ |
H A D | prepare_ssl.bat | 10 echo.by the get_externals.bat script are sufficient for building CPython.
39 call "%PCBUILD%\find_msbuild.bat" %MSBUILD%
42 call "%PCBUILD%\find_python.bat" "%PYTHON%"
45 call "%PCBUILD%\get_externals.bat" --openssl-src --no-openssl %ORG_SETTING%
|
H A D | prepare_tcltk.bat | 10 echo.by the get_externals.bat script are sufficient for building CPython.
41 call "%PCBUILD%\find_msbuild.bat" %MSBUILD%
44 rem call "%PCBUILD%\find_python.bat" "%PYTHON%"
47 call "%PCBUILD%\get_externals.bat" --tkinter-src %ORG_SETTING%
|
/third_party/python/Tools/buildbot/ |
H A D | clean.bat | 9 call "%pcbuild%\build.bat" -t Clean -k %*
10 call "%pcbuild%\build.bat" -t Clean -k -d %*
|
/third_party/rust/crates/bindgen/ci/ |
H A D | test.bat | 30 call .\ci\assert-no-diff.bat 33 call .\ci\assert-no-diff.bat 36 call .\ci\assert-no-diff.bat
|
/third_party/skia/third_party/externals/imgui/examples/example_sdl_vulkan/ |
H A D | build_win32.bat | 1 @REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler.
|
/third_party/skia/third_party/externals/imgui/examples/example_win32_directx10/ |
H A D | build_win32.bat | 1 @REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler.
|
/third_party/skia/third_party/externals/imgui/examples/example_win32_directx11/ |
H A D | build_win32.bat | 1 @REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler.
|
/third_party/skia/third_party/externals/imgui/examples/example_win32_directx9/ |
H A D | build_win32.bat | 1 @REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler.
|
/third_party/skia/third_party/externals/imgui/examples/example_glfw_opengl2/ |
H A D | build_win32.bat | 1 @REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler.
|
/third_party/skia/third_party/externals/imgui/examples/example_glfw_opengl3/ |
H A D | build_win32.bat | 1 @REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler.
|
/third_party/skia/third_party/externals/imgui/examples/example_sdl_opengl2/ |
H A D | build_win32.bat | 1 @REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler.
|