/third_party/pulseaudio/sonic/ |
H A D | sonic.c | 34 int numChannels; member 210 int numChannels) in allocateStreamBuffers() 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() 261 if(!allocateStreamBuffers(stream, sampleRate, numChannels)) { in sonicCreateStream() 289 allocateStreamBuffers(stream, sampleRate, stream->numChannels); in sonicSetSampleRate() 207 allocateStreamBuffers( sonicStream stream, int sampleRate, int numChannels) allocateStreamBuffers() argument 252 sonicCreateStream( int sampleRate, int numChannels) sonicCreateStream() argument 301 sonicSetNumChannels( sonicStream stream, int numChannels) sonicSetNumChannels() argument 735 overlapAdd( int numSamples, int numChannels, short *out, short *rampDown, short *rampUp) overlapAdd() argument 765 overlapAddWithSeparation( int numSamples, int numChannels, int separation, short *out, short *rampDown, short *rampUp) overlapAddWithSeparation() argument 803 int numChannels = stream->numChannels; moveNewSamplesToPitchBuffer() local 826 int numChannels = stream->numChannels; removePitchSamples() local 846 int numChannels = stream->numChannels; adjustPitch() local 907 int numChannels = stream->numChannels; adjustRate() local 963 int numChannels = stream->numChannels; skipPitchPeriod() local 989 int numChannels = stream->numChannels; insertPitchPeriod() local 1124 sonicChangeFloatSpeed( float *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) sonicChangeFloatSpeed() argument 1151 sonicChangeShortSpeed( short *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) sonicChangeShortSpeed() argument [all...] |
H A D | Sonic.java | 30 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() 185 inputBuffer = new short[maxRequired*numChannels]; in allocateStreamBuffers() 187 outputBuffer = new short[maxRequired*numChannels]; in allocateStreamBuffers() 177 allocateStreamBuffers( int sampleRate, int numChannels) allocateStreamBuffers() argument 199 Sonic( int sampleRate, int numChannels) Sonic() argument 234 setNumChannels( int numChannels) setNumChannels() argument 630 overlapAdd( int numSamples, int numChannels, short out[], int outPos, short rampDown[], int rampDownPos, short rampUp[], int rampUpPos) overlapAdd() argument 655 overlapAddWithSeparation( int numSamples, int numChannels, int separation, short out[], int outPos, short rampDown[], int rampDownPos, short rampUp[], int rampUpPos) overlapAddWithSeparation() argument 946 changeFloatSpeed( float samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) changeFloatSpeed() argument 972 sonicChangeShortSpeed( short samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) sonicChangeShortSpeed() argument [all...] |
H A D | wave.c | 20 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() 260 *numChannels = file->numChannels; in openInputWaveFile() 268 int numChannels) in openOutputWaveFile() 280 file->numChannels = numChannels; in openOutputWaveFile() 335 if(maxSamples*file->numChannels*2 > WAVE_BUF_LEN) { in readFromWaveFile() 336 maxSamples = WAVE_BUF_LEN/(file->numChannels* in readFromWaveFile() 240 openInputWaveFile( char *fileName, int *sampleRate, int *numChannels) openInputWaveFile() argument 265 openOutputWaveFile( char *fileName, int sampleRate, int numChannels) openOutputWaveFile() argument [all...] |
H A D | main.c | 27 int numChannels) in runSonic() 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() 17 runSonic( waveFile inFile, waveFile outFile, float speed, float pitch, float rate, float volume, int emulateChordPitch, int quality, int sampleRate, int numChannels) runSonic() 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 | Main.java | 30 int numChannels) throws IOException in runSonic() 32 Sonic sonic = new Sonic(sampleRate, numChannels); in runSonic() 73 int numChannels = format.getChannels(); in main() 80 sampleRate, numChannels); in main() 20 runSonic( AudioInputStream audioStream, SourceDataLine line, float speed, float pitch, float rate, float volume, boolean emulateChordPitch, int quality, int sampleRate, int numChannels) runSonic() argument
|
H A D | wave.h | 12 waveFile openInputWaveFile(char *fileName, int *sampleRate, int *numChannels); 13 waveFile openOutputWaveFile(char *fileName, int sampleRate, int numChannels);
|
/third_party/libsnd/src/ALAC/ |
H A D | alac_decoder.c | 102 theConfig.numChannels = theActualCookie [offsetof (ALACSpecificConfig, numChannels)] ; in alac_decoder_init() 109 p->mNumChannels = theConfig.numChannels ; in alac_decoder_init() 166 uint32_t numChannels = p->mNumChannels ; in alac_decode() local 311 for (i = 0, j = 0 ; i < numSamples ; i++, j += numChannels) in alac_decode() 316 copyPredictorTo20 (p->mMixBufferU, out32, numChannels, numSamples) ; in alac_decode() 321 copyPredictorTo24Shift (p->mMixBufferU, p->u.mShiftBuffer, out32, numChannels, numSamples, bytesShifted) ; in alac_decode() 323 copyPredictorTo24 (p->mMixBufferU, out32, numChannels, numSamples) ; in alac_decode() 328 copyPredictorTo32Shift (p->mMixBufferU, p->u.mShiftBuffer, out32, numChannels, numSamples, bytesShifted) ; in alac_decode() 330 copyPredictorTo32 (p->mMixBufferU, out32, numChannels, numSample in alac_decode() [all...] |
H A D | alac_encoder.c | 967 uint32_t numChannels = p->mNumChannels ; in alac_encode() local 975 if (numChannels == 2) in alac_encode() 988 else if (numChannels == 1) in alac_encode() 1013 for (channelIndex = 0 ; channelIndex < numChannels ;) in alac_encode() 1015 tag = (sChannelMaps [numChannels - 1] & (0x7ul << (channelIndex * 3))) >> (channelIndex * 3) ; in alac_encode() 1024 status = EncodeMono (p, &bitstream, inputBuffer, numChannels, channelIndex, numSamples) ; in alac_encode() 1035 status = EncodeStereo (p, &bitstream, inputBuffer, numChannels, channelIndex, numSamples) ; in alac_encode() 1046 status = EncodeMono (p, &bitstream, inputBuffer, numChannels, channelIndex, numSamples) ; in alac_encode() 1118 config->numChannels = (uint8_t) p->mNumChannels ; in GetConfig() 1148 if (theConfig.numChannels > in alac_get_magic_cookie() [all...] |
H A D | ALACDecoder.h | 41 int32_t Decode (struct BitBuffer * bits, uint8_t * sampleBuffer, uint32_t numSamples, uint32_t numChannels, uint32_t * outNumSamples) ;
|
H A D | alac_decoder.h | 59 int32_t alac_decode (alac_decoder *, struct BitBuffer * bits, uint8_t * sampleBuffer, uint32_t numSamples, uint32_t numChannels, uint32_t * outNumSamples) ;
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/ |
H A D | vktRobustnessVertexAccessTests.cpp | 284 const int numChannels = getNumUsedChannels(mapVkFormat(m_inputFormat).order); in initPrograms() local 285 const deUint32 numScalarsPerVertex = numChannels * 3; // Use 3 identical attributes in initPrograms() 290 if (numChannels == 1) in initPrograms() 310 attributeTypeStr << numChannels; in initPrograms() local 317 for (int chanNdx = 0; chanNdx < numChannels; chanNdx++) in initPrograms() 322 if (numChannels == 1) in initPrograms() 679 const int numChannels = getNumUsedChannels(mapVkFormat(m_inputFormat).order); in VertexAccessInstance() local 681 m_outBufferSize = getBufferSizeInBytes(m_numVertices * m_numInstances * numChannels * 3, VK_FORMAT_R32_UINT); in VertexAccessInstance() 836 const deUint32 numChannels = getNumUsedChannels(mapVkFormat(m_inputFormat).order); in verifyResult() local 837 const deUint32 numScalarsPerVertex = numChannels * in verifyResult() 919 logMsg << "[" << valueNdx % numChannels << "]"; verifyResult() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/robustness/ |
H A D | vktRobustnessVertexAccessTests.cpp | 288 const int numChannels = getNumUsedChannels(mapVkFormat(m_inputFormat).order); in initPrograms() local 289 const deUint32 numScalarsPerVertex = numChannels * 3; // Use 3 identical attributes in initPrograms() 294 if (numChannels == 1) in initPrograms() 314 attributeTypeStr << numChannels; in initPrograms() local 321 for (int chanNdx = 0; chanNdx < numChannels; chanNdx++) in initPrograms() 326 if (numChannels == 1) in initPrograms() 686 const int numChannels = getNumUsedChannels(mapVkFormat(m_inputFormat).order); in VertexAccessInstance() local 688 m_outBufferSize = getBufferSizeInBytes(m_numVertices * m_numInstances * numChannels * 3, VK_FORMAT_R32_UINT); in VertexAccessInstance() 843 const deUint32 numChannels = getNumUsedChannels(mapVkFormat(m_inputFormat).order); in verifyResult() local 844 const deUint32 numScalarsPerVertex = numChannels * in verifyResult() 926 logMsg << "[" << valueNdx % numChannels << "]"; verifyResult() local [all...] |
/third_party/skia/third_party/externals/oboe/samples/iolib/src/main/cpp/player/ |
H A D | SampleBuffer.cpp | 56 void resampleData(const ResampleBlock& input, ResampleBlock* output, int numChannels) { in resampleData() argument 68 numChannels, // channel count in resampleData() 82 inputBuffer += numChannels; in resampleData() 86 outputBuffer += numChannels; in resampleData()
|
H A D | OneShotSampleSource.cpp | 25 void OneShotSampleSource::mixAudio(float* outBuff, int numChannels, int32_t numFrames) { in mixAudio() argument 36 if (numChannels == 1) { in mixAudio() 41 } else if (numChannels == 2) { in mixAudio()
|
H A D | DataSource.h | 31 virtual void mixAudio(float* outBuff, int numChannels, int numFrames) = 0;
|
H A D | OneShotSampleSource.h | 33 virtual void mixAudio(float* outBuff, int numChannels, int32_t numFrames);
|
/third_party/skia/src/core/ |
H A D | SkYUVAPixmaps.cpp | 42 void SkYUVAPixmapInfo::SupportedDataTypes::enableDataType(DataType type, int numChannels) { in enableDataType() argument 43 if (numChannels < 1 || numChannels > 4) { in enableDataType() 46 fDataTypeSupport[static_cast<size_t>(type) + (numChannels - 1)*kDataTypeCnt] = true; in enableDataType() 125 int numChannels = yuvaInfo.numChannelsInPlane(i); in SkYUVAPixmapInfo() local 126 colorTypes[i] = DefaultColorTypeForDataType(dataType, numChannels); in SkYUVAPixmapInfo()
|
/third_party/skia/third_party/externals/oboe/src/opensles/ |
H A D | OpenSLESUtilities.cpp | 70 format_pcm_ex.numChannels = format.numChannels; in OpenSLES_createExtendedFormat()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
H A D | vktImageLoadStoreUtil.cpp | 118 const deUint32 numChannels = getNumUsedChannels(mapTextureFormat(format)); in isRepresentableIntegerValue() local 124 for (deUint32 compNdx = 0; compNdx < numChannels; compNdx++) in isRepresentableIntegerValue() 135 for (deUint32 compNdx = 0; compNdx < numChannels; compNdx++) in isRepresentableIntegerValue()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageLoadStoreUtil.cpp | 118 const deUint32 numChannels = getNumUsedChannels(mapTextureFormat(format)); in isRepresentableIntegerValue() local 124 for (deUint32 compNdx = 0; compNdx < numChannels; compNdx++) in isRepresentableIntegerValue() 135 for (deUint32 compNdx = 0; compNdx < numChannels; compNdx++) in isRepresentableIntegerValue()
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/ |
H A D | TestInputActivity.java | 104 int numChannels = mAudioInputTester.getCurrentAudioStream().getChannelCount(); in updateStreamDisplay() 105 if (numChannels > NUM_VOLUME_BARS) { in updateStreamDisplay() 106 numChannels = NUM_VOLUME_BARS; in updateStreamDisplay() 108 for (int i = 0; i < numChannels; i++) { in updateStreamDisplay()
|
/third_party/skia/include/core/ |
H A D | SkYUVAPixmaps.h | 68 void enableDataType(DataType, int numChannels); 76 * Gets the default SkColorType to use with numChannels channels, each represented as DataType. 79 static constexpr SkColorType DefaultColorTypeForDataType(DataType dataType, int numChannels); 293 int numChannels) { in DefaultColorTypeForDataType() 294 switch (numChannels) { in DefaultColorTypeForDataType() 292 DefaultColorTypeForDataType(DataType dataType, int numChannels) DefaultColorTypeForDataType() argument
|
/third_party/skia/third_party/externals/oboe/samples/drumthumper/src/main/cpp/ |
H A D | DrumPlayerJNI.cpp | 48 JNIEnv* env, jobject, jint numChannels) { in Java_com_plausiblesoftware_drumthumper_DrumPlayer_setupAudioStreamNative() 52 sDTPlayer.setupAudioStream(numChannels); in Java_com_plausiblesoftware_drumthumper_DrumPlayer_setupAudioStreamNative() 47 Java_com_plausiblesoftware_drumthumper_DrumPlayer_setupAudioStreamNative( JNIEnv* env, jobject, jint numChannels) Java_com_plausiblesoftware_drumthumper_DrumPlayer_setupAudioStreamNative() argument
|
/third_party/ffmpeg/libavcodec/ |
H A D | libfdk-aacdec.c | 141 for (i = 0; i < info->numChannels; i++) { in get_stream_info() 151 info->numChannels, in get_stream_info() 220 if (!ch_error && avctx->ch_layout.nb_channels != info->numChannels) { in get_stream_info()
|