1
0

StreamFileWin32.h 769 B

123456789101112131415161718
  1. #pragma once
  2. #include <FLAC/all.h>
  3. #include <windows.h>
  4. struct Win32_State
  5. {
  6. public:
  7. HANDLE handle;
  8. FLAC__uint64 bytesWritten;
  9. };
  10. FLAC__StreamEncoderWriteStatus Win32_Write(const FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data);
  11. FLAC__StreamEncoderSeekStatus Win32_Seek(const FLAC__StreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data);
  12. FLAC__StreamEncoderTellStatus Win32_Tell(const FLAC__StreamEncoder *encoder, FLAC__uint64 *absolute_byte_offset, void *client_data);
  13. void Progress(const FLAC__StreamEncoder *encoder, FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate, void *client_data);