Fortran SFF API to data I/O streams in C++

◆ sff_modwid2samprat__()

int sff_modwid2samprat__ ( char *  wid2line,
real samprat,
ftnlen  wid2line_len 
)

modify sampling rate in WID2 line

Description from stuff.f:

c----------------------------------------------------------------------
subroutine sff_ModWid2samprat(wid2line, samprat)
c
c Just modify samprat-entry in WID2 line
c
c input:
c samprat new sampling rate to set
c input and output:
c wid2line modified WID2 line
c
c no default setting are allowed
c----------------------------------------------------------------------

Definition at line 61 of file fapid_sff_modwid2samprat.cc.

References fapidxx::WID2container::encode(), and fapidxx::WID2container::wid2.

63 {
64  fapidxx::WID2container wid2c(wid2line, wid2line_len);
65  wid2c.wid2.dt=1./(*samprat);
66  wid2c.encode(wid2line, wid2line_len);
67  return 0;
68 } /* sff_modwid2samprat__ */
This struct is used to pass WID2 line data within libfapidxx.
Definition: wid2container.h:62
Here is the call graph for this function: