Searched refs:bytesPerSec (Results 1 – 4 of 4) sorted by relevance
64 private int bytesPerSec; field in WAVLoader82 bytesPerSec = in.readInt(); // used to calculate duration in readFormatChunk()88 if (expectedBytesPerSec != bytesPerSec){ in readFormatChunk()90 new Object[]{expectedBytesPerSec, bytesPerSec}); in readFormatChunk()99 if (bytesPerSample * sampleRate != bytesPerSec) in readFormatChunk()157 duration = len / bytesPerSec; in load()
71 int bytesPerSec = (bitsPerSample / 8) * channels * sampleRate; in getDuration() local73 return (float) audioData.capacity() / bytesPerSec; in getDuration()
195 int bytesPerSec = 2 * streamHdr.getChannels() * streamHdr.getSampleRate(); in computeStreamDuration() local200 return (float)totalBytes / bytesPerSec; in computeStreamDuration()
1442 picoos_uint32 bytesPerSec; in picoos_readWavHeader() local1463 done = done && (PICO_OK == picoos_read_le_uint32(f, &bytesPerSec)); in picoos_readWavHeader()1668 picoos_uint32 bytesPerSec; in picoos_writeWavHeader() local1698 bytesPerSec = (sf * bytesPerSample); in picoos_writeWavHeader()1710 done = done && picoos_write_le_uint32(f,bytesPerSec); in picoos_writeWavHeader()