Home
last modified time | relevance | path

Searched refs:_nchannels (Results 1 – 8 of 8) sorted by relevance

/external/libopus/src/
Dopus_compare.c54 static size_t read_pcm16(float **_samples,FILE *_fin,int _nchannels){ in read_pcm16() argument
64 nread=fread(buf,2*_nchannels,1024/(2*_nchannels),_fin); in read_pcm16()
70 _nchannels*csamples*sizeof(*samples)); in read_pcm16()
74 for(ci=0;ci<_nchannels;ci++){ in read_pcm16()
76 s=buf[2*(xi*_nchannels+ci)+1]<<8|buf[2*(xi*_nchannels+ci)]; in read_pcm16()
78 samples[(nsamples+xi)*_nchannels+ci]=s; in read_pcm16()
84 _nchannels*nsamples*sizeof(*samples)); in read_pcm16()
89 const float *_in,int _nchannels,size_t _nframes,int _window_sz, in band_energy() argument
98 window=(float *)opus_malloc((3+_nchannels)*_window_sz*sizeof(*window)); in band_energy()
116 for(ci=0;ci<_nchannels;ci++){ in band_energy()
[all …]
/external/python/cpython3/Lib/
Dwave.py199 return self._nchannels
247 self._soundpos = self._soundpos + len(data) // (self._nchannels * self._sampwidth)
255 …wFormatTag, self._nchannels, self._framerate, dwAvgBytesPerSec, wBlockAlign = struct.unpack_from('…
261 self._framesize = self._nchannels * self._sampwidth
306 self._nchannels = 0
332 self._nchannels = nchannels
335 if not self._nchannels:
337 return self._nchannels
396 if not self._nchannels or not self._sampwidth or not self._framerate:
398 return _wave_params(self._nchannels, self._sampwidth, self._framerate,
[all …]
Dsunau.py209 self._nchannels = int(_read_u32(file))
210 self._framesize = self._framesize * self._nchannels
225 return self._nchannels
329 self._nchannels = 0
344 self._nchannels = nchannels
347 if not self._nchannels:
349 return self._nchannels
454 if not self._nchannels:
483 self._framesize = self._framesize * self._nchannels
500 _write_u32(self._file, self._nchannels)
Daifc.py385 return self._nchannels
440 self._soundpos = self._soundpos + len(data) // (self._nchannels
465 self._nchannels = _read_short(chunk)
469 self._framesize = self._nchannels * self._sampwidth
576 self._nchannels = 0
614 self._nchannels = nchannels
617 if not self._nchannels:
619 return self._nchannels
687 if not self._nchannels or not self._sampwidth or not self._framerate:
689 return _aifc_params(self._nchannels, self._sampwidth, self._framerate,
[all …]
/external/python/cpython2/Lib/
Dwave.py193 return self._nchannels
244 nitems = nframes * self._nchannels
261 self._soundpos = self._soundpos + len(data) // (self._nchannels * self._sampwidth)
269 …wFormatTag, self._nchannels, self._framerate, dwAvgBytesPerSec, wBlockAlign = struct.unpack('<HHLL…
275 self._framesize = self._nchannels * self._sampwidth
320 self._nchannels = 0
340 self._nchannels = nchannels
343 if not self._nchannels:
345 return self._nchannels
404 if not self._nchannels or not self._sampwidth or not self._framerate:
[all …]
Daifc.py335 if self._nchannels == 1:
337 elif self._nchannels == 2:
372 return self._nchannels
427 self._soundpos = self._soundpos + len(data) // (self._nchannels * self._sampwidth)
438 return self._decomp.Decompress(len(data) // self._nchannels,
455 self._nchannels = _read_short(chunk)
459 self._framesize = self._nchannels * self._sampwidth
585 self._nchannels = 0
618 self._nchannels = nchannels
621 if not self._nchannels:
[all …]
Dsunau.py196 self._nchannels = int(_read_u32(file))
197 self._framesize = self._framesize * self._nchannels
215 return self._nchannels
305 self._nchannels = 0
320 self._nchannels = nchannels
323 if not self._nchannels:
325 return self._nchannels
425 if not self._nchannels:
451 self._framesize = self._framesize * self._nchannels
468 _write_u32(self._file, self._nchannels)
/external/python/cpython2/Lib/plat-mac/
DAudio_mac.py14 self._nchannels = 1
42 self._nchannels = nchannels
52 nframes = len(data) / self._nchannels / self._sampwidth
53 if len(data) != nframes * self._nchannels * self._sampwidth:
57 self._qsize / self._nchannels / self._sampwidth:
64 self._nchannels,
95 return filled / self._nchannels / self._sampwidth
98 return (self._qsize / self._nchannels / self._sampwidth) - self.getfilled()