add last backwards-compatible version
This commit is contained in:
@@ -45,9 +45,6 @@ public:
|
||||
channel_config_5point1_side = channel_front_left | channel_front_right | channel_front_center | channel_lfe | channel_side_left | channel_side_right,
|
||||
channel_config_7point1 = channel_config_5point1 | channel_side_left | channel_side_right,
|
||||
|
||||
channels_back_left_right = channel_back_left | channel_back_right,
|
||||
channels_side_left_right = channel_side_left | channel_side_right,
|
||||
|
||||
defined_channel_count = 18,
|
||||
};
|
||||
|
||||
@@ -139,7 +136,6 @@ public:
|
||||
bool is_valid() const;
|
||||
|
||||
void debugChunkSpec() const;
|
||||
pfc::string8 formatChunkSpec() const;
|
||||
#if PFC_DEBUG
|
||||
void assert_valid(const char * ctx) const;
|
||||
#else
|
||||
@@ -162,7 +158,7 @@ public:
|
||||
inline void reset() {
|
||||
set_sample_count(0);
|
||||
set_srate(0);
|
||||
set_channels(0,0);
|
||||
set_channels(0);
|
||||
set_data_size(0);
|
||||
}
|
||||
|
||||
@@ -289,7 +285,7 @@ public:
|
||||
WAVEFORMATEXTENSIBLE toWFXEXWithBPS(uint32_t bps) const;
|
||||
#endif
|
||||
|
||||
pfc::string8 toString( const char * delim = " " ) const;
|
||||
pfc::string8 toString() const;
|
||||
};
|
||||
static spec_t makeSpec(uint32_t rate, uint32_t channels);
|
||||
static spec_t makeSpec(uint32_t rate, uint32_t channels, uint32_t chanMask);
|
||||
@@ -297,8 +293,6 @@ public:
|
||||
|
||||
spec_t get_spec() const;
|
||||
void set_spec(const spec_t &);
|
||||
|
||||
void append(const audio_chunk& other);
|
||||
protected:
|
||||
audio_chunk() {}
|
||||
~audio_chunk() {}
|
||||
@@ -353,17 +347,17 @@ public:
|
||||
audio_sample * get_data() {throw pfc::exception_not_implemented();}
|
||||
const audio_sample * get_data() const {return m_data;}
|
||||
t_size get_data_size() const {return m_samples * m_channels;}
|
||||
void set_data_size(t_size) {throw pfc::exception_not_implemented();}
|
||||
void set_data_size(t_size p_new_size) {throw pfc::exception_not_implemented();}
|
||||
|
||||
unsigned get_srate() const {return m_sample_rate;}
|
||||
void set_srate(unsigned) {throw pfc::exception_not_implemented();}
|
||||
void set_srate(unsigned val) {throw pfc::exception_not_implemented();}
|
||||
unsigned get_channels() const {return m_channels;}
|
||||
unsigned get_channel_config() const {return m_channel_config;}
|
||||
void set_channels(unsigned,unsigned) {throw pfc::exception_not_implemented();}
|
||||
void set_channels(unsigned p_count,unsigned p_config) {throw pfc::exception_not_implemented();}
|
||||
|
||||
t_size get_sample_count() const {return m_samples;}
|
||||
|
||||
void set_sample_count(t_size) {throw pfc::exception_not_implemented();}
|
||||
void set_sample_count(t_size val) {throw pfc::exception_not_implemented();}
|
||||
|
||||
private:
|
||||
t_size m_samples;
|
||||
|
||||
Reference in New Issue
Block a user