]> git.sesse.net Git - nageru/blobdiff - futatabi/frame_on_disk.cpp
Make Futatabi accept and record the audio, although it cannot use it for anything...
[nageru] / futatabi / frame_on_disk.cpp
index 971cafd5d9c7d8b89ee5a208fa6c91a2539803e7..9a870947b4b84c171de2897ae5ad9523a88f6e52 100644 (file)
@@ -76,12 +76,15 @@ string FrameReader::read_frame(FrameOnDisk frame)
                ++metric_frame_opened_files;
        }
 
+       // TODO: Read the audio.
+
        string str;
        str.resize(frame.size);
        off_t offset = 0;
        while (offset < frame.size) {
                int ret = pread(fd, &str[offset], frame.size - offset, frame.offset + offset);
                if (ret <= 0) {
+                       string filename = frame_filenames[frame.filename_idx];
                        perror("pread");
                        abort();
                }