Home
last modified time | relevance | path

Searched refs:numChannels (Results 1 - 25 of 46) sorted by relevance

12

/third_party/pulseaudio/sonic/
H A Dsonic.c34 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 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()
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 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()
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 Dmain.c27 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 Dsonic.h69 /* 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 DMain.java30 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 Dwave.h12 waveFile openInputWaveFile(char *fileName, int *sampleRate, int *numChannels);
13 waveFile openOutputWaveFile(char *fileName, int sampleRate, int numChannels);
/third_party/libsnd/src/ALAC/
H A Dalac_decoder.c102 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 Dalac_encoder.c967 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 DALACDecoder.h41 int32_t Decode (struct BitBuffer * bits, uint8_t * sampleBuffer, uint32_t numSamples, uint32_t numChannels, uint32_t * outNumSamples) ;
H A Dalac_decoder.h59 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 DvktRobustnessVertexAccessTests.cpp284 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 DvktRobustnessVertexAccessTests.cpp288 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 DSampleBuffer.cpp56 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 DOneShotSampleSource.cpp25 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 DDataSource.h31 virtual void mixAudio(float* outBuff, int numChannels, int numFrames) = 0;
H A DOneShotSampleSource.h33 virtual void mixAudio(float* outBuff, int numChannels, int32_t numFrames);
/third_party/skia/src/core/
H A DSkYUVAPixmaps.cpp42 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 DOpenSLESUtilities.cpp70 format_pcm_ex.numChannels = format.numChannels; in OpenSLES_createExtendedFormat()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
H A DvktImageLoadStoreUtil.cpp118 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 DvktImageLoadStoreUtil.cpp118 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 DTestInputActivity.java104 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 DSkYUVAPixmaps.h68 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 DDrumPlayerJNI.cpp48 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 Dlibfdk-aacdec.c141 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()

Completed in 14 milliseconds

12