| 37 | } |
| 38 | |
| 39 | void DebugAudioSource::Process(double time) |
| 40 | { |
| 41 | PROFILER(DebugAudioSource); |
| 42 | |
| 43 | IAudioReceiver* target = GetTarget(); |
| 44 | if (!mEnabled || target == nullptr) |
| 45 | return; |
| 46 | |
| 47 | int bufferSize = target->GetBuffer()->BufferSize(); |
| 48 | float* out = target->GetBuffer()->GetChannel(0); |
| 49 | assert(bufferSize == gBufferSize); |
| 50 | |
| 51 | for (int i = 0; i < bufferSize; ++i) |
| 52 | { |
| 53 | float sample = 1; |
| 54 | out[i] += sample; |
| 55 | GetVizBuffer()->Write(sample, 0); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | void DebugAudioSource::DrawModule() |
| 60 | { |
nothing calls this directly
no test coverage detected