FastLED 3.9.15
Loading...
Searching...
No Matches

◆ framesDisplayed()

int32_t fl::PixelStream::framesDisplayed ( ) const

Definition at line 134 of file pixel_stream.cpp.

134 {
135 if (mUsingByteStream) {
136 // ByteStream doesn't have a concept of total size, so we can't calculate this
137 return -1;
138 } else {
139 int32_t bytes_played = mFileHandle->pos();
140 return bytes_played / mbytesPerFrame;
141 }
142}
int32_t mbytesPerFrame
fl::FileHandlePtr mFileHandle

References mbytesPerFrame, mFileHandle, and mUsingByteStream.