2 % automatically generated by HelpGen from
3 % /home/guilhem/PROJECTS/wxWindows/utils/wxMMedia2/lib/sndfile.h at 26/Feb/00 14:26:42
7 \section{\class{wxSoundFileStream
}}\label{wxsoundfilestream
}
10 Base class for file coders/decoders
12 \wxheading{Derived from
}
14 \helpref{wxSoundStream
}{wxsoundstream
}
16 \wxheading{Data structures
}
18 \latexignore{\rtfignore{\wxheading{Members
}}}
21 \membersection{wxSoundFileStream::wxSoundFileStream
}\label{wxsoundfilestreamwxsoundfilestream
}
23 \func{}{wxSoundFileStream
}{\param{wxInputStream\&
}{stream
},
\param{wxSoundStream\&
}{io
\_sound}}
26 \membersection{wxSoundFileStream::wxSoundFileStream
}\label{wxsoundfilestreamwxsoundfilestream
}
28 \func{}{wxSoundFileStream
}{\param{wxOutputStream\&
}{stream
},
\param{wxSoundStream\&
}{io
\_sound}}
31 \membersection{wxSoundFileStream::
\destruct{wxSoundFileStream
}}\label{wxsoundfilestreamdtor
}
33 \func{}{\destruct{wxSoundFileStream
}}{\void}
36 \membersection{wxSoundFileStream::Play
}\label{wxsoundfilestreamplay
}
38 \func{bool
}{Play
}{\void}
40 Usual sound file calls (Play, Stop, ...)
43 \membersection{wxSoundFileStream::Record
}\label{wxsoundfilestreamrecord
}
45 \func{bool
}{Record
}{\param{wxUint32
}{time
}}
48 \membersection{wxSoundFileStream::Stop
}\label{wxsoundfilestreamstop
}
50 \func{bool
}{Stop
}{\void}
53 \membersection{wxSoundFileStream::Pause
}\label{wxsoundfilestreampause
}
55 \func{bool
}{Pause
}{\void}
58 \membersection{wxSoundFileStream::Resume
}\label{wxsoundfilestreamresume
}
60 \func{bool
}{Resume
}{\void}
63 \membersection{wxSoundFileStream::IsStopped
}\label{wxsoundfilestreamisstopped
}
65 \constfunc{bool
}{IsStopped
}{\void}
67 Functions which return the current state
70 \membersection{wxSoundFileStream::IsPaused
}\label{wxsoundfilestreamispaused
}
72 \constfunc{bool
}{IsPaused
}{\void}
75 \membersection{wxSoundFileStream::StartProduction
}\label{wxsoundfilestreamstartproduction
}
77 \func{bool
}{StartProduction
}{\param{int
}{evt
}}
79 A user should not call these two functions.
80 Several things must be done before calling them.
81 Users should use Play(), ...
84 \membersection{wxSoundFileStream::StopProduction
}\label{wxsoundfilestreamstopproduction
}
86 \func{bool
}{StopProduction
}{\void}
89 \membersection{wxSoundFileStream::GetLength
}\label{wxsoundfilestreamgetlength
}
91 \func{wxUint32
}{GetLength
}{\void}
93 These three functions deals with the length, the position in the sound file.
94 All the values are expressed in bytes. If you need the values expressed
95 in terms of time, you have to use GetSoundFormat().GetTimeFromBytes(...)
98 \membersection{wxSoundFileStream::GetPosition
}\label{wxsoundfilestreamgetposition
}
100 \func{wxUint32
}{GetPosition
}{\void}
103 \membersection{wxSoundFileStream::SetPosition
}\label{wxsoundfilestreamsetposition
}
105 \func{wxUint32
}{SetPosition
}{\param{wxUint32
}{new
\_position}}
108 \membersection{wxSoundFileStream::Read
}\label{wxsoundfilestreamread
}
110 \func{wxSoundStream\&
}{Read
}{\param{void*
}{buffer
},
\param{wxUint32
}{len
}}
112 These two functions use the sound format specified by GetSoundFormat().
113 All samples must be encoded in that format.
116 \membersection{wxSoundFileStream::Write
}\label{wxsoundfilestreamwrite
}
118 \func{wxSoundStream\&
}{Write
}{\param{const void*
}{buffer
},
\param{wxUint32
}{len
}}
121 \membersection{wxSoundFileStream::SetSoundFormat
}\label{wxsoundfilestreamsetsoundformat
}
123 \func{bool
}{SetSoundFormat
}{\param{const wxSoundFormatBase\&
}{format
}}
125 This function set the sound format of the file. !! It must be used only
126 when you are in output mode (concerning the file) !! If you are in
127 input mode (concerning the file) you can't use this function to modify
128 the format of the samples returned by Read() !
129 For this action, you must use wxSoundRouterStream applied to wxSoundFileStream.
132 \membersection{wxSoundFileStream::GetCodecName
}\label{wxsoundfilestreamgetcodecname
}
134 \constfunc{wxString
}{GetCodecName
}{\void}
136 This function returns the Codec name. This is useful for those who want to build
137 a player (But also in some other case).
140 \membersection{wxSoundFileStream::CanRead
}\label{wxsoundfilestreamcanread
}
142 \func{bool
}{CanRead
}{\void}
144 You should use this function to test whether this file codec can read
145 the stream you passed to it.
148 \membersection{wxSoundFileStream::PrepareToPlay
}\label{wxsoundfilestreampreparetoplay
}
150 \func{bool
}{PrepareToPlay
}{\void}
153 \membersection{wxSoundFileStream::PrepareToRecord
}\label{wxsoundfilestreampreparetorecord
}
155 \func{bool
}{PrepareToRecord
}{\param{wxUint32
}{time
}}
158 \membersection{wxSoundFileStream::FinishRecording
}\label{wxsoundfilestreamfinishrecording
}
160 \func{bool
}{FinishRecording
}{\void}
163 \membersection{wxSoundFileStream::RepositionStream
}\label{wxsoundfilestreamrepositionstream
}
165 \func{bool
}{RepositionStream
}{\param{wxUint32
}{position
}}
168 \membersection{wxSoundFileStream::FinishPreparation
}\label{wxsoundfilestreamfinishpreparation
}
170 \func{void
}{FinishPreparation
}{\param{wxUint32
}{len
}}
173 \membersection{wxSoundFileStream::GetData
}\label{wxsoundfilestreamgetdata
}
175 \func{wxUint32
}{GetData
}{\param{void*
}{buffer
},
\param{wxUint32
}{len
}}
178 \membersection{wxSoundFileStream::PutData
}\label{wxsoundfilestreamputdata
}
180 \func{wxUint32
}{PutData
}{\param{const void*
}{buffer
},
\param{wxUint32
}{len
}}
183 \membersection{wxSoundFileStream::OnSoundEvent
}\label{wxsoundfilestreamonsoundevent
}
185 \func{void
}{OnSoundEvent
}{\param{int
}{evt
}}