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

void gdf::Writer::setEventSamplingRate ( float32  fs = -1 )

Set Sampling Rate associated with event positions.

Events are not actually sampled, but their position is stored in samples rather than seconds. In order to convert event positions between time and sample, this sampling rate is used. If Sampling rate is not set (or set to <= 0 ), fs is set to the highest signal sampling rate.

[in]fssampling rate

Definition at line 344 of file Writer.cpp.

References gdf::EventHeader::setSamplingRate().

        if( m_file.is_open() )
            throw exception::file_open( "" );
        m_header.getEventHeader( ).setSamplingRate( fs );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index