mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
workaround MSVC bug re: scoping of nested classes
This commit is contained in:
@@ -140,6 +140,10 @@ namespace FLAC {
|
|||||||
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
||||||
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected decoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::FLAC__StreamDecoder *decoder_;
|
::FLAC__StreamDecoder *decoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__StreamDecoderReadStatus read_callback_(const ::FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
static ::FLAC__StreamDecoderReadStatus read_callback_(const ::FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
||||||
@@ -230,6 +234,10 @@ namespace FLAC {
|
|||||||
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
||||||
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected decoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::FLAC__SeekableStreamDecoder *decoder_;
|
::FLAC__SeekableStreamDecoder *decoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__SeekableStreamDecoderReadStatus read_callback_(const ::FLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
static ::FLAC__SeekableStreamDecoderReadStatus read_callback_(const ::FLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
||||||
@@ -318,6 +326,10 @@ namespace FLAC {
|
|||||||
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
||||||
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected decoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::FLAC__FileDecoder *decoder_;
|
::FLAC__FileDecoder *decoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__StreamDecoderWriteStatus write_callback_(const ::FLAC__FileDecoder *decoder, const ::FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data);
|
static ::FLAC__StreamDecoderWriteStatus write_callback_(const ::FLAC__FileDecoder *decoder, const ::FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data);
|
||||||
|
|||||||
@@ -157,6 +157,10 @@ namespace FLAC {
|
|||||||
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
|
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
|
||||||
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected encoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::FLAC__StreamEncoder *encoder_;
|
::FLAC__StreamEncoder *encoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__StreamEncoderWriteStatus write_callback_(const ::FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data);
|
static ::FLAC__StreamEncoderWriteStatus write_callback_(const ::FLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data);
|
||||||
@@ -252,6 +256,10 @@ namespace FLAC {
|
|||||||
virtual ::FLAC__SeekableStreamEncoderTellStatus tell_callback(FLAC__uint64 *absolute_byte_offset) = 0;
|
virtual ::FLAC__SeekableStreamEncoderTellStatus tell_callback(FLAC__uint64 *absolute_byte_offset) = 0;
|
||||||
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
|
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected encoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::FLAC__SeekableStreamEncoder *encoder_;
|
::FLAC__SeekableStreamEncoder *encoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__SeekableStreamEncoderSeekStatus seek_callback_(const FLAC__SeekableStreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data);
|
static ::FLAC__SeekableStreamEncoderSeekStatus seek_callback_(const FLAC__SeekableStreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data);
|
||||||
@@ -348,6 +356,10 @@ namespace FLAC {
|
|||||||
protected:
|
protected:
|
||||||
virtual void progress_callback(FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate);
|
virtual void progress_callback(FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate);
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected encoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::FLAC__FileEncoder *encoder_;
|
::FLAC__FileEncoder *encoder_;
|
||||||
private:
|
private:
|
||||||
static void progress_callback_(const ::FLAC__FileEncoder *encoder, FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate, void *client_data);
|
static void progress_callback_(const ::FLAC__FileEncoder *encoder, FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate, void *client_data);
|
||||||
|
|||||||
@@ -144,6 +144,10 @@ namespace OggFLAC {
|
|||||||
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
||||||
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected decoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::OggFLAC__StreamDecoder *decoder_;
|
::OggFLAC__StreamDecoder *decoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__StreamDecoderReadStatus read_callback_(const ::OggFLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
static ::FLAC__StreamDecoderReadStatus read_callback_(const ::OggFLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
||||||
@@ -236,6 +240,10 @@ namespace OggFLAC {
|
|||||||
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
||||||
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected decoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::OggFLAC__SeekableStreamDecoder *decoder_;
|
::OggFLAC__SeekableStreamDecoder *decoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__SeekableStreamDecoderReadStatus read_callback_(const ::OggFLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
static ::FLAC__SeekableStreamDecoderReadStatus read_callback_(const ::OggFLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
|
||||||
@@ -326,6 +334,10 @@ namespace OggFLAC {
|
|||||||
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
||||||
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected decoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::OggFLAC__FileDecoder *decoder_;
|
::OggFLAC__FileDecoder *decoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__StreamDecoderWriteStatus write_callback_(const ::OggFLAC__FileDecoder *decoder, const ::FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data);
|
static ::FLAC__StreamDecoderWriteStatus write_callback_(const ::OggFLAC__FileDecoder *decoder, const ::FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data);
|
||||||
|
|||||||
@@ -162,6 +162,10 @@ namespace OggFLAC {
|
|||||||
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
|
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
|
||||||
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected encoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::OggFLAC__StreamEncoder *encoder_;
|
::OggFLAC__StreamEncoder *encoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__StreamEncoderWriteStatus write_callback_(const ::OggFLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data);
|
static ::FLAC__StreamEncoderWriteStatus write_callback_(const ::OggFLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data);
|
||||||
@@ -259,6 +263,10 @@ namespace OggFLAC {
|
|||||||
virtual ::FLAC__SeekableStreamEncoderTellStatus tell_callback(FLAC__uint64 *absolute_byte_offset) = 0;
|
virtual ::FLAC__SeekableStreamEncoderTellStatus tell_callback(FLAC__uint64 *absolute_byte_offset) = 0;
|
||||||
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
|
virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected encoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::OggFLAC__SeekableStreamEncoder *encoder_;
|
::OggFLAC__SeekableStreamEncoder *encoder_;
|
||||||
private:
|
private:
|
||||||
static ::FLAC__SeekableStreamEncoderSeekStatus seek_callback_(const OggFLAC__SeekableStreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data);
|
static ::FLAC__SeekableStreamEncoderSeekStatus seek_callback_(const OggFLAC__SeekableStreamEncoder *encoder, FLAC__uint64 absolute_byte_offset, void *client_data);
|
||||||
@@ -357,6 +365,10 @@ namespace OggFLAC {
|
|||||||
protected:
|
protected:
|
||||||
virtual void progress_callback(FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate);
|
virtual void progress_callback(FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate);
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
//@@@@@@ lame hack: some MSVC versions can't see a protected encoder_ from nested State::resolved_as_cstring(); fix properly later
|
||||||
|
public:
|
||||||
|
#endif
|
||||||
::OggFLAC__FileEncoder *encoder_;
|
::OggFLAC__FileEncoder *encoder_;
|
||||||
private:
|
private:
|
||||||
static void progress_callback_(const ::OggFLAC__FileEncoder *encoder, FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate, void *client_data);
|
static void progress_callback_(const ::OggFLAC__FileEncoder *encoder, FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate, void *client_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user