HomeSort by relevance Sort by last modified time
    Searched full:audioformat (Results 1 - 25 of 235) sorted by null

1 2 3 4 5 6 7 8 910

  /cts/tests/tests/media/src/android/media/cts/
AudioFormatTest.java 20 import android.media.AudioFormat;
26 // AUDIOFORMAT TESTS:
33 // Test case 1: Use Builder to duplicate an AudioFormat with all fields supplied
35 final int TEST_ENCODING = AudioFormat.ENCODING_PCM_16BIT;
37 final int TEST_CONF_POS = AudioFormat.CHANNEL_OUT_5POINT1;
41 final AudioFormat formatToCopy = new AudioFormat.Builder()
44 assertNotNull("Failure to create the AudioFormat to copy", formatToCopy);
46 final AudioFormat copiedFormat = new AudioFormat.Builder(formatToCopy).build()
    [all...]
NonBlockingAudioTrack.java 18 import android.media.AudioFormat;
53 channelConfig = AudioFormat.CHANNEL_OUT_MONO;
56 channelConfig = AudioFormat.CHANNEL_OUT_STEREO;
59 channelConfig = AudioFormat.CHANNEL_OUT_5POINT1;
69 AudioFormat.ENCODING_PCM_16BIT);
78 AudioFormat.ENCODING_PCM_16BIT,
88 AudioFormat audioFormat = (new AudioFormat.Builder())
90 .setEncoding(AudioFormat.ENCODING_PCM_16BIT
    [all...]
AudioTrackTest.java 24 import android.media.AudioFormat;
107 + ", audioFormat="
111 AudioFormat.ENCODING_PCM_16BIT) + ", mode=" + _inTest_mode);
132 AudioTrack.MODE_STREAM, AudioFormat.CHANNEL_CONFIGURATION_MONO,
133 AudioFormat.ENCODING_PCM_16BIT, AudioTrack.STATE_INITIALIZED);
143 AudioTrack.MODE_STREAM, AudioFormat.CHANNEL_CONFIGURATION_STEREO,
144 AudioFormat.ENCODING_PCM_16BIT, AudioTrack.STATE_INITIALIZED);
154 AudioTrack.MODE_STATIC, AudioFormat.CHANNEL_CONFIGURATION_MONO,
155 AudioFormat.ENCODING_PCM_16BIT, AudioTrack.STATE_NO_STATIC_DATA);
165 AudioTrack.MODE_STATIC, AudioFormat.CHANNEL_CONFIGURATION_STEREO
    [all...]
AudioTrackSurroundTest.java 28 import android.media.AudioFormat;
67 private static int mLastPlayedEncoding = AudioFormat.ENCODING_INVALID;
126 case AudioFormat.ENCODING_PCM_16BIT:
130 case AudioFormat.ENCODING_AC3:
134 case AudioFormat.ENCODING_E_AC3:
138 case AudioFormat.ENCODING_DTS:
142 case AudioFormat.ENCODING_DTS_HD:
146 case AudioFormat.ENCODING_IEC61937:
309 return (mInfoPCM16 == null && AudioFormat.isEncodingLinearPcm(mEncoding))
319 case AudioFormat.ENCODING_PCM_16BIT
    [all...]
RoutingTest.java 23 import android.media.AudioFormat;
65 AudioFormat.CHANNEL_OUT_STEREO,
66 AudioFormat.ENCODING_PCM_16BIT);
71 AudioFormat.CHANNEL_OUT_STEREO,
72 AudioFormat.ENCODING_PCM_16BIT,
204 AudioFormat.CHANNEL_OUT_DEFAULT,
205 AudioFormat.ENCODING_PCM_16BIT);
209 41000, AudioFormat.CHANNEL_OUT_DEFAULT,
210 AudioFormat.ENCODING_PCM_16BIT,
358 AudioFormat.CHANNEL_OUT_STEREO
    [all...]
  /frameworks/base/core/java/android/bluetooth/
BluetoothAudioConfig.java 35 public BluetoothAudioConfig(int sampleRate, int channelConfig, int audioFormat) {
38 mAudioFormat = audioFormat;
72 int audioFormat = in.readInt();
73 return new BluetoothAudioConfig(sampleRate, channelConfig, audioFormat);
95 * Returns the channel configuration (either {@link android.media.AudioFormat#CHANNEL_IN_MONO}
96 * or {@link android.media.AudioFormat#CHANNEL_IN_STEREO})
104 * Returns the channel audio format (either {@link android.media.AudioFormat#ENCODING_PCM_16BIT}
105 * or {@link android.media.AudioFormat#ENCODING_PCM_8BIT}
  /frameworks/base/core/java/android/speech/tts/
FileSynthesisCallback.java 19 import android.media.AudioFormat;
102 public int start(int sampleRateInHz, int audioFormat, int channelCount) {
104 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat
107 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT &&
108 audioFormat != AudioFormat.ENCODING_PCM_16BIT &&
109 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) {
110 Log.e(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one "
    [all...]
PlaybackSynthesisCallback.java 19 import android.media.AudioFormat;
125 public int start(int sampleRateInHz, int audioFormat, int channelCount) {
126 if (DBG) Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat + "," + channelCount
128 if (audioFormat != AudioFormat.ENCODING_PCM_8BIT &&
129 audioFormat != AudioFormat.ENCODING_PCM_16BIT &&
130 audioFormat != AudioFormat.ENCODING_PCM_FLOAT) {
131 Log.w(TAG, "Audio format encoding " + audioFormat + " not supported. Please use one "
    [all...]
  /external/libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/
AndroidAudioDevice.java 19 import android.media.AudioFormat;
43 int minSize = AudioTrack.getMinBufferSize(samplingRate, isMono ? AudioFormat.CHANNEL_OUT_MONO
44 : AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_16BIT);
45 track = new AudioTrack(AudioManager.STREAM_MUSIC, samplingRate, isMono ? AudioFormat.CHANNEL_OUT_MONO
46 : AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_16BIT, minSize, AudioTrack.MODE_STREAM);
AndroidAudioRecorder.java 19 import android.media.AudioFormat;
33 int channelConfig = isMono ? AudioFormat.CHANNEL_IN_MONO : AudioFormat.CHANNEL_IN_STEREO;
34 int minBufferSize = AudioRecord.getMinBufferSize(samplingRate, channelConfig, AudioFormat.ENCODING_PCM_16BIT);
35 recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, samplingRate, channelConfig, AudioFormat.ENCODING_PCM_16BIT,
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
TrivialRecorder.java 19 import android.media.AudioFormat;
43 AudioFormat.CHANNEL_IN_MONO,
44 AudioFormat.ENCODING_PCM_16BIT);
49 AudioFormat.CHANNEL_IN_MONO,
50 AudioFormat.ENCODING_PCM_16BIT,
TrivialPlayer.java 19 import android.media.AudioFormat;
42 AudioFormat.CHANNEL_OUT_STEREO,
43 AudioFormat.ENCODING_PCM_16BIT);
48 AudioFormat.CHANNEL_OUT_STEREO,
49 AudioFormat.ENCODING_PCM_16BIT,
  /external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/audio/
JavaSoundAudioRecorder.java 19 import javax.sound.sampled.AudioFormat;
20 import javax.sound.sampled.AudioFormat.Encoding;
34 AudioFormat format = new AudioFormat(Encoding.PCM_SIGNED, samplingRate, 16, isMono ? 1 : 2, isMono ? 2 : 4,
  /external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/audio/
JavaSoundAudioRecorder.java 19 import javax.sound.sampled.AudioFormat;
20 import javax.sound.sampled.AudioFormat.Encoding;
34 AudioFormat format = new AudioFormat(Encoding.PCM_SIGNED, samplingRate, 16, isMono ? 1 : 2, isMono ? 2 : 4,
  /frameworks/base/docs/html/sdk/api_diff/21/changes/
android.media.AudioFormat.html 10 android.media.AudioFormat
74 Class android.media.<A HREF="../../../../reference/android/media/AudioFormat.html" target="_top"><font size="+2"><code>AudioFormat</code></font></A>
85 <A NAME="android.media.AudioFormat.ctor_removed()"></A>
86 <nobr>AudioFormat()</nobr>
101 <A NAME="android.media.AudioFormat.getChannelMask_added()"></A>
102 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/media/AudioFormat.html#getChannelMask()" target="_top"><code>getChannelMask</code></A>()</nobr>
108 <A NAME="android.media.AudioFormat.getEncoding_added()"></A>
109 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/media/AudioFormat.html#getEncoding()" target="_top"><code>getEncoding</code></A>()</nobr>
115 <A NAME="android.media.AudioFormat.getSampleRate_added()"></A
    [all...]
  /frameworks/base/media/java/android/media/
AudioRecord.java 174 * Never {@link AudioFormat#SAMPLE_RATE_UNSPECIFIED}.
191 * @see AudioFormat#ENCODING_PCM_8BIT
192 * @see AudioFormat#ENCODING_PCM_16BIT
193 * @see AudioFormat#ENCODING_PCM_FLOAT
258 * {@link AudioFormat#SAMPLE_RATE_UNSPECIFIED} means to use a route-dependent value
262 * See {@link AudioFormat#CHANNEL_IN_MONO} and
263 * {@link AudioFormat#CHANNEL_IN_STEREO}. {@link AudioFormat#CHANNEL_IN_MONO} is guaranteed
265 * @param audioFormat the format in which the audio data is to be returned.
266 * See {@link AudioFormat#ENCODING_PCM_8BIT}, {@link AudioFormat#ENCODING_PCM_16BIT}
    [all...]
AudioFormat.java 30 * The {@link AudioFormat} class is used to access a number of audio format and
34 * parameter is one of the <code>AudioFormat.ENCODING_*</code> constants.
35 * The <code>AudioFormat</code> constants are also used in {@link MediaFormat} to specify
37 * <p>The {@link AudioFormat.Builder} class can be used to create instances of
38 * the <code>AudioFormat</code> format class.
40 * {@link AudioFormat.Builder} for documentation on the mechanics of the configuration and building
41 * of such instances. Here we describe the main concepts that the <code>AudioFormat</code> class
48 * <p>Closely associated with the <code>AudioFormat</code> is the notion of an
53 * <p>Expressed in Hz, the sample rate in an <code>AudioFormat</code> instance expresses the number
215 public final class AudioFormat implements Parcelable
    [all...]
  /cts/tests/tests/permission2/src/android/permission2/cts/
NoCaptureAudioOutputPermissionTest.java 20 import android.media.AudioFormat;
42 AudioFormat.CHANNEL_IN_STEREO, AudioFormat.ENCODING_PCM_16BIT);
60 AudioFormat.CHANNEL_IN_STEREO, AudioFormat.ENCODING_PCM_16BIT, bufferSize);
  /developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/synth/
SimpleAudioOutput.java 19 import android.media.AudioFormat;
59 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_FLOAT);
69 mFrameRate, AudioFormat.CHANNEL_OUT_STEREO,
70 AudioFormat.ENCODING_PCM_FLOAT, bufferSize,
  /developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/synth/
SimpleAudioOutput.java 19 import android.media.AudioFormat;
59 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_FLOAT);
69 mFrameRate, AudioFormat.CHANNEL_OUT_STEREO,
70 AudioFormat.ENCODING_PCM_FLOAT, bufferSize,
  /developers/samples/android/common/src/java/com/example/android/common/midi/synth/
SimpleAudioOutput.java 19 import android.media.AudioFormat;
59 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_FLOAT);
69 mFrameRate, AudioFormat.CHANNEL_OUT_STEREO,
70 AudioFormat.ENCODING_PCM_FLOAT, bufferSize,
  /development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
SimpleAudioOutput.java 19 import android.media.AudioFormat;
59 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_FLOAT);
69 mFrameRate, AudioFormat.CHANNEL_OUT_STEREO,
70 AudioFormat.ENCODING_PCM_FLOAT, bufferSize,
  /development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
SimpleAudioOutput.java 19 import android.media.AudioFormat;
59 AudioFormat.CHANNEL_OUT_STEREO, AudioFormat.ENCODING_PCM_FLOAT);
69 mFrameRate, AudioFormat.CHANNEL_OUT_STEREO,
70 AudioFormat.ENCODING_PCM_FLOAT, bufferSize,
  /packages/services/Car/tests/carservice_test/src/android/media/tests/
AudioPolicyTest.java 21 import android.media.AudioFormat;
91 AudioFormat audioFormat = new AudioFormat.Builder()
92 .setEncoding(AudioFormat.ENCODING_PCM_16BIT)
93 .setChannelMask(AudioFormat.CHANNEL_OUT_STEREO)
100 .setFormat(audioFormat)
  /frameworks/base/docs/html/sdk/api_diff/24/changes/
android.media.AudioFormat.html 10 android.media.AudioFormat
74 Class android.media.<A HREF="../../../../reference/android/media/AudioFormat.html" target="_top"><font size="+2"><code>AudioFormat</code></font></A>
88 <A NAME="android.media.AudioFormat.describeContents_added()"></A>
89 <nobr><code>int</code>&nbsp;<A HREF="../../../../reference/android/media/AudioFormat.html#describeContents()" target="_top"><code>describeContents</code></A>()</nobr>
95 <A NAME="android.media.AudioFormat.writeToParcel_added(android.os.Parcel, int)"></A>
96 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/media/AudioFormat.html#writeToParcel(android.os.Parcel, int)" target="_top"><code>writeToParcel</code></A>(<code>Parcel,</nobr> int<nobr><nobr></code>)</nobr>
111 <A NAME="android.media.AudioFormat.CREATOR"></A>
112 <nobr><code>Creator&lt;AudioFormat&gt;</code>&nbsp;<A HREF="../../../../reference/android/media/AudioFormat.html#CREATOR" target="_top"><code>CREATOR</code></A></nobr
    [all...]

Completed in 868 milliseconds

1 2 3 4 5 6 7 8 910