| 35 | } |
| 36 | |
| 37 | int64_t SampleTimeToLength(int64_t time, int sampleRate, int channels) { |
| 38 | int count = ceill(static_cast<double>(time * sampleRate) / 1000000.0); |
| 39 | return SampleCountToLength(count, channels); |
| 40 | } |
| 41 | |
| 42 | int64_t MergeSamples(const std::vector<std::shared_ptr<ByteData>>& audioSamples, uint8_t* buffer) { |
| 43 | if (audioSamples.empty()) { |
no test coverage detected