Searched refs:_nchannels (Results 1 – 5 of 5) sorted by relevance
/external/libopus/src/ |
D | opus_compare.c | 54 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/cpython2/Lib/ |
D | wave.py | 193 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 …]
|
D | aifc.py | 335 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 …]
|
D | sunau.py | 196 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/ |
D | Audio_mac.py | 14 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()
|