/external/python/cpython3/Lib/test/ |
D | audiotests.py | 29 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument 34 self.assertEqual(f.getnframes(), nframes) 40 (nchannels, sampwidth, framerate, nframes, comptype, compname)) 44 self.assertEqual(params.nframes, nframes) 74 def check_file(self, testfile, nframes, frames): argument 79 self.assertEqual(f.getnframes(), nframes) 80 self.assertEqual(f.readframes(nframes), frames) 84 f.setnframes(self.nframes) 87 self.nframes, self.comptype, self.compname) 139 f.setnframes(self.nframes) [all …]
|
D | test_sunau.py | 21 nframes = 48 variable in SunauPCM8Test 38 nframes = 48 variable in SunauPCM16Test 57 nframes = 48 variable in SunauPCM24Test 82 nframes = 48 variable in SunauPCM32Test 107 nframes = 48 variable in SunauULAWTest
|
D | test_wave.py | 22 nframes = 48 variable in WavePCM8Test 39 nframes = 48 variable in WavePCM16Test 60 nframes = 48 variable in WavePCM24Test 87 nframes = 48 variable in WavePCM32Test
|
/external/python/cpython2/Lib/test/ |
D | audiotests.py | 51 def check_params(self, f, nchannels, sampwidth, framerate, nframes, argument 56 self.assertEqual(f.getnframes(), nframes) 62 (nchannels, sampwidth, framerate, nframes, comptype, compname)) 79 def check_file(self, testfile, nframes, frames): argument 85 self.assertEqual(f.getnframes(), nframes) 86 self.assertEqual(f.readframes(nframes), frames) 92 f.setnframes(self.nframes) 95 self.nframes, self.comptype, self.compname) 100 f.setnframes(self.nframes) 104 self.check_file(TESTFN, self.nframes, self.frames) [all …]
|
D | test_sunau.py | 19 nframes = 48 variable in SunauPCM8Test 36 nframes = 48 variable in SunauPCM16Test 55 nframes = 48 variable in SunauPCM32Test 80 nframes = 48 variable in SunauULAWTest
|
D | test_wave.py | 22 nframes = 48 variable in WavePCM8Test 39 nframes = 48 variable in WavePCM16Test 66 nframes = 48 variable in WavePCM24Test 93 nframes = 48 variable in WavePCM32Test
|
/external/arm-trusted-firmware/plat/nvidia/tegra/common/drivers/bpmp_ipc/ |
D | ivc.c | 97 if (((wr_count - rd_count) > ivc->nframes) || (wr_count == rd_count)) { in ivc_channel_empty() 116 return ((wr_count - rd_count) >= ivc->nframes); in ivc_channel_full() 140 if (ivc->w_pos == (ivc->nframes - (uint32_t)1U)) { in ivc_advance_tx() 151 if (ivc->r_pos == (ivc->nframes - (uint32_t)1U)) { in ivc_advance_rx() 224 assert(frame < ivc->nframes); in ivc_frame_pointer() 269 if (ivc_channel_avail_count(ivc, ivc->rx_channel) == (ivc->nframes - (uint32_t)1U)) { in tegra_ivc_read() 316 if (ivc_channel_avail_count(ivc, ivc->rx_channel) == (ivc->nframes - (uint32_t)1U)) { in tegra_ivc_read_advance() 567 uint32_t nframes, uint32_t frame_size) in check_ivc_params() argument 575 if (((uint64_t)nframes * (uint64_t)frame_size) >= 0x100000000ULL) { in check_ivc_params() 600 if ((queue_base1 + ((uint64_t)frame_size * nframes)) > queue_base2) { in check_ivc_params() [all …]
|
D | ivc.h | 30 uint32_t nframes; member 35 uint32_t nframes, uint32_t frame_size,
|
/external/adhd/cras/src/server/ |
D | input_data.c | 18 void input_data_run(struct ext_dsp_module *ext, unsigned int nframes) in input_data_run() argument 26 while (nframes) { in input_data_run() 28 writable = MIN(nframes, writable); in input_data_run() 40 nframes -= writable; in input_data_run() 76 unsigned int nframes) in input_data_set_all_streams_read() argument 81 if (float_buffer_level(data->fbuffer) < nframes) { in input_data_set_all_streams_read() 85 nframes, float_buffer_level(data->fbuffer)); in input_data_set_all_streams_read() 89 float_buffer_read(data->fbuffer, nframes); in input_data_set_all_streams_read()
|
D | cras_apm_list.c | 420 void reverse_data_run(struct ext_dsp_module *ext, unsigned int nframes) in reverse_data_run() argument 431 while (nframes) { in reverse_data_run() 434 writable = MIN(nframes, writable); in reverse_data_run() 442 nframes -= writable; in reverse_data_run() 534 unsigned int writable, nframes, nread; in cras_apm_list_process() local 548 nframes = writable; in cras_apm_list_process() 549 while (nframes) { in cras_apm_list_process() 550 nread = nframes; in cras_apm_list_process() 571 nframes -= nread; in cras_apm_list_process()
|
D | cras_loopback_iodev.c | 64 static int sample_hook(const uint8_t *frames, unsigned int nframes, in sample_hook() argument 72 frames_to_copy = MIN(buf_writable(sbuf) / frame_bytes, nframes); in sample_hook() 218 static int put_record_buffer(struct cras_iodev *iodev, unsigned nframes) in put_record_buffer() argument 224 buf_increment_read(sbuf, nframes * frame_bytes); in put_record_buffer() 225 loopdev->read_frames += nframes; in put_record_buffer()
|
/external/adhd/cras/src/tests/ |
D | empty_iodev_unittest.cc | 24 unsigned nframes; in TEST() local 35 nframes = iodev->frames_queued(iodev, &ts); in TEST() 36 ASSERT_EQ(480, nframes); in TEST() 40 nframes = 5000; in TEST() 42 iodev->get_buffer(iodev, &area, &nframes); in TEST() 43 ASSERT_EQ(4096, nframes); in TEST()
|
D | loopback_iodev_unittest.cc | 176 unsigned int nframes = 1024; in TEST_F() local 190 loop_hook(buf_, nframes, &fmt_, loop_in_); in TEST_F() 194 EXPECT_EQ(nframes, nread); in TEST_F() 195 rc = memcmp(area->channels[0].buf, buf_, nframes * kFrameBytes); in TEST_F()
|
/external/u-boot/arch/arm/mach-tegra/ |
D | ivc.c | 92 BUG_ON(frame >= ivc->nframes); in tegra_ivc_frame_addr() 142 if (w_count - r_count > ivc->nframes) in tegra_ivc_channel_empty() 156 ivc->nframes; in tegra_ivc_channel_full() 164 if (ivc->r_pos == ivc->nframes - 1) in tegra_ivc_advance_rx() 175 if (ivc->w_pos == ivc->nframes - 1) in tegra_ivc_advance_tx() 282 ivc->nframes - 1) in tegra_ivc_read_advance() 483 static int check_ivc_params(ulong qbase1, ulong qbase2, uint32_t nframes, in check_ivc_params() argument 495 if ((uint64_t)nframes * (uint64_t)frame_size >= 0x100000000) { in check_ivc_params() 516 if (qbase1 + frame_size * nframes > qbase2) in check_ivc_params() 519 if (qbase2 + frame_size * nframes > qbase1) in check_ivc_params() [all …]
|
/external/libopus/src/ |
D | opus_compare.c | 177 size_t nframes; in main() local 248 nframes=(xlength-TEST_WIN_SIZE+TEST_WIN_STEP)/TEST_WIN_STEP; in main() 249 xb=(float *)opus_malloc(nframes*NBANDS*nchannels*sizeof(*xb)); in main() 250 X=(float *)opus_malloc(nframes*NFREQS*nchannels*sizeof(*X)); in main() 251 Y=(float *)opus_malloc(nframes*yfreqs*nchannels*sizeof(*Y)); in main() 254 band_energy(xb,X,BANDS,NBANDS,x,nchannels,nframes, in main() 257 band_energy(NULL,Y,BANDS,ybands,y,nchannels,nframes, in main() 260 for(xi=0;xi<nframes;xi++){ in main() 316 for(xi=1;xi<nframes;xi++){ in main() 338 for(xi=0;xi<nframes;xi++){ in main() [all …]
|
/external/python/cpython2/Lib/ |
D | sunau.py | 257 def readframes(self, nframes): argument 259 if nframes == AUDIO_UNKNOWN_SIZE: 262 data = self._file.read(nframes * self._framesize) 349 def setnframes(self, nframes): argument 352 if nframes < 0: 354 self._nframes = nframes 377 nchannels, sampwidth, framerate, nframes, comptype, compname = params 381 self.setnframes(nframes) 397 nframes = len(data) // self._framesize 399 self._nframeswritten = self._nframeswritten + nframes
|
D | wave.py | 227 def readframes(self, nframes): argument 234 if nframes == 0: 244 nitems = nframes * self._nchannels 256 data = self._data_chunk.read(nframes * self._framesize) 371 def setnframes(self, nframes): argument 374 self._nframes = nframes 394 nchannels, sampwidth, framerate, nframes, comptype, compname = params 400 self.setnframes(nframes) 423 nframes = len(data) // (self._sampwidth * self._nchannels) 440 self._nframeswritten = self._nframeswritten + nframes
|
/external/python/cpython3/Lib/ |
D | sunau.py | 270 def readframes(self, nframes): argument 272 if nframes == AUDIO_UNKNOWN_SIZE: 275 data = self._file.read(nframes * self._framesize) 376 def setnframes(self, nframes): argument 379 if nframes < 0: 381 self._nframes = nframes 404 nchannels, sampwidth, framerate, nframes, comptype, compname = params 408 self.setnframes(nframes) 426 nframes = len(data) // self._framesize 428 self._nframeswritten = self._nframeswritten + nframes
|
D | wave.py | 234 def readframes(self, nframes): argument 241 if nframes == 0: 243 data = self._data_chunk.read(nframes * self._framesize) 374 def setnframes(self, nframes): argument 377 self._nframes = nframes 397 nchannels, sampwidth, framerate, nframes, comptype, compname = params 403 self.setnframes(nframes) 428 nframes = len(data) // (self._sampwidth * self._nchannels) 435 self._nframeswritten = self._nframeswritten + nframes
|
/external/python/cpython2/Mac/Demo/sound/ |
D | playaiff.py | 12 nframes = min(af.getnframes(), 100000) variable 13 frames = af.readframes(nframes) 29 nframes)
|
/external/adhd/cras/src/alsa_plugin/ |
D | pcm_cras.c | 119 uint8_t *playback_samples, unsigned int nframes, in pcm_cras_process_cb() argument 144 memset(samples, 0, nframes * frame_bytes); in pcm_cras_process_cb() 145 return nframes; in pcm_cras_process_cb() 148 if (nframes > io->period_size) in pcm_cras_process_cb() 149 nframes = io->period_size; in pcm_cras_process_cb() 174 while (copied_frames < nframes) { in pcm_cras_process_cb() 175 snd_pcm_uframes_t frames = nframes - copied_frames; in pcm_cras_process_cb() 203 return nframes; in pcm_cras_process_cb()
|
/external/python/cpython3/Doc/library/ |
D | wave.rst | 111 framerate, nframes, comptype, compname)``, equivalent to output of the 158 *nframes* value must be accurate when the first frame data is written. An 159 accurate *nframes* value can be achieved either by calling 165 the number of frames in the data and set *nframes* accordingly before writing 176 Make sure *nframes* is correct, and close the file if it was opened by 178 an exception if the output stream is not seekable and *nframes* does not 216 The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype, 229 Write audio frames, without correcting *nframes*. 237 Write audio frames and make sure *nframes* is correct. It will raise an 240 previously set value for *nframes*.
|
/external/python/cpython2/Lib/plat-mac/ |
D | Audio_mac.py | 52 nframes = len(data) / self._nchannels / self._sampwidth 53 if len(data) != nframes * self._nchannels * self._sampwidth: 56 self.getfilled() + nframes > \ 70 nframes)
|
/external/adhd/cras/client/libcras/src/ |
D | cras_stream.rs | 98 fn trigger(&mut self, nframes: usize) { in trigger() 101 if let Err(e) = header.commit_written_frames(nframes as u32) { in trigger() 105 if let Err(e) = self.audio_sock.data_ready(nframes as u32) { in trigger() 139 fn trigger(&mut self, nframes: usize) { in trigger() 142 if let Err(e) = header.commit_read_frames(nframes as u32) { in trigger() 146 if let Err(e) = self.audio_sock.capture_ready(nframes as u32) { in trigger()
|
/external/u-boot/arch/arm/include/asm/arch-tegra/ |
D | ivc.h | 71 uint32_t nframes; member 175 uint32_t nframes, uint32_t frame_size,
|