/external/sonic/ |
H A D | wave.h | 12 waveFile openInputWaveFile(char *fileName, int *sampleRate, int *numChannels); 13 waveFile openOutputWaveFile(char *fileName, int sampleRate, int numChannels);
|
H A D | Sonic.java | 30 private int numChannels; field in class:Sonic 50 newLength *= numChannels; 69 for(int xSample = 0; xSample < numSamples*numChannels; xSample++) { 70 dest[destPos*numChannels + xSample] = source[sourcePos*numChannels + xSample]; 82 int start = position*numChannels; 83 int stop = start + numSamples*numChannels; 179 int numChannels) 185 inputBuffer = new short[maxRequired*numChannels]; 187 outputBuffer = new short[maxRequired*numChannels]; 177 allocateStreamBuffers( int sampleRate, int numChannels) argument 199 Sonic( int sampleRate, int numChannels) argument 234 setNumChannels( int numChannels) argument 630 overlapAdd( int numSamples, int numChannels, short out[], int outPos, short rampDown[], int rampDownPos, short rampUp[], int rampUpPos) argument 655 overlapAddWithSeparation( int numSamples, int numChannels, int separation, short out[], int outPos, short rampDown[], int rampDownPos, short rampUp[], int rampUpPos) argument 946 changeFloatSpeed( float samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) argument 972 sonicChangeShortSpeed( short samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) argument [all...] |
H A D | sonic.c | 34 int numChannels; member in struct:sonicStreamStruct 210 int numChannels) 217 stream->inputBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); 223 stream->outputBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); 229 stream->pitchBuffer = (short *)calloc(maxRequired, sizeof(short)*numChannels); 240 stream->numChannels = numChannels; 254 int numChannels) 261 if(!allocateStreamBuffers(stream, sampleRate, numChannels)) { 289 allocateStreamBuffers(stream, sampleRate, stream->numChannels); 207 allocateStreamBuffers( sonicStream stream, int sampleRate, int numChannels) argument 252 sonicCreateStream( int sampleRate, int numChannels) argument 301 sonicSetNumChannels( sonicStream stream, int numChannels) argument 735 overlapAdd( int numSamples, int numChannels, short *out, short *rampDown, short *rampUp) argument 765 overlapAddWithSeparation( int numSamples, int numChannels, int separation, short *out, short *rampDown, short *rampUp) argument 803 int numChannels = stream->numChannels; local 826 int numChannels = stream->numChannels; local 846 int numChannels = stream->numChannels; local 907 int numChannels = stream->numChannels; local 963 int numChannels = stream->numChannels; local 989 int numChannels = stream->numChannels; local 1124 sonicChangeFloatSpeed( float *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) argument 1151 sonicChangeShortSpeed( short *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) argument [all...] |
H A D | main.c | 27 int numChannels) 29 sonicStream stream = sonicCreateStream(sampleRate, numChannels); 40 samplesRead = readFromWaveFile(inFile, inBuffer, BUFFER_SIZE/numChannels); 48 BUFFER_SIZE/numChannels); 83 int sampleRate, numChannels; local 125 inFile = openInputWaveFile(inFileName, &sampleRate, &numChannels); 129 outFile = openOutputWaveFile(outFileName, sampleRate, numChannels); 135 sampleRate, numChannels); 17 runSonic( waveFile inFile, waveFile outFile, float speed, float pitch, float rate, float volume, int emulateChordPitch, int quality, int sampleRate, int numChannels) argument
|
H A D | sonic.h | 69 /* For all of the following functions, numChannels is multiplied by numSamples 73 allocate the stream. Set numChannels to 1 for mono, and 2 for stereo. */ 74 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);
|
H A D | wave.c | 20 int numChannels; member in struct:waveFileStruct 209 file->numChannels = readShort(file); /* 22 - mono or stereo? 1 or 2? (or 5 or ???) */ 243 int *numChannels) 260 *numChannels = file->numChannels; 268 int numChannels) 280 file->numChannels = numChannels; 335 if(maxSamples*file->numChannels*2 > WAVE_BUF_LEN) { 336 maxSamples = WAVE_BUF_LEN/(file->numChannels* 240 openInputWaveFile( char *fileName, int *sampleRate, int *numChannels) argument 265 openOutputWaveFile( char *fileName, int sampleRate, int numChannels) argument [all...] |
H A D | Main.java | 30 int numChannels) throws IOException 32 Sonic sonic = new Sonic(sampleRate, numChannels); 73 int numChannels = format.getChannels(); 80 sampleRate, numChannels); 20 runSonic( AudioInputStream audioStream, SourceDataLine line, float speed, float pitch, float rate, float volume, boolean emulateChordPitch, int quality, int sampleRate, int numChannels) argument
|
/external/webrtc/webrtc/modules/audio_device/android/ |
H A D | opensles_common.cc | 24 configuration.numChannels = kNumChannels; 33 if (2 == configuration.numChannels) {
|
H A D | opensles_player.cc | 197 format.numChannels = static_cast<SLuint32>(channels); 224 if (format.numChannels == 1) 226 else if (format.numChannels == 2) 230 << format.numChannels;
|
/external/aac/libSYS/src/ |
H A D | syslib_channelMapDescr.cpp | 171 if (chIdx < pMapDescr->pMapInfoTab[mapIdx].numChannels) { 191 UINT numChannels = pMapInfo->numChannels; local 193 /* Check for all map values if they are inside the range 0 to numChannels-1 195 if (numChannels < 32) { /* Optimized version for less than 32 channels. 198 for (i = 0; i < numChannels; i += 1) { 201 if (mappedChMask != (((UINT)1 << numChannels) - 1)) { 206 for (i = 0; (i < numChannels) && result; i += 1) { 210 if (value0 > numChannels - 1) { /* out of range? */ 213 for (j = numChannels [all...] |
/external/aac/libSYS/include/ |
H A D | syslib_channelMapDescr.h | 118 UCHAR numChannels; /*!< The number of channels for the channel map which is member in struct:__anon720
|
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/ |
H A D | WebRtcAudioManager.java | 243 private static int getMinOutputFrameSize(int sampleRateInHz, int numChannels) { argument 244 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); 246 if (numChannels == 1) { 248 } else if (numChannels == 2) { 267 private static int getMinInputFrameSize(int sampleRateInHz, int numChannels) { argument 268 final int bytesPerFrame = numChannels * (BITS_PER_SAMPLE / 8); 269 assertTrue(numChannels == CHANNELS);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/adaptivestreaming/ |
H A D | FlatManifestWriterImpl.java | 454 int numChannels = 0; 458 numChannels += 1; 463 numChannels += 2; 469 numChannels += 2; 476 numChannels += 1; 481 numChannels += 1; 486 numChannels += 2; 492 numChannels += 2; 498 numChannels += 1; 503 numChannels [all...] |
/external/deqp/external/vulkancts/modules/vulkan/robustness/ |
H A D | vktRobustnessVertexAccessTests.cpp | 258 const int numChannels = getNumUsedChannels(mapVkFormat(m_inputFormat).order); local 259 const deUint32 numScalarsPerVertex = numChannels * 3; // Use 3 identical attributes 262 if (numChannels == 1) 280 attributeTypeStr << numChannels; local 287 for (int chanNdx = 0; chanNdx < numChannels; chanNdx++) 292 if (numChannels == 1) 611 const int numChannels = getNumUsedChannels(mapVkFormat(m_inputFormat).order); local 613 m_outBufferSize = getBufferSizeInBytes(m_numVertices * m_numInstances * numChannels * 3, VK_FORMAT_R32_UINT); 761 const deUint32 numChannels = getNumUsedChannels(mapVkFormat(m_inputFormat).order); local 762 const deUint32 numScalarsPerVertex = numChannels * 839 logMsg << "[" << valueNdx % numChannels << "]"; local [all...] |
/external/aac/libDRCdec/src/ |
H A D | drcDec_gainDecoder.cpp | 309 const int numChannels, 319 _setChannelGains(hGainDec, numChannels, channelGainDb); 323 for (c = 0; c < numChannels; c++) { 333 for (c = 0; c < numChannels; c++) { 337 _setChannelGains(hGainDec, numChannels, channelGainDb); 340 for (c = 0; c < numChannels; c++) 345 for (c = 0; c < numChannels; c++) { 308 drcDec_GainDecoder_SetChannelGains(HANDLE_DRC_GAIN_DECODER hGainDec, const int numChannels, const int frameSize, const FIXP_DBL* channelGainDb, const int audioBufferChannelOffset, FIXP_DBL* audioBuffer) argument
|
H A D | drcDec_gainDecoder.h | 258 const int numChannels,
|
/external/aac/libAACdec/src/ |
H A D | aacdecoder_lib.cpp | 1151 self->streamInfo.numChannels = 0; 1339 self->streamInfo.numChannels = self->streamInfo.aacNumChannels; 1354 self->streamInfo.numChannels, 1413 int chIdx, numCoreChannel = self->streamInfo.numChannels; 1449 sizeof(INT_PCM) * (self->streamInfo.numChannels) * 1454 timeDataSize, &self->streamInfo.numChannels, 1503 for (chIdx = numCoreChannel; chIdx < self->streamInfo.numChannels; 1518 nChannels = self->streamInfo.numChannels; 1548 self->streamInfo.numChannels = nChannels; 1558 self->streamInfo.numChannels [all...] |
H A D | aacdecoder.h | 217 numChannels). */ 219 channel (from 0 upto numChannels). */ 439 const INT_PCM *pTimeData, INT_PCM **pTimeDataFlush, const INT numChannels, 444 INT_PCM *pTimeData, INT_PCM **pTimeDataFlush, const INT numChannels,
|
/external/webrtc/webrtc/modules/audio_coding/neteq/test/ |
H A D | RTPencode.cc | 96 size_t numChannels); 98 int NetEQTest_free_coders(webrtc::NetEqDecoder coder, size_t numChannels); 107 size_t numChannels); 317 size_t numChannels = 1; local 483 numChannels = 2; 577 numChannels); 612 len = fread(org_data, 2, packet_size * numChannels, in_file) / numChannels; 616 stereoDeInterleave(org_data, len * numChannels); 675 &vad, useVAD, bitrate, numChannels); 909 NetEQTest_init_coders(webrtc::NetEqDecoder coder, size_t enc_frameSize, int bitrate, int sampfreq, int vad, size_t numChannels) argument 1459 NetEQTest_free_coders(webrtc::NetEqDecoder coder, size_t numChannels) argument 1592 NetEQTest_encode(webrtc::NetEqDecoder coder, int16_t* indata, size_t frameLen, unsigned char* encoded, int sampleRate, int* vad, int useVAD, int bitrate, size_t numChannels) argument [all...] |
/external/aac/libSBRenc/src/ |
H A D | sbr_encoder.cpp | 224 UINT numChannels, /*! the number of channels for the core coder */ 238 if (numChannels == sbrTuningTable[i].numChannels && 441 UINT numChannels, /*! the core coder number of channels */ 455 config->codecSettings.nChannels = numChannels; 489 bitRate *= numChannels; 491 if (numChannels == 1) { 499 getSbrTuningTableIndex(bitRate, numChannels, sampleRateCore, core, NULL); 529 if (numChannels == 1) { 606 if (numChannels 222 getSbrTuningTableIndex( UINT bitrate, UINT numChannels, UINT sampleRate, AUDIO_OBJECT_TYPE core, UINT *pBitRateClosest) argument 438 FDKsbrEnc_AdjustSbrSettings( const sbrConfigurationPtr config, UINT bitRate, UINT numChannels, UINT sampleRateCore, UINT sampleRateSbr, UINT transFac, UINT standardBitrate, UINT vbrMode, UINT useSpeechConfig, UINT lcsMode, UINT bParametricStereo, AUDIO_OBJECT_TYPE core) argument 1204 FDKsbrEnc_Downsample( HANDLE_SBR_ENCODER hSbrEncoder, INT_PCM *samples, UINT samplesBufSize, UINT numChannels, UINT *sbrDataBits, UCHAR *sbrData, int clearOutput ) argument 1886 sbrEncoder_LimitBitRate(UINT bitRate, UINT numChannels, UINT coreSampleRate, AUDIO_OBJECT_TYPE aot) argument 1951 sbrEncoder_Init_delay( const int coreFrameLength, const int numChannels, const int downSampleFactor, const int lowDelay, const int usePs, const int is212, const SBRENC_DS_TYPE downsamplingMethod, DELAY_PARAM *hDelayParam ) argument 2066 sbrEncoder_Init(HANDLE_SBR_ENCODER hSbrEncoder, SBR_ELEMENT_INFO elInfo[(8)], int noElements, INT_PCM *inputBuffer, UINT inputBufferBufSize, INT *coreBandwidth, INT *inputBufferOffset, INT *numChannels, const UINT syntaxFlags, INT *coreSampleRate, UINT *downSampleFactor, INT *frameLength, AUDIO_OBJECT_TYPE aot, int *delay, int transformFactor, const int headerPeriod, ULONG statesInitFlag) argument [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowMediaRecorder.java | 53 public void setAudioChannels(int numChannels) { argument 54 audioChannels = numChannels;
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
H A D | ShadowMediaRecorder.java | 56 public void setAudioChannels(int numChannels) { argument 57 audioChannels = numChannels;
|
/external/aac/libSBRenc/include/ |
H A D | sbr_encoder.h | 154 UCHAR numChannels; /*!< */ member in struct:__anon664 312 * \param numChannels The amount of audio channels 317 UINT sbrEncoder_LimitBitRate(UINT bitRate, UINT numChannels, 340 * \param numChannels Input: Encoder input channels. output: core encoder 362 INT *numChannels, const UINT syntaxFlags, INT *sampleRate,
|
/external/sonivox/arm-wt-22k/host_src/ |
H A D | eas_main.c | 126 wFile = WaveFileCreate(outputFile, pLibConfig->numChannels, pLibConfig->sampleRate, sizeof(EAS_PCM) * 8); 139 for (i = 0, p = buffer; i < NUM_BUFFERS; i++, p+= pLibConfig->mixBufferSize * pLibConfig->numChannels) 283 bufferSize = pLibConfig->mixBufferSize * pLibConfig->numChannels * (EAS_I32)sizeof(EAS_PCM) * NUM_BUFFERS; 441 { /* dpp: EAS_ReportEx(_EAS_SEVERITY_INFO, "\tNumber of channels: %d\n", pLibConfig->numChannels); */ }
|
/external/aac/libSBRdec/include/ |
H A D | sbrdecoder.h | 356 * \param numChannels Pointer to a buffer holding the number of channels in 369 int *numChannels, int *sampleRate,
|