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

1 2 3 4 5 6 7 8 91011>>

  /external/tinyalsa/
pcm.c 0 /* pcm.c
145 struct pcm { struct
162 unsigned int pcm_get_buffer_size(struct pcm *pcm)
164 return pcm->buffer_size;
167 const char* pcm_get_error(struct pcm *pcm)
169 return pcm->error;
172 static int oops(struct pcm *pcm, int e, const char *fmt, ...
461 struct pcm *pcm; local
    [all...]
tinyplay.c 94 fprintf(stderr, "Error: '%s' is not a PCM riff/wave file\n", argv[1]);
111 struct pcm *pcm; local
128 pcm = pcm_open(0, device, PCM_OUT, &config);
129 if (!pcm || !pcm_is_ready(pcm)) {
130 fprintf(stderr, "Unable to open PCM device %u (%s)\n",
131 device, pcm_get_error(pcm));
135 size = pcm_get_buffer_size(pcm);
140 pcm_close(pcm);
    [all...]
README 5 - Provide a basic pcm and mixer API
tinycap.c 147 struct pcm *pcm; local
164 pcm = pcm_open(0, device, PCM_IN, &config);
165 if (!pcm || !pcm_is_ready(pcm)) {
166 fprintf(stderr, "Unable to open PCM device (%s)\n",
167 pcm_get_error(pcm));
171 size = pcm_get_buffer_size(pcm);
176 pcm_close(pcm);
182 while (capturing && !pcm_read(pcm, buffer, size))
    [all...]
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/alsa/
pcm_old.h 12 int snd_pcm_hw_params_test_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val);
13 int snd_pcm_hw_params_set_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val);
14 snd_pcm_access_t snd_pcm_hw_params_set_access_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
15 snd_pcm_access_t snd_pcm_hw_params_set_access_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
16 int snd_pcm_hw_params_set_access_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask);
24 int snd_pcm_hw_params_test_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val);
25 int snd_pcm_hw_params_set_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val);
26 snd_pcm_format_t snd_pcm_hw_params_set_format_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
27 snd_pcm_format_t snd_pcm_hw_params_set_format_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params);
28 int snd_pcm_hw_params_set_format_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask)
    [all...]
pcm.h 2 * \file include/pcm.h
10 * See the \ref pcm page for more details.
37 * \defgroup PCM PCM Interface
38 * See the \ref pcm page for more details.
45 /** PCM generic info container */
47 /** PCM hardware configuration space container */
49 /** PCM software configuration container */
51 /** PCM status container */
53 /** PCM access types mask *
    [all...]
pcm_external.h 3 * \brief External PCM plugin SDK
7 * Extern PCM plugin SDK.
29 #include "pcm.h"
36 * \defgroup Plugin_SDK External PCM plugin SDK
41 * Define the object entry for external PCM plugins
pcm_ioplug.h 11 * ALSA external PCM plugin SDK
37 * See the \ref pcm page for more details.
61 #define SND_PCM_IOPLUG_FLAG_LISTED (1<<0) /* list up this PCM */
100 * PCM handle filled by #snd_pcm_extplug_create()
102 snd_pcm_t *pcm; member in struct:snd_pcm_ioplug
105 snd_pcm_state_t state; /**< current PCM state; read-only */
111 snd_pcm_format_t format; /**< PCM format; filled after hw_params is called */
121 * start the PCM; required
125 * stop the PCM; required
140 * close the PCM; optiona
    [all...]
pcm_extplug.h 11 * ALSA external PCM plugin SDK (draft version)
37 * See the \ref pcm page for more details.
86 * PCM handle filled by #snd_pcm_extplug_create()
88 snd_pcm_t *pcm; member in struct:snd_pcm_extplug
135 * close the PCM; optional
180 * set the parameter constraint for slave PCM with a single value
  /external/tinyalsa/include/tinyalsa/
asoundlib.h 39 * PCM API
42 struct pcm;
49 /* PCM runtime states */
104 struct pcm *pcm_open(unsigned int card, unsigned int device,
106 int pcm_close(struct pcm *pcm);
107 int pcm_is_ready(struct pcm *pcm);
110 int pcm_get_config(struct pcm *pcm, struct pcm_config *config)
    [all...]
  /frameworks/base/core/java/android/speech/srec/
UlawEncoderInputStream.java 28 * InputStream which transforms 16 bit pcm data to ulaw data.
81 int pcm = (0xff & pcmBuf[pcmOffset++]) + (pcmBuf[pcmOffset++] << 8); local
82 pcm = (pcm * coef) >> SCALE_BITS;
85 if (pcm >= 0) {
86 ulaw = pcm <= 0 ? 0xff :
87 pcm <= 30 ? 0xf0 + (( 30 - pcm) >> 1) :
88 pcm <= 94 ? 0xe0 + (( 94 - pcm) >> 2)
123 int pcm = (0xff & pcmBuf[offset++]) + (pcmBuf[offset++] << 8); local
    [all...]
  /external/bluetooth/bluez/audio/
bluetooth.conf 15 pcm.rawbluetooth {
24 pcm.bluetooth {
31 pcm {
  /external/webrtc/src/modules/audio_processing/aecm/main/matlab/
main2.m 2 fid=fopen('aecfar.pcm'); far=fread(fid,'short'); fclose(fid);
3 fid=fopen('aecnear.pcm'); mic=fread(fid,'short'); fclose(fid);
5 %fid=fopen('QA1far.pcm'); far=fread(fid,'short'); fclose(fid);
6 %fid=fopen('QA1near.pcm'); mic=fread(fid,'short'); fclose(fid);
  /external/qemu/android/config/
check-alsa.c 26 DYN_FUNCTION(int,snd_pcm_hw_params_current,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)) \
27 DYN_FUNCTION(int,snd_pcm_sw_params_set_start_threshold,(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)) \
28 DYN_FUNCTION(int,snd_pcm_sw_params,(snd_pcm_t *pcm, snd_pcm_sw_params_t *params)) \
29 DYN_FUNCTION(int,snd_pcm_sw_params_current,(snd_pcm_t *pcm, snd_pcm_sw_params_t *params)) \
31 DYN_FUNCTION(int,snd_pcm_hw_params_any,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)) \
32 DYN_FUNCTION(int,snd_pcm_hw_params_set_access,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t _access)) \
33 DYN_FUNCTION(int,snd_pcm_hw_params_set_format,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val)) \
34 DYN_FUNCTION(int,snd_pcm_hw_params_set_rate_near,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)) \
35 DYN_FUNCTION(int,snd_pcm_hw_params_set_channels_near,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)) \
36 DYN_FUNCTION(int,snd_pcm_hw_params_set_buffer_time_near,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir))
    [all...]
  /external/webrtc/src/modules/audio_processing/aecm/main/matlab/matlab/
simEnvironment.m 10 %saveFile = ['P:\Engineering_share\BjornV\AECM\',speakerType, '_s_',scenario,'_delayEst_v2_vad_man.pcm'];
11 %saveFile = [speakerType, '_s_',scenario,'_adaptMu_adaptGamma_withVar_gammFilt_HSt.pcm'];
12 saveFile = ['scenario_',scenario,'_090417_backupH_nlp.pcm'];
  /device/samsung/crespo/
asound.conf 33 pcm.AndroidPlayback {
35 slave.pcm {
48 pcm.AndroidPlayback_Earpiece {
50 slave.pcm {
64 pcm.AndroidPlayback_Speaker {
66 slave.pcm {
81 pcm.AndroidPlayback_Headset {
83 slave.pcm {
98 pcm.AndroidPlayback_Headphone {
100 slave.pcm {
    [all...]
  /external/bluetooth/bluez/sbc/
sbc_primitives.c 231 const uint8_t *pcm, int16_t X[2][SBC_X_BUFFER_SIZE],
245 #define PCM(i) (big_endian ? \
246 unaligned16_be(pcm + (i) * 2) : unaligned16_le(pcm + (i) * 2))
253 x[0] = PCM(0 + 7 * nchannels);
254 x[1] = PCM(0 + 3 * nchannels);
255 x[2] = PCM(0 + 6 * nchannels);
256 x[3] = PCM(0 + 4 * nchannels);
257 x[4] = PCM(0 + 0 * nchannels);
258 x[5] = PCM(0 + 2 * nchannels)
    [all...]
  /external/clang/test/Modules/
diamond.c 23 // RUN: %clang_cc1 -emit-module -o %T/diamond_top.pcm %S/Inputs/diamond_top.h
24 // RUN: %clang_cc1 -fmodule-cache-path %T -fdisable-module-hash -emit-module -o %T/diamond_left.pcm %S/Inputs/diamond_left.h
25 // RUN: %clang_cc1 -fmodule-cache-path %T -fdisable-module-hash -emit-module -o %T/diamond_right.pcm %S/Inputs/diamond_right.h
26 // RUN: %clang_cc1 -fmodule-cache-path %T -fdisable-module-hash -emit-module -o %T/diamond_bottom.pcm %S/Inputs/diamond_bottom.h
  /cts/apps/CtsVerifier/jni/audioquality/
MeasureRms.h 20 /* Measure the rms of the non-silence segment of the signal in pcm, which
21 is of numSamples length, and sampled at sampleRate. pcm is assumed to
27 non-silence part of pcm, and the result is returned in rms. The
33 onsetThresh < 0.0, simply make the measurememt over the entire pcm
36 void measureRms(short* pcm, int numSamples, float sampleRate,
CompareSpectra.h 20 /* Compare the average magnitude spectra of the signals in pcm and
35 end of the pcm signals. The preferred stimulus would be pink noise,
38 int compareSpectra(short* pcm, int numSamples, short* refPcm,
Wrapper.cpp 105 short *pcm = new short[numSamples]; local
106 env->GetShortArrayRegion(jpcm, 0, numSamples, pcm);
108 measureRms(pcm, numSamples, sampleRate, onsetThresh, ret, ret + 1,
133 short *pcm = new short[numSamples]; local
134 env->GetShortArrayRegion(jpcm, 0, numSamples, pcm);
140 int success = gt.checkToneSnr(pcm, numSamples, &duration, &badFrames);
164 short *pcm = new short[numSamples]; local
165 env->GetShortArrayRegion(jpcm, 0, numSamples, pcm);
170 int success = overflowCheck(pcm, numSamples, sampleRate,
195 short *pcm = new short[numSamples] local
    [all...]
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/pulse/
sample.h 46 * \li PA_SAMPLE_U8 - Unsigned 8 bit integer PCM.
47 * \li PA_SAMPLE_S16LE - Signed 16 integer bit PCM, little endian.
48 * \li PA_SAMPLE_S16BE - Signed 16 integer bit PCM, big endian.
49 * \li PA_SAMPLE_FLOAT32LE - 32 bit IEEE floating point PCM, little endian.
50 * \li PA_SAMPLE_FLOAT32BE - 32 bit IEEE floating point PCM, big endian.
53 * \li PA_SAMPLE_S32LE - Signed 32 bit integer PCM, little endian.
54 * \li PA_SAMPLE_S32BE - Signed 32 bit integer PCM, big endian.
124 PA_SAMPLE_U8, /**< Unsigned 8 Bit PCM */
127 PA_SAMPLE_S16LE, /**< Signed 16 Bit PCM, little endian (PC) */
128 PA_SAMPLE_S16BE, /**< Signed 16 Bit PCM, big endian *
    [all...]
  /cts/tests/tests/nativemedia/src/
SLObjectCreationTest.cpp 26 * * source is BufferQueue of PCM buffers
28 * * source is URI, sink is BufferQueue of PCM buffers
29 * * source is FD, sink is BufferQueue of PCM buffers
30 * * source is AndroidBufferQueue of AAC ADTS buffers, sink is BufferQueue of PCM buffers
32 * * source is IO device, sink is BufferQueue of PCM buffers
202 /* Test case for creating an AudioPlayer object that plays from a PCM BufferQueue */
204 // source: PCM BufferQueue
208 SLDataFormat_PCM pcm; local
209 pcm.formatType = SL_DATAFORMAT_PCM;
210 pcm.numChannels = 2
    [all...]
  /system/media/audio_effects/include/audio_effects/
effect_visualizer.h 38 VISUALIZER_PARAM_CAPTURE_SIZE, // Sets the number PCM samples in the capture.
44 VISUALIZER_CMD_CAPTURE = EFFECT_CMD_FIRST_PROPRIETARY, // Gets the latest PCM capture.
47 // VISUALIZER_CMD_CAPTURE retrieves the latest PCM snapshot captured by the visualizer engine.
  /system/media/wilhelm/tests/examples/
slesTestSawtoothBufferQueue.cpp 116 SLDataFormat_PCM pcm; local
169 pcm.formatType = SL_DATAFORMAT_PCM;
170 pcm.numChannels = 1;//2;
171 pcm.samplesPerSec = SL_SAMPLINGRATE_44_1;
172 pcm.bitsPerSample = SL_PCMSAMPLEFORMAT_FIXED_16;
173 pcm.containerSize = 16;
174 pcm.channelMask = SL_SPEAKER_FRONT_LEFT;// | SL_SPEAKER_FRONT_RIGHT;
175 pcm.endianness = SL_BYTEORDER_LITTLEENDIAN;
177 audioSource.pFormat = (void *)&pcm;
244 /* Play the PCM samples using a buffer queue *
    [all...]

Completed in 506 milliseconds

1 2 3 4 5 6 7 8 91011>>