* Converts a frame number to a timestamp (in seconds). */
| 124 | * Converts a frame number to a timestamp (in seconds). |
| 125 | */ |
| 126 | static constexpr SongTime |
| 127 | sndfile_duration(const SF_INFO &info) |
| 128 | { |
| 129 | return SongTime::FromScale<uint64_t>(info.frames, info.samplerate); |
| 130 | } |
| 131 | |
| 132 | [[gnu::pure]] |
| 133 | static SampleFormat |
no outgoing calls
no test coverage detected