Home
last modified time | relevance | path

Searched refs:numChannels (Results 1 – 25 of 30) sorted by relevance

12

/external/sonic/
Dsonic.c34 int numChannels; member
210 int numChannels) in allocateStreamBuffers() argument
217 stream->inputBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); in allocateStreamBuffers()
223 stream->outputBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); in allocateStreamBuffers()
229 stream->pitchBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); in allocateStreamBuffers()
240 stream->numChannels = numChannels; in allocateStreamBuffers()
254 int numChannels) in sonicCreateStream() argument
261 if(!allocateStreamBuffers(stream, sampleRate, numChannels)) { in sonicCreateStream()
289 allocateStreamBuffers(stream, sampleRate, stream->numChannels); in sonicSetSampleRate()
296 return stream->numChannels; in sonicGetNumChannels()
[all …]
DSonic.java30 private int numChannels; field in Sonic
50 newLength *= numChannels; in resize()
69 for(int xSample = 0; xSample < numSamples*numChannels; xSample++) { in move()
70 dest[destPos*numChannels + xSample] = source[sourcePos*numChannels + xSample]; in move()
82 int start = position*numChannels; in scaleSamples()
83 int stop = start + numSamples*numChannels; in scaleSamples()
179 int numChannels) in allocateStreamBuffers() argument
185 inputBuffer = new short[maxRequired*numChannels]; in allocateStreamBuffers()
187 outputBuffer = new short[maxRequired*numChannels]; in allocateStreamBuffers()
189 pitchBuffer = new short[maxRequired*numChannels]; in allocateStreamBuffers()
[all …]
Dwave.c20 int numChannels; member
209 file->numChannels = readShort(file); /* 22 - mono or stereo? 1 or 2? (or 5 or ???) */ in readHeader()
243 int *numChannels) in openInputWaveFile() argument
260 *numChannels = file->numChannels; in openInputWaveFile()
268 int numChannels) in openOutputWaveFile() argument
280 file->numChannels = numChannels; in openOutputWaveFile()
335 if(maxSamples*file->numChannels*2 > WAVE_BUF_LEN) { in readFromWaveFile()
336 maxSamples = WAVE_BUF_LEN/(file->numChannels*2); in readFromWaveFile()
338 bytesRead = readBytes(file, bytes, maxSamples*file->numChannels*2); in readFromWaveFile()
339 samplesRead = bytesRead/(file->numChannels*2); in readFromWaveFile()
[all …]
Dmain.c27 int numChannels) in runSonic() argument
29 sonicStream stream = sonicCreateStream(sampleRate, numChannels); in runSonic()
40 samplesRead = readFromWaveFile(inFile, inBuffer, BUFFER_SIZE/numChannels); in runSonic()
48 BUFFER_SIZE/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.h74 sonicStream sonicCreateStream(int sampleRate, int numChannels);
133 void sonicSetNumChannels(sonicStream stream, int numChannels);
138 float rate, float volume, int useChordPitch, int sampleRate, int numChannels);
143 float rate, float volume, int useChordPitch, int sampleRate, int numChannels);
DMain.java30 int numChannels) throws IOException in runSonic() argument
32 Sonic sonic = new Sonic(sampleRate, numChannels); in runSonic()
73 int numChannels = format.getChannels(); 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/googlecode/mp4parser/authoring/adaptivestreaming/
DFlatManifestWriterImpl.java454 int numChannels = 0; in getNumChannelsAndMask() local
458 numChannels += 1; in getNumChannelsAndMask()
463 numChannels += 2; in getNumChannelsAndMask()
469 numChannels += 2; in getNumChannelsAndMask()
476 numChannels += 1; in getNumChannelsAndMask()
481 numChannels += 1; in getNumChannelsAndMask()
486 numChannels += 2; in getNumChannelsAndMask()
492 numChannels += 2; in getNumChannelsAndMask()
498 numChannels += 1; in getNumChannelsAndMask()
503 numChannels += 1; in getNumChannelsAndMask()
[all …]
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioManager.java243 private static int getMinOutputFrameSize(int sampleRateInHz, int numChannels) { in getMinOutputFrameSize() argument
244 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinOutputFrameSize()
246 if (numChannels == 1) { in getMinOutputFrameSize()
248 } else if (numChannels == 2) { in getMinOutputFrameSize()
267 private static int getMinInputFrameSize(int sampleRateInHz, int numChannels) { in getMinInputFrameSize() argument
268 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); in getMinInputFrameSize()
269 assertTrue(numChannels == CHANNELS); in getMinInputFrameSize()
/external/webrtc/webrtc/modules/audio_coding/neteq/test/
DRTPencode.cc96 size_t numChannels);
98 int NetEQTest_free_coders(webrtc::NetEqDecoder coder, size_t numChannels);
107 size_t numChannels);
317 size_t numChannels = 1; in main() local
483 numChannels = 2; in main()
577 numChannels); in main()
612 len = fread(org_data, 2, packet_size * numChannels, in_file) / numChannels; in main()
616 stereoDeInterleave(org_data, len * numChannels); in main()
675 &vad, useVAD, bitrate, numChannels); in main()
812 len = fread(org_data, 2, packet_size * numChannels, in_file) / numChannels; in main()
[all …]
/external/aac/libSBRenc/src/
Dsbr_encoder.cpp165 UINT numChannels,/*! the number of channels for the core coder */ in getSbrTuningTableIndex() argument
181 if ( numChannels == sbrTuningTable [i].numChannels in getSbrTuningTableIndex()
396 UINT numChannels, /*! the core coder number of channels */ in FDKsbrEnc_AdjustSbrSettings() argument
410 config->codecSettings.nChannels = numChannels; in FDKsbrEnc_AdjustSbrSettings()
444 bitRate *= numChannels; in FDKsbrEnc_AdjustSbrSettings()
446 if (numChannels==1) { in FDKsbrEnc_AdjustSbrSettings()
453 idx = getSbrTuningTableIndex(bitRate,numChannels,sampleRateCore, core, NULL); in FDKsbrEnc_AdjustSbrSettings()
487 if (numChannels == 1) { in FDKsbrEnc_AdjustSbrSettings()
548 if (numChannels == 1) { in FDKsbrEnc_AdjustSbrSettings()
1866 UINT sbrEncoder_LimitBitRate(UINT bitRate, UINT numChannels, UINT coreSampleRate, AUDIO_OBJECT_TYPE… in sbrEncoder_LimitBitRate() argument
[all …]
/external/webrtc/webrtc/modules/audio_device/android/
Dopensles_common.cc24 configuration.numChannels = kNumChannels; in CreatePcmConfiguration()
33 if (2 == configuration.numChannels) { in CreatePcmConfiguration()
Dopensles_player.cc197 format.numChannels = static_cast<SLuint32>(channels); in CreatePCMConfiguration()
224 if (format.numChannels == 1) in CreatePCMConfiguration()
226 else if (format.numChannels == 2) in CreatePCMConfiguration()
230 << format.numChannels; in CreatePCMConfiguration()
/external/aac/libSYS/include/
Dwav_file.h146 USHORT numChannels; member
206 INT WAV_OutputOpen(HANDLE_WAV *pWav, const char *outputFilename, INT sampleRate, INT numChannels, I…
/external/aac/libAACdec/src/
Daacdecoder_lib.cpp911 self->streamInfo.numChannels = self->streamInfo.aacNumChannels; in aacDecoder_DecodeFrame()
927 int chIdx, numCoreChannel = self->streamInfo.numChannels; in aacDecoder_DecodeFrame()
960 &self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
989 for (chIdx = numCoreChannel; chIdx < self->streamInfo.numChannels; chIdx+=1) { in aacDecoder_DecodeFrame()
1009 &self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
1030 setLimiterNChannels(self->hLimiter, self->streamInfo.numChannels); in aacDecoder_DecodeFrame()
1063 if (timeDataSize_extern < self->streamInfo.numChannels*self->streamInfo.frameSize) { in aacDecoder_DecodeFrame()
1069 …FDKmemcpy(pTimeData_extern, pTimeData, self->streamInfo.numChannels*self->streamInfo.frameSize*siz… in aacDecoder_DecodeFrame()
Daacdec_drc.h144 int numChannels );
/external/aac/libSYS/src/
Dwav_file.cpp162 FDKfread_EL(&(wav->header.numChannels), 2, 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
417 wav->header.numChannels = LittleEndian16((SHORT)numChannels); in WAV_OutputOpen()
418 wav->header.blockAlign = LittleEndian16((SHORT)(numChannels * (bitsPerSample >> 3))); in WAV_OutputOpen()
/external/aac/libSBRenc/include/
Dsbr_encoder.h151 UCHAR numChannels; /*!< */ member
304 UINT sbrEncoder_LimitBitRate(UINT bitRate, UINT numChannels, UINT coreSampleRate, AUDIO_OBJECT_TYPE…
343 INT *numChannels,
/external/sonivox/arm-wt-22k/host_src/
Deas_main.c126 …wFile = WaveFileCreate(outputFile, pLibConfig->numChannels, pLibConfig->sampleRate, sizeof(EAS_PCM… in PlayFile()
139 … (i = 0, p = buffer; i < NUM_BUFFERS; i++, p+= pLibConfig->mixBufferSize * pLibConfig->numChannels) in PlayFile()
283 …bufferSize = pLibConfig->mixBufferSize * pLibConfig->numChannels * (EAS_I32)sizeof(EAS_PCM) * NUM_… in main()
Deas.h54 EAS_I32 numChannels; member
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowMediaRecorder.java53 public void setAudioChannels(int numChannels) { in setAudioChannels() argument
54 audioChannels = numChannels; in setAudioChannels()
/external/aac/libSBRdec/include/
Dsbrdecoder.h312 int *numChannels,
/external/aac/libAACdec/include/
Daacdecoder_lib.h541 …INT numChannels; /*!< The number of output audio channels in the decoded and… member
/external/aac/libPCMutils/src/
Dpcmutils_lib.cpp445 const INT numChannels, /* in */ in getChannelMode() argument
478 for (ch = 0; ch < numChannels; ch += 1) { in getChannelMode()
509 chGrpIdx = numChannels + numChToPlace; in getChannelMode()
529 +numChInGrp[CH_GROUP_REAR]+numChInGrp[CH_GROUP_LFE]) == numChannels); in getChannelMode()
531 FDK_ASSERT( numChInGrp[CH_GROUP_FRONT] == numChannels ); in getChannelMode()
679 int grpIdx, ch = 0, numChannels = 0; in getChannelDescription() local
702 numChannels += numChInGrp[grpIdx]; in getChannelDescription()
713 pChannelMap = channelMapping[numChannels]; in getChannelDescription()
/external/sonivox/jet_tools/JetCreator/
Deas.py601 AudioBufferType = c_ubyte * (2 * self.config.mixBufferSize * self.config.numChannels)
612 …(self.config.libVersion, self.config.maxVoices, self.config.numChannels, self.config.sampleRate, s…
724 stream.setparams((self.config.numChannels, 2, self.config.sampleRate, 0, 'NONE', None))
904 AudioBufferType = c_ubyte * (2 * buf_size * self.config.numChannels)

12