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

◆ framesDisplayed()

int32_t fl::PixelStream::framesDisplayed ( ) const

Definition at line 136 of file pixel_stream.cpp.

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

References mbytesPerFrame, mFileHandle, and mUsingByteStream.