Home
last modified time | relevance | path

Searched refs:sample_t (Results 1 – 13 of 13) sorted by relevance

/external/drrickorang/LoopbackApp/app/src/main/cpp/lb2/
Dtest_context.h39 class TestContext : public CountsConverter<sample_t> {
45 : CountsConverter<sample_t>(testFrameCount, channelCount), in TestContext()
52 AudioBuffer<sample_t> createAudioBuffer() const { in createAudioBuffer()
53 return AudioBuffer<sample_t>(getFrameCount(), getChannelCount()); in createAudioBuffer()
74 sample_t *impulse) in LatencyTestContext()
82 AudioBufferView<sample_t> getImpulse() const { return mImpulse; } in getImpulse()
86 const AudioBufferView<sample_t> mImpulse;
101 AudioBufferView<sample_t> byteBuffer) in GlitchTestContext()
110 const AudioBufferView<sample_t>& getByteBuffer() const { return mByteBuffer; } in getByteBuffer()
111 AudioBufferView<sample_t> getNextImpulse(size_t frameCount); // non-idempotent
[all …]
Dsample.h23 using sample_t = int16_t; // For flexibility. May change to a float type if needed. variable
25 static_assert(std::is_integral<sample_t>::value,
28 constexpr double FULL_SAMPLE_SCALE = std::numeric_limits<sample_t>::max() + 1;
30 inline double convertSampleType(sample_t s) { in convertSampleType()
31 static_assert(std::numeric_limits<sample_t>::is_signed, "sample value is assumed to be signed"); in convertSampleType()
35 inline sample_t convertSampleType(double d) { in convertSampleType()
Dloopback_test.cpp32 mRecordingFifoData(new sample_t[RECORDING_FIFO_FRAMES * testCtx->getChannelCount()]) { in LoopbackTest()
50 AudioBuffer<sample_t> readBuffer(mTestCtx->createAudioBuffer()); in collectRecording()
106 AudioBufferView<sample_t> LatencyTest::writeCallback(size_t expectedFrames) { in writeCallback()
115 AudioBufferView<sample_t> readBuffer = mReadBuffer.getView(0, expectedFrames); in writeCallback()
138 AudioBufferView<sample_t> impulseChunk = in writeCallback()
149 return AudioBuffer<sample_t>(); in writeCallback()
167 AudioBufferView<sample_t> GlitchTest::writeCallback(size_t expectedFrames) { in writeCallback()
Dloopback_test.h47 AudioBuffer<sample_t> mReadBuffer;
55 std::unique_ptr<sample_t[]> mRecordingFifoData;
75 AudioBufferView<sample_t> writeCallback(size_t expectedFrames);
82 AudioBufferView<sample_t> mImpulse;
98 AudioBufferView<sample_t> writeCallback(size_t expectedFrames);
Dsound_system_aaudio.cpp38 ssize_t read(AudioBufferView<sample_t> buffer);
70 ssize_t Stream::read(AudioBufferView<sample_t> buffer) { in read()
250 static_assert(sizeof(sample_t) == sizeof(int16_t), "sample format must be int16"); in createBuilder()
299 AudioBufferView<sample_t> outputWave = self->mWriteCallback(numFrames); in aaudioDataCallback()
306 AudioBufferView<sample_t>(static_cast<sample_t*>(audioData), in aaudioDataCallback()
331 ssize_t read(AudioBufferView<sample_t> buffer);
345 std::unique_ptr<AudioBuffer<sample_t>> mConversionBuffer;
354 static_assert(sizeof(sample_t) == sizeof(int16_t), "sample format must be int16"); in createBuilder()
381 mConversionBuffer.reset(new AudioBuffer<sample_t>( in init()
390 AudioBuffer<sample_t> drainBuffer(mStream->getFramesPerBurst(), mStream->getChannelCount()); in drain()
[all …]
Dsound_system_echo.cpp28 mFifoData(new sample_t[testCtx->getSampleCount()]), in SoundSystemEcho()
60 AudioBufferView<sample_t> buffer = mWriteCallback(mTestCtx->getFrameCount()); in threadLoop()
77 AudioBuffer<sample_t> drainBuffer( in drainInput()
82 ssize_t SoundSystemEcho::readAudio(AudioBufferView<sample_t> buffer) { in readAudio()
Dtest_context.cpp22 AudioBufferView<sample_t> GlitchTestContext::getNextImpulse(size_t frameCount) { in getNextImpulse()
26 sample_t s = convertSampleType(std::sin(mPhaseRad) * SIGNAL_AMPLITUDE); in getNextImpulse()
27 sample_t *d = sineBuffer.getFrameAt(i); in getNextImpulse()
Dloopback2.cpp59 sizeof(sample_t) == sizeof(short), "byteBuffer only supports short samples"); in lb2Init()
60 AudioBufferView<sample_t> byteBuffer( in lb2Init()
61 reinterpret_cast<sample_t*>(byteBufferPtr), byteBufferLength, CHANNEL_COUNT); in lb2Init()
Dsound_system.h34 using WriteCallback = std::function<AudioBufferView<sample_t>(size_t expectedFrames)>;
56 virtual ssize_t readAudio(AudioBufferView<sample_t> buffer) = 0;
Dsound_system_echo.h40 ssize_t readAudio(AudioBufferView<sample_t> buffer) override;
51 std::unique_ptr<sample_t[]> mFifoData;
Dsound_system_aaudio.h40 ssize_t readAudio(AudioBufferView<sample_t> buffer) override;
/external/bcc/examples/lua/
Duprobe-readline-perf.lua24 local sample_t = 'struct { uint64_t pid; char str[80]; }'
28 local sample = ffi.new(sample_t)
34 local log = events:reader(nil, 0, sample_t) -- Must specify PID or CPU_ID to observe
/external/bcc/src/lua/
DREADME.md86 local sample_t = 'struct { uint64_t pid; char str[80]; }'
90 local sample = ffi.new(sample_t)
96 local log = events:reader(nil, 0, sample_t) -- Must specify PID or CPU_ID to observe