Logo Search packages:      
Sourcecode: libgdf version File versions  Download package

void gdf::Modifier::setSample ( uint16  channel_idx,
size_t  sample_idx,
double  value 

Set a single Sample (physical units)

[in]channel_idxchannel index
[in]sample_idxsample index

Definition at line 125 of file Modifier.cpp.

References gdf::Reader::findRecord(), gdf::Record::getChannel(), gdf::Reader::getRecordPtr(), and gdf::Channel::setSamplePhys().

        size_t record = findRecord( channel_idx, sample_idx );
        Record *r = getRecordPtr( record );
        size_t spr = m_header.getSignalHeader_readonly( channel_idx ).get_samples_per_record( );
        r->getChannel( channel_idx )->setSamplePhys( sample_idx % spr, value );
        m_record_changed[record] = true;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index