MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / currentSample

Method currentSample

source/core/StarAudio.cpp:462–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460 }
461
462 uint64_t currentSample() {
463 #ifdef STAR_STREAM_AUDIO
464 return m_device->pos() / 2 / m_channels;
465 #else
466 return m_memoryFile.pos() / 2 / m_channels;
467 #endif
468 }
469
470
471 size_t readPartial(int16_t* buffer, size_t bufferSize) {

Callers

nothing calls this directly

Calls 1

posMethod · 0.45

Tested by

no test coverage detected