Changeset - 1e7920e956a9
[Not reviewed]
stream
0 2 0
Hasan Yavuz Ă–ZDERYA - 8 years ago 2018-03-26 15:52:04
hy@ozderya.net
added stream channelinfomodel accessor
2 files changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/stream.cpp
Show inline comments
 
@@ -75,12 +75,17 @@ const StreamChannel* Stream::channel(uns
 

	
 
StreamChannel* Stream::channel(unsigned index)
 
{
 
    return const_cast<StreamChannel*>(static_cast<const Stream&>(*this).channel(index));
 
}
 

	
 
const ChannelInfoModel* Stream::infoModel() const
 
{
 
    return &_infoModel;
 
}
 

	
 
void Stream::setNumChannels(unsigned nc, bool x)
 
{
 
    unsigned oldNum = numChannels();
 
    if (oldNum == nc && x == _hasx) return;
 

	
 
    // adjust the number of channels
src/stream.h
Show inline comments
 
@@ -55,12 +55,13 @@ public:
 
    virtual bool hasX() const;
 
    virtual unsigned numChannels() const;
 

	
 
    unsigned numSamples() const;
 
    const StreamChannel* channel(unsigned index) const;
 
    StreamChannel* channel(unsigned index);
 
    const ChannelInfoModel* infoModel() const;
 

	
 
    /// Saves channel information
 
    void saveSettings(QSettings* settings) const;
 
    /// Load channel information
 
    void loadSettings(QSettings* settings);
 

	
0 comments (0 inline, 0 general)