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
 
@@ -78,6 +78,11 @@ StreamChannel* Stream::channel(unsigned 
 
    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();
src/stream.h
Show inline comments
 
@@ -58,6 +58,7 @@ public:
 
    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;
0 comments (0 inline, 0 general)