| 107 | :seek_where(_seek_where) {} |
| 108 | |
| 109 | void Finish() { |
| 110 | if (!IsInitialized()) |
| 111 | throw "Unrecognized file"; |
| 112 | |
| 113 | if (seek_error) |
| 114 | throw "Seek error"; |
| 115 | |
| 116 | if (seek_where != SongTime{}) { |
| 117 | if (!seekable) |
| 118 | throw "Not seekable"; |
| 119 | |
| 120 | throw "Did not seek"; |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | /* virtual methods from DecoderClient */ |
| 125 | void Ready(AudioFormat audio_format, |