Home
last modified time | relevance | path

Searched refs:numChannels (Results 1 – 25 of 31) 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/aac/libSBRenc/src/
Dsbr_encoder.cpp165 UINT numChannels,/*! the number of channels for the core coder */ in getSbrTuningTableIndex() argument
182 if ( numChannels == sbrTuningTable [i].numChannels in getSbrTuningTableIndex()
397 UINT numChannels, /*! the core coder number of channels */ in FDKsbrEnc_AdjustSbrSettings() argument
411 config->codecSettings.nChannels = numChannels; in FDKsbrEnc_AdjustSbrSettings()
428 bitRate *= numChannels; in FDKsbrEnc_AdjustSbrSettings()
430 if (numChannels==1) { in FDKsbrEnc_AdjustSbrSettings()
437 idx = getSbrTuningTableIndex(bitRate,numChannels,sampleRateCore, core, NULL); in FDKsbrEnc_AdjustSbrSettings()
481 if (numChannels == 1) { in FDKsbrEnc_AdjustSbrSettings()
1775 UINT sbrEncoder_LimitBitRate(UINT bitRate, UINT numChannels, UINT coreSampleRate, AUDIO_OBJECT_TYPE… in sbrEncoder_LimitBitRate() argument
1780 FDK_ASSERT(numChannels > 0 && numChannels <= 2); in sbrEncoder_LimitBitRate()
[all …]
/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/libSBRenc/include/
Dsbr_encoder.h145 UCHAR numChannels; /*!< */ member
293 UINT sbrEncoder_LimitBitRate(UINT bitRate, UINT numChannels, UINT coreSampleRate, AUDIO_OBJECT_TYPE…
332 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/sonivox/arm-hybrid-22k/host_src/
Deas_main.c123 …wFile = WaveFileCreate(outputFile, pLibConfig->numChannels, pLibConfig->sampleRate, sizeof(EAS_PCM… in PlayFile()
136 … (i = 0, p = buffer; i < NUM_BUFFERS; i++, p+= pLibConfig->mixBufferSize * pLibConfig->numChannels) in PlayFile()
280 …bufferSize = pLibConfig->mixBufferSize * pLibConfig->numChannels * (EAS_I32)sizeof(EAS_PCM) * NUM_… in main()
Deas.h54 EAS_I32 numChannels; member
/external/sonivox/arm-fm-22k/host_src/
Deas_main.c123 …wFile = WaveFileCreate(outputFile, pLibConfig->numChannels, pLibConfig->sampleRate, sizeof(EAS_PCM… in PlayFile()
136 … (i = 0, p = buffer; i < NUM_BUFFERS; i++, p+= pLibConfig->mixBufferSize * pLibConfig->numChannels) in PlayFile()
280 …bufferSize = pLibConfig->mixBufferSize * pLibConfig->numChannels * (EAS_I32)sizeof(EAS_PCM) * NUM_… in main()
Deas.h54 EAS_I32 numChannels; member
/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()
/external/aac/libAACdec/src/
Daacdecoder_lib.cpp900 self->streamInfo.numChannels = self->streamInfo.aacNumChannels; in aacDecoder_DecodeFrame()
916 …MapIdx = ((self->chMapIndex==0) && (self->streamInfo.numChannels<7)) ? self->streamInfo.numChannel… in aacDecoder_DecodeFrame()
948 &self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
997 &self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
1017 setLimiterNChannels(self->hLimiter, self->streamInfo.numChannels); in aacDecoder_DecodeFrame()
Daacdec_drc.h144 int numChannels );
/external/robolectric/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.h311 int *numChannels,
/external/aac/libPCMutils/src/
Dpcmutils_lib.cpp440 const INT numChannels, /* in */ in getChannelMode() argument
473 for (ch = 0; ch < numChannels; ch += 1) { in getChannelMode()
504 chGrpIdx = numChannels + numChToPlace; in getChannelMode()
524 +numChInGrp[CH_GROUP_REAR]+numChInGrp[CH_GROUP_LFE]) == numChannels); in getChannelMode()
526 FDK_ASSERT( numChInGrp[CH_GROUP_FRONT] == numChannels ); in getChannelMode()
674 int grpIdx, ch = 0, numChannels = 0; in getChannelDescription() local
697 numChannels += numChInGrp[grpIdx]; in getChannelDescription()
708 pChannelMap = channelMapping[numChannels]; in getChannelDescription()
/external/aac/libAACdec/include/
Daacdecoder_lib.h540 …INT numChannels; /*!< The number of output audio channels in the decoded and… member
/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)
/external/aac/libSBRdec/src/
Dsbrdecoder.cpp1412 int *numChannels, in sbrDecoder_Apply() argument
1423 int numCoreChannels = *numChannels; in sbrDecoder_Apply()
1505 *numChannels = numSbrChannels; in sbrDecoder_Apply()

12