Searched refs:sample_t (Results 1 – 13 of 13) sorted by relevance
/external/drrickorang/LoopbackApp/app/src/main/cpp/lb2/ |
D | test_context.h | 39 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 …]
|
D | sample.h | 23 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()
|
D | loopback_test.h | 47 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);
|
D | loopback_test.cpp | 32 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()
|
D | sound_system_aaudio.cpp | 38 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 …]
|
D | sound_system_echo.cpp | 28 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()
|
D | test_context.cpp | 22 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()
|
D | sound_system.h | 34 using WriteCallback = std::function<AudioBufferView<sample_t>(size_t expectedFrames)>; 56 virtual ssize_t readAudio(AudioBufferView<sample_t> buffer) = 0;
|
D | loopback2.cpp | 59 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()
|
D | sound_system_echo.h | 40 ssize_t readAudio(AudioBufferView<sample_t> buffer) override; 51 std::unique_ptr<sample_t[]> mFifoData;
|
D | sound_system_aaudio.h | 40 ssize_t readAudio(AudioBufferView<sample_t> buffer) override;
|
/external/bcc/examples/lua/ |
D | uprobe-readline-perf.lua | 24 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/ |
D | README.md | 86 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
|