Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * create fast path audio player: SL_IID_BUFFERQUEUE and SL_IID_VOLUMEinterfaces ok,
- * NO others!
- */
- SLInterfaceID ids[3] = { SL_IID_BUFFERQUEUE, SL_IID_VOLUME,
- SL_IID_ANDROIDCONFIGURATION};
- SLboolean req[3] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE,SL_BOOLEAN_TRUE};
- result = (*slEngine)->CreateAudioPlayer(slEngine,
- &playerObjectItf_, &audioSrc, &audioSnk,(ids)/sizeof(ids[0]), ids, req);
- SLASSERT(result);
- // Force the use of the earspeaker
- SLAndroidConfigurationItf playerConfig;
- result = (*playerObjectItf_)->GetInterface(playerObjectItf_,
- SL_IID_ANDROIDCONFIGURATION, (void*)&playerConfig);
- SLASSERT(result);
- SLint32 streamType = SL_ANDROID_STREAM_VOICE;
- result = (*playerConfig)->SetConfiguration(playerConfig,
- SL_ANDROID_KEY_STREAM_TYPE,streamType, sizeof(SLint32));
- SLASSERT(result);
- // Output thread
- ...
- 4 Tracks of which 1 are active
- Name Active Client Type Fmt Chn mask Session fCount S F SRate L dB R dB Server Main buf Aux Buf Flags UndFrmCnt
- F 5 no 701 1 00000001 00000003 36 9065 S 1 48000 -inf -inf 00002369 0xb8caf900 0x0 0x600 0
- F 3 yes 4015 0 00000001 00000001 51 480 A 1 48000 0 0 00063F60 0xb8caf900 0x0 0x400 0
- F 1 no 547 1 00000001 00000003 49 4512 S 1 48000 -inf -inf 000011A0 0xb8caf900 0x0 0x600 0
- F 2 no 547 1 00000001 00000003 52 4512 S 1 48000 -inf -inf 000011A0 0xb8caf900 0x0 0x600 0
- 0 Effect Chains
- // Input Thread
- Buffer size: 480 bytes
- Fast capture thread: yes
- Fast track available: no
- ...
- 1 Tracks of which 1 are active
- Active Client Fmt Chn mask Session S Server fCount SRate
- yes 4015 1 00000010 53 6 00064AA0 2048 48000
- 0 Effect Chains
- 01-15 01:07:05.805 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:05.825 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:05.845 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:05.855 9722-11419/com.google.sample.echo D/AUDIO-ECHO: PLAYER CALLBACK
- 01-15 01:07:05.855 9722-11419/com.google.sample.echo D/AUDIO-ECHO: PLAYER CALLBACK
- 01-15 01:07:05.855 9722-11419/com.google.sample.echo D/AUDIO-ECHO: PLAYER CALLBACK
- 01-15 01:07:05.865 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:05.885 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:05.905 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:05.925 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:05.945 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:05.975 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:05.985 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:06.005 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:06.025 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:06.045 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:06.065 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:06.085 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:06.105 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:06.125 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:06.175 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- 01-15 01:07:06.175 9722-11421/com.google.sample.echo D/AUDIO-ECHO: RECORDER CALLBACK
- // Output thread
- ...
- 2 Tracks of which 0 are active
- Name Active Client Type Fmt Chn mask Session fCount S F SRate L dB R dB Server Main buf Aux Buf Flags UndFrmCnt
- 1 no 1218 5 1 00000003 12619 3528 S 1 44100 0 0 00007A56 0xb214a000 0x0 0x400 1768
- 0 no 6326 0 1 00000001 12718 3840 S 1 48000 0 0 00000000 0xb214a000 0x0 0x200 0
- 0 Effect Chains
- // Input thread
- No active record clients
- Fast capture thread: no
- Fast track available: no
- ...
- 1 Tracks of which 0 are active
- Active Client Fmt Chn mask Session S Server fCount SRate
- no 6326 1 00000010 12720 7 00004B00 2880 48000
- 0 Effect Chains
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement