Home
last modified time | relevance | path

Searched refs:sampleRate (Results 1 – 25 of 79) sorted by relevance

1234

/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/modulator/
DCatRom2.java39 private int sampleRate = 100; field in CatRom2
45 public CatRom2(final int sampleRate) { in CatRom2() argument
46 this.sampleRate = sampleRate; in CatRom2()
47 this.table = new float[4 * sampleRate + 1]; in CatRom2()
48 for (int i = 0; i < 4 * sampleRate + 1; i++) { in CatRom2()
49 float x = i / (float) sampleRate; in CatRom2()
59 public static CatRom2 getInstance(final int sampleRate) { in getInstance() argument
60 if (!CatRom2.instances.containsKey(sampleRate)) { in getInstance()
61 CatRom2.instances.put(sampleRate, new CatRom2(sampleRate)); in getInstance()
63 return CatRom2.instances.get(sampleRate); in getInstance()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/audio/
DAudioData.java47 protected int sampleRate; field in AudioData
92 return sampleRate; in getSampleRate()
101 public void setupFormat(int channels, int bitsPerSample, int sampleRate){ in setupFormat() argument
107 this.sampleRate = sampleRate; in setupFormat()
DAudioBuffer.java71 int bytesPerSec = (bitsPerSample / 8) * channels * sampleRate; in getDuration()
82 ", rate="+sampleRate+", duration="+getDuration()+"]"; in toString()
/external/sonic/
Dwave.c21 int sampleRate; member
169 int sampleRate) in writeHeader() argument
181 writeInt(file, sampleRate); /* 24 - samples per second (numbers per second) */ in writeHeader()
182 writeInt(file, sampleRate * 2); /* 28 - bytes per second */ in writeHeader()
210 file->sampleRate = readInt(file); /* 24 - samples per second (numbers per second) */ in readHeader()
242 int *sampleRate, in openInputWaveFile() argument
259 *sampleRate = file->sampleRate; in openInputWaveFile()
267 int sampleRate, in openOutputWaveFile() argument
279 file->sampleRate = sampleRate; in openOutputWaveFile()
281 writeHeader(file, sampleRate); in openOutputWaveFile()
Dmain.c26 int sampleRate, in runSonic() argument
29 sonicStream stream = sonicCreateStream(sampleRate, numChannels); in runSonic()
83 int sampleRate, numChannels; in main() local
125 inFile = openInputWaveFile(inFileName, &sampleRate, &numChannels); in main()
129 outFile = openOutputWaveFile(outFileName, sampleRate, numChannels); in main()
135 sampleRate, numChannels); in main()
DSonic.java41 private int sampleRate; field in Sonic
178 int sampleRate, in allocateStreamBuffers() argument
181 minPeriod = sampleRate/SONIC_MAX_PITCH; in allocateStreamBuffers()
182 maxPeriod = sampleRate/SONIC_MIN_PITCH; in allocateStreamBuffers()
191 this.sampleRate = sampleRate; in allocateStreamBuffers()
200 int sampleRate, in Sonic() argument
203 allocateStreamBuffers(sampleRate, numChannels); in Sonic()
217 return sampleRate; in getSampleRate()
222 int sampleRate) in setSampleRate() argument
224 allocateStreamBuffers(sampleRate, numChannels); in setSampleRate()
[all …]
Dsonic.c45 int sampleRate; member
209 int sampleRate, in allocateStreamBuffers() argument
212 int minPeriod = sampleRate/SONIC_MAX_PITCH; in allocateStreamBuffers()
213 int maxPeriod = sampleRate/SONIC_MIN_PITCH; in allocateStreamBuffers()
239 stream->sampleRate = sampleRate; in allocateStreamBuffers()
253 int sampleRate, in sonicCreateStream() argument
261 if(!allocateStreamBuffers(stream, sampleRate, numChannels)) { in sonicCreateStream()
279 return stream->sampleRate; in sonicGetSampleRate()
286 int sampleRate) in sonicSetSampleRate() argument
289 allocateStreamBuffers(stream, sampleRate, stream->numChannels); in sonicSetSampleRate()
[all …]
Dsonic.h74 sonicStream sonicCreateStream(int sampleRate, int numChannels);
129 void sonicSetSampleRate(sonicStream stream, int sampleRate);
138 float rate, float volume, int useChordPitch, int sampleRate, int numChannels);
143 float rate, float volume, int useChordPitch, int sampleRate, int numChannels);
DMain.java29 int sampleRate, in runSonic() argument
32 Sonic sonic = new Sonic(sampleRate, numChannels); in runSonic()
72 int sampleRate = (int)format.getSampleRate(); in main() local
80 sampleRate, numChannels); in main()
Dwave.h12 waveFile openInputWaveFile(char *fileName, int *sampleRate, int *numChannels);
13 waveFile openOutputWaveFile(char *fileName, int sampleRate, int numChannels);
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/
DAudioSampleEntry.java55 private long sampleRate; field in AudioSampleEntry
82 return sampleRate; in getSampleRate()
133 public void setSampleRate(long sampleRate) { in setSampleRate() argument
134 this.sampleRate = sampleRate; in setSampleRate()
199 sampleRate = IsoTypeReader.readUInt32(content); in _parseDetails()
201 sampleRate = sampleRate >>> 16; in _parseDetails()
242 ", sampleRate=" + sampleRate + in toString()
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/
DAppleLosslessSpecificBox.java32 private long sampleRate; // 32bit field in AppleLosslessSpecificBox
115 return sampleRate; in getSampleRate()
118 public void setSampleRate(int sampleRate) { in setSampleRate() argument
119 this.sampleRate = sampleRate; in setSampleRate()
136 sampleRate = IsoTypeReader.readUInt32(content); in _parseDetails()
152 IsoTypeWriter.writeUInt32(byteBuffer, sampleRate); in getContent()
/external/aac/libAACenc/src/
Dbandwidth.cpp198 const INT sampleRate, in GetBandwidthEntry() argument
213 switch (sampleRate) { in GetBandwidthEntry()
289 INT sampleRate, in FDKaacEnc_DetermineBandWidth() argument
334 *bandWidth = FDKmin(proposedBandWidth, FDKmin(20000, sampleRate>>1)); in FDKaacEnc_DetermineBandWidth()
362 sampleRate, in FDKaacEnc_DetermineBandWidth()
376 *bandWidth = FDKmin(*bandWidth, sampleRate/2); in FDKaacEnc_DetermineBandWidth()
Daacenc.cpp114 INT sampleRate);
401 switch (config->sampleRate) in FDKaacEnc_Initialize()
429 config->sampleRate, in FDKaacEnc_Initialize()
478 config->sampleRate); in FDKaacEnc_Initialize()
484 …config->ancDataBitRate += ( (hAacEnc->ancillaryBitsPerFrame * config->sampleRate) / config->framel… in FDKaacEnc_Initialize()
492 FIXP_DBL tmp = fDivNorm(config->framelength, config->sampleRate, &q_res); in FDKaacEnc_Initialize()
516 config->sampleRate, in FDKaacEnc_Initialize()
540 config->sampleRate, in FDKaacEnc_Initialize()
581 qcInit.sampleRate = config->sampleRate; in FDKaacEnc_Initialize()
584 qcInit.padding.paddingRest = config->sampleRate; in FDKaacEnc_Initialize()
[all …]
Dpnsparam.cpp188 int FDKaacEnc_lookUpPnsUse (int bitRate, int sampleRate, int numChan, const int isLC) { in FDKaacEnc_lookUpPnsUse() argument
213 switch (sampleRate) { in FDKaacEnc_lookUpPnsUse()
242 INT sampleRate, in FDKaacEnc_GetPnsParam() argument
267 hUsePns = FDKaacEnc_lookUpPnsUse (bitRate, sampleRate, numChan, isLC); in FDKaacEnc_GetPnsParam()
279 sampleRate, in FDKaacEnc_GetPnsParam()
Dpnsparam.h128 int FDKaacEnc_lookUpPnsUse (int bitRate, int sampleRate, int numChan, const int isLC);
134 INT sampleRate,
/external/aac/libPCMutils/src/
Dlimiter.cpp100 unsigned int sampleRate, maxSampleRate; member
164 limiter->sampleRate = maxSampleRate; in createLimiter()
406 TDLIMITER_ERROR setLimiterSampleRate(TDLimiterPtr limiter, unsigned int sampleRate) in setLimiterSampleRate() argument
414 if (sampleRate > limiter->maxSampleRate) return TDLIMIT_INVALID_PARAMETER; in setLimiterSampleRate()
417 attack = (unsigned int)(limiter->attackMs * sampleRate / 1000); in setLimiterSampleRate()
418 release = (unsigned int)(limiter->releaseMs * sampleRate / 1000); in setLimiterSampleRate()
433 limiter->sampleRate = sampleRate; in setLimiterSampleRate()
453 attack = (unsigned int)(attackMs * limiter->sampleRate / 1000); in setLimiterAttack()
477 release = (unsigned int)(releaseMs * limiter->sampleRate / 1000); in setLimiterRelease()
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/audio/plugins/
DWAVLoader.java80 int sampleRate = in.readInt(); in readFormatChunk() local
87 int expectedBytesPerSec = (bitsPerSample * channels * sampleRate) / 8; in readFormatChunk()
99 if (bytesPerSample * sampleRate != bytesPerSec) in readFormatChunk()
102 audioData.setupFormat(channels, bitsPerSample, sampleRate); in readFormatChunk()
/external/aac/libSYS/include/
Dwav_file.h147 UINT sampleRate; member
206 INT WAV_OutputOpen(HANDLE_WAV *pWav, const char *outputFilename, INT sampleRate, INT numChannels, I…
/external/aac/libMpegTPEnc/src/
Dtpenc_adif.cpp109 INT sampleRate = adif->samplingRate; in adifWrite_EncodeHeader() local
147 …transportEnc_writePCE(hBs, adif->cm, sampleRate, adif->instanceTag, adif->profile, 0, 0, alignAnch… in adifWrite_EncodeHeader()
Dtpenc_asc.cpp221 INT sampleRate, in transportEnc_writePCE() argument
233 sampleRateIndex = getSamplingRateIndex(sampleRate); in transportEnc_writePCE()
357 static void writeSampleRate(HANDLE_FDK_BITSTREAM hBitstreamBuffer, int sampleRate) in writeSampleRate() argument
359 int sampleRateIndex = getSamplingRateIndex(sampleRate); in writeSampleRate()
363 FDKwriteBits( hBitstreamBuffer, sampleRate, 24 ); in writeSampleRate()
/external/aac/libSYS/src/
Dwav_file.cpp163 FDKfread_EL(&(wav->header.sampleRate), 4, 1, wav->fp); in WAV_InputOpen()
385 INT WAV_OutputOpen(HANDLE_WAV *pWav, const char *outputFilename, INT sampleRate, INT numChannels, I… in WAV_OutputOpen() argument
419 wav->header.sampleRate = LittleEndian32(sampleRate); in WAV_OutputOpen()
420 wav->header.bytesPerSecond = LittleEndian32(sampleRate * wav->header.blockAlign); in WAV_OutputOpen()
/external/sonivox/arm-fm-22k/lib_src/
Deas_pcm.c102 static EAS_U32 CalcBaseFreq (EAS_U32 sampleRate);
371 pState->sampleRate = (EAS_U16) pParams->sampleRate; in EAS_PEOpenStream()
374 pState->basefreq = (SRC_RATE_MULTIPLER * (EAS_U32) pParams->sampleRate) >> 15; in EAS_PEOpenStream()
888 static EAS_U32 CalcBaseFreq (EAS_U32 sampleRate) in CalcBaseFreq() argument
895 if (srcConvRate[i][0] == sampleRate) in CalcBaseFreq()
902 return (SRC_RATE_MULTIPLER * (EAS_U32) sampleRate) >> 15; in CalcBaseFreq()
1374 temp = (msecs * pState->sampleRate); in LinearPCMLocate()
1378 temp += secs * pState->sampleRate; in LinearPCMLocate()
/external/sonivox/arm-hybrid-22k/lib_src/
Deas_pcm.c102 static EAS_U32 CalcBaseFreq (EAS_U32 sampleRate);
371 pState->sampleRate = (EAS_U16) pParams->sampleRate; in EAS_PEOpenStream()
374 pState->basefreq = (SRC_RATE_MULTIPLER * (EAS_U32) pParams->sampleRate) >> 15; in EAS_PEOpenStream()
888 static EAS_U32 CalcBaseFreq (EAS_U32 sampleRate) in CalcBaseFreq() argument
895 if (srcConvRate[i][0] == sampleRate) in CalcBaseFreq()
902 return (SRC_RATE_MULTIPLER * (EAS_U32) sampleRate) >> 15; in CalcBaseFreq()
1374 temp = (msecs * pState->sampleRate); in LinearPCMLocate()
1378 temp += secs * pState->sampleRate; in LinearPCMLocate()
/external/sonivox/arm-wt-22k/lib_src/
Deas_pcm.c102 static EAS_U32 CalcBaseFreq (EAS_U32 sampleRate);
371 pState->sampleRate = (EAS_U16) pParams->sampleRate; in EAS_PEOpenStream()
374 pState->basefreq = (SRC_RATE_MULTIPLER * (EAS_U32) pParams->sampleRate) >> 15; in EAS_PEOpenStream()
888 static EAS_U32 CalcBaseFreq (EAS_U32 sampleRate) in CalcBaseFreq() argument
895 if (srcConvRate[i][0] == sampleRate) in CalcBaseFreq()
902 return (SRC_RATE_MULTIPLER * (EAS_U32) sampleRate) >> 15; in CalcBaseFreq()
1374 temp = (msecs * pState->sampleRate); in LinearPCMLocate()
1378 temp += secs * pState->sampleRate; in LinearPCMLocate()

1234