MCPcopy Create free account
hub / github.com/clementgallet/libTAS / writeAudioFrame

Method writeAudioFrame

src/library/encoding/NutMuxer.cpp:311–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void NutMuxer::writeAudioFrame(const uint8_t* samples, unsigned int len)
312{
313 LOG(LL_DEBUG, LCF_DUMP, "Write nut audio frame");
314 LOG(LL_DEBUG, LCF_DUMP, "Audio pts is %f", (double)audiopts / avparams.samplerate);
315
316 writeFrame(samples, len, audiopts, 1, static_cast<uint64_t>(avparams.samplerate), 1, output);
317
318 audiopts += static_cast<uint64_t>(len) / static_cast<uint64_t>(avparams.samplesize);
319}
320
321NutMuxer::NutMuxer(int width, int height, int fpsnum, int fpsden, const char* pixfmt, int samplerate, int samplesize, int channels, FILE *underlying)
322{

Callers 1

encodeOneFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected