Searched defs:numChannels (Results 1 - 25 of 32) sorted by last modified time

12

/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL.h383 XAuint32 numChannels; member in struct:XADataFormat_PCM_
/frameworks/wilhelm/include/SLES/
H A DOpenSLES.h358 SLuint32 numChannels; member in struct:SLDataFormat_PCM_
/frameworks/wilhelm/src/itf/
H A DIMuteSolo.c33 SLuint8 numChannels = ap->mNumChannels; local
34 if (1 >= numChannels) {
37 } else if (numChannels <= chan) {
73 SLuint8 numChannels = ap->mNumChannels; local
74 if (1 >= numChannels) {
77 } else if (numChannels <= chan) {
105 SLuint8 numChannels = ap->mNumChannels; local
106 if (1 >= numChannels) {
109 } else if (numChannels <= chan) {
145 SLuint8 numChannels local
180 SLuint8 numChannels = ap->mNumChannels; local
[all...]
/frameworks/wilhelm/tests/listening/
H A DslesTest_playMuteSolo.cpp107 SLuint8 numChannels = 0; local
108 SLresult res = (*muteSolo)->GetNumChannels(muteSolo, &numChannels); ExitOnError(res);
109 //fprintf(stdout, "Content has %d channel(s)\n", numChannels);
117 if (numChannels > 1) { // SLMuteSoloItf only works if more than one channel
137 if (numChannels > 1) { // SLMuteSoloItf only works if more than one channel
278 SLuint8 numChannels = 123; local
279 result = (*muteSoloItf)->GetNumChannels(muteSoloItf, &numChannels);
280 printf("GetNumChannels after Realize but before pre-fetch: result=%u, numChannels=%u\n",
281 result, numChannels);
330 numChannels
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dconfigbq.c28 SLuint8 numChannels; member in struct:__anon1722
98 for (format = formats; format->numChannels; ++format) {
100 printf("Channels: %d, sample rate: %u, bits: %u\n", format->numChannels,
109 format_pcm.numChannels = format->numChannels;
150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) /
154 if (2 == format->numChannels) {
166 assert(1 == format->numChannels);
H A Dintbufq.c113 pcm.numChannels = 2;
140 SLuint8 numChannels = 123; local
141 result = (*playerMuteSolo)->GetNumChannels(playerMuteSolo, &numChannels);
142 assert(2 == numChannels);
/frameworks/base/media/java/android/media/
H A DMediaRecorder.java548 * @param numChannels the number of audio channels. Usually it is either 1 (mono) or 2
551 public void setAudioChannels(int numChannels) { argument
552 if (numChannels <= 0) {
555 setParameter("audio-param-number-of-channels=" + numChannels);
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp1542 int32_t numChannels = 0; local
1553 numChannels = (csd[4] >> 3) & 15;
1565 numChannels = (csd[1] >> 3) & 15;
1568 if (numChannels == 0) {
1573 sampleDesc->mFormat->setInt32("channel-count", numChannels);
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp367 size_t frameSize = 2 /* numChannels */ * sizeof(int16_t);
445 int32_t numChannels; local
447 CHECK(mFormat->findInt32(kKeyChannelCount, &numChannels));
450 sampleRate, numChannels);
659 int samplingRate, numChannels, bitrate, numSamples; local
661 header, &frameSize, &samplingRate, &numChannels,
705 mFormat->setInt32(kKeyChannelCount, numChannels);
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4ElementaryAssembler.cpp189 int32_t sampleRate, numChannels; local
191 desc.c_str(), &sampleRate, &numChannels);
193 mChannelConfig = numChannels;
H A DAPacketSource.cpp473 int32_t sampleRate, numChannels; local
475 desc.c_str(), &sampleRate, &numChannels);
478 mFormat->setInt32(kKeyChannelCount, numChannels);
489 int32_t sampleRate, numChannels; local
491 desc.c_str(), &sampleRate, &numChannels);
494 mFormat->setInt32(kKeyChannelCount, numChannels);
496 if (sampleRate != 8000 || numChannels != 1) {
502 int32_t sampleRate, numChannels; local
504 desc.c_str(), &sampleRate, &numChannels);
507 mFormat->setInt32(kKeyChannelCount, numChannels);
553 int32_t sampleRate, numChannels; local
[all...]
H A DARTPWriter.cpp475 int32_t sampleRate, numChannels; local
477 CHECK(mSource->getFormat()->findInt32(kKeyChannelCount, &numChannels));
479 CHECK_EQ(numChannels, 1);
483 sdp.append(StringPrintf("/%d/%d", sampleRate, numChannels));
H A DARawAudioAssembler.cpp134 int32_t sampleRate, numChannels; local
136 desc, &sampleRate, &numChannels);
139 format->setInt32(kKeyChannelCount, numChannels);
H A DASessionDescription.cpp278 const char *desc, int32_t *timescale, int32_t *numChannels) {
289 *numChannels = 1;
297 *numChannels = x;
277 ParseFormatDesc( const char *desc, int32_t *timescale, int32_t *numChannels) argument
H A DMyHandler.h1565 int32_t numChannels; local
1567 formatDesc.c_str(), &timescale, &numChannels);
/frameworks/av/services/audioflinger/
H A Dtest-resample.cpp40 numChannels = nc;
42 byteRate = sr * numChannels * (bits/8);
55 uint16_t numChannels; // num channels member in struct:HeaderWav
/frameworks/base/core/java/android/speech/srec/
H A DWaveHeader.java28 * <li> numChannels - 1 for mono, 2 for stereo.
68 * @param numChannels 1 for mono, 2 for stereo.
73 public WaveHeader(short format, short numChannels, int sampleRate, short bitsPerSample, int numBytes) { argument
76 mNumChannels = numChannels;
111 * @param numChannels 1 for mono, 2 for stereo.
114 public WaveHeader setNumChannels(short numChannels) { argument
115 mNumChannels = numChannels;
272 "WaveHeader format=%d numChannels=%d sampleRate=%d bitsPerSample=%d numBytes=%d",
/frameworks/av/cmds/stagefright/
H A DSineSource.cpp12 SineSource::SineSource(int32_t sampleRate, int32_t numChannels) argument
15 mNumChannels(numChannels),
18 CHECK(numChannels == 1 || numChannels == 2);
H A Dsf2.cpp284 int32_t numChannels, sampleRate; local
285 CHECK(meta->findInt32(kKeyChannelCount, &numChannels));
288 msg->setInt32("channel-count", numChannels);
/frameworks/av/include/media/
H A DSoundPool.h57 int numChannels() { return mNumChannels; } function in class:android::Sample
68 void init(int numChannels, int sampleRate, audio_format_t format, size_t size, argument
70 mNumChannels = numChannels; mSampleRate = sampleRate; mFormat = format; mSize = size;
139 int numChannels() { return mNumChannels; } function in class:android::SoundChannel
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorAudioPlayer.cpp508 int32_t numChannels; local
509 success = format->findInt32(kKeyChannelCount, &numChannels);
514 mSampleRate, numChannels, CHANNEL_MASK_USE_CHANNEL_ORDER, AUDIO_FORMAT_PCM_16_BIT,
537 audio_channel_out_mask_from_count(numChannels),
/frameworks/av/media/libmedia/
H A DIMediaPlayerService.cpp209 int numChannels; local
211 sp<IMemory> player = decode(url, &sampleRate, &numChannels, &format);
213 reply->writeInt32(numChannels);
224 int numChannels; local
226 sp<IMemory> player = decode(fd, offset, length, &sampleRate, &numChannels, &format);
228 reply->writeInt32(numChannels);
H A DSoundPool.cpp498 int numChannels; local
503 p = MediaPlayer::decode(mUrl, &sampleRate, &numChannels, &format);
505 p = MediaPlayer::decode(mFd, mOffset, mLength, &sampleRate, &numChannels, &format);
514 ALOGV("pointer = %p, size = %u, sampleRate = %u, numChannels = %d",
515 p->pointer(), p->size(), sampleRate, numChannels);
522 if ((numChannels < 1) || (numChannels > 2)) {
523 ALOGE("Sample channel count (%d) out of range", numChannels);
534 mNumChannels = numChannels;
580 int numChannels local
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayer.cpp523 int32_t numChannels; local
525 "channel-count", &numChannels));
531 sampleRate, numChannels);
558 numChannels,
/frameworks/av/media/libstagefright/
H A DACodec.cpp962 int32_t numChannels, sampleRate; local
963 if (!msg->findInt32("channel-count", &numChannels)
972 numChannels);
975 int32_t numChannels, sampleRate; local
976 if (!msg->findInt32("channel-count", &numChannels)
989 encoder, numChannels, sampleRate, bitRate, aacProfile,
1001 int32_t numChannels; local
1002 if (!msg->findInt32("channel-count", &numChannels)) {
1005 err = setupG711Codec(encoder, numChannels);
1008 int32_t numChannels, sampleRat local
1035 int32_t numChannels, sampleRate; local
1136 setupAACCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t bitRate, int32_t aacProfile, bool isADTS) argument
1312 setupG711Codec(bool encoder, int32_t numChannels) argument
1319 setupFlacCodec( bool encoder, int32_t numChannels, int32_t sampleRate, int32_t compressionLevel) argument
1347 setupRawAudioFormat( OMX_U32 portIndex, int32_t sampleRate, int32_t numChannels) argument
[all...]

Completed in 2467 milliseconds

12