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}}
25 \func{}{wxSoundFileStream
}{\param{wxOutputStream\&
}{stream
},
\param{wxSoundStream\&
}{io
\_sound}}
27 \membersection{wxSoundFileStream::
\destruct{wxSoundFileStream
}}\label{wxsoundfilestreamdtor
}
29 \func{}{\destruct{wxSoundFileStream
}}{\void}
32 \membersection{wxSoundFileStream::Play
}\label{wxsoundfilestreamplay
}
34 \func{bool
}{Play
}{\void}
36 Usual sound file calls (Play, Stop, ...)
39 \membersection{wxSoundFileStream::Record
}\label{wxsoundfilestreamrecord
}
41 \func{bool
}{Record
}{\param{wxUint32
}{time
}}
44 \membersection{wxSoundFileStream::Stop
}\label{wxsoundfilestreamstop
}
46 \func{bool
}{Stop
}{\void}
49 \membersection{wxSoundFileStream::Pause
}\label{wxsoundfilestreampause
}
51 \func{bool
}{Pause
}{\void}
54 \membersection{wxSoundFileStream::Resume
}\label{wxsoundfilestreamresume
}
56 \func{bool
}{Resume
}{\void}
59 \membersection{wxSoundFileStream::IsStopped
}\label{wxsoundfilestreamisstopped
}
61 \constfunc{bool
}{IsStopped
}{\void}
63 Functions which return the current state
66 \membersection{wxSoundFileStream::IsPaused
}\label{wxsoundfilestreamispaused
}
68 \constfunc{bool
}{IsPaused
}{\void}
71 \membersection{wxSoundFileStream::StartProduction
}\label{wxsoundfilestreamstartproduction
}
73 \func{bool
}{StartProduction
}{\param{int
}{evt
}}
75 A user should not call these two functions.
76 Several things must be done before calling them.
77 Users should use Play(), ...
80 \membersection{wxSoundFileStream::StopProduction
}\label{wxsoundfilestreamstopproduction
}
82 \func{bool
}{StopProduction
}{\void}
85 \membersection{wxSoundFileStream::GetLength
}\label{wxsoundfilestreamgetlength
}
87 \func{wxUint32
}{GetLength
}{\void}
89 These three functions deals with the length, the position in the sound file.
90 All the values are expressed in bytes. If you need the values expressed
91 in terms of time, you have to use GetSoundFormat().GetTimeFromBytes(...)
94 \membersection{wxSoundFileStream::GetPosition
}\label{wxsoundfilestreamgetposition
}
96 \func{wxUint32
}{GetPosition
}{\void}
99 \membersection{wxSoundFileStream::SetPosition
}\label{wxsoundfilestreamsetposition
}
101 \func{wxUint32
}{SetPosition
}{\param{wxUint32
}{new
\_position}}
104 \membersection{wxSoundFileStream::Read
}\label{wxsoundfilestreamread
}
106 \func{wxSoundStream\&
}{Read
}{\param{void*
}{buffer
},
\param{wxUint32
}{len
}}
108 These two functions use the sound format specified by GetSoundFormat().
109 All samples must be encoded in that format.
112 \membersection{wxSoundFileStream::Write
}\label{wxsoundfilestreamwrite
}
114 \func{wxSoundStream\&
}{Write
}{\param{const void*
}{buffer
},
\param{wxUint32
}{len
}}
117 \membersection{wxSoundFileStream::SetSoundFormat
}\label{wxsoundfilestreamsetsoundformat
}
119 \func{bool
}{SetSoundFormat
}{\param{const wxSoundFormatBase\&
}{format
}}
121 This function set the sound format of the file. !! It must be used only
122 when you are in output mode (concerning the file) !! If you are in
123 input mode (concerning the file) you can't use this function to modify
124 the format of the samples returned by Read() !
125 For this action, you must use wxSoundRouterStream applied to wxSoundFileStream.
128 \membersection{wxSoundFileStream::GetCodecName
}\label{wxsoundfilestreamgetcodecname
}
130 \constfunc{wxString
}{GetCodecName
}{\void}
132 This function returns the Codec name. This is useful for those who want to build
133 a player (But also in some other case).
136 \membersection{wxSoundFileStream::CanRead
}\label{wxsoundfilestreamcanread
}
138 \func{bool
}{CanRead
}{\void}
140 You should use this function to test whether this file codec can read
141 the stream you passed to it.
144 \membersection{wxSoundFileStream::PrepareToPlay
}\label{wxsoundfilestreampreparetoplay
}
146 \func{bool
}{PrepareToPlay
}{\void}
149 \membersection{wxSoundFileStream::PrepareToRecord
}\label{wxsoundfilestreampreparetorecord
}
151 \func{bool
}{PrepareToRecord
}{\param{wxUint32
}{time
}}
154 \membersection{wxSoundFileStream::FinishRecording
}\label{wxsoundfilestreamfinishrecording
}
156 \func{bool
}{FinishRecording
}{\void}
159 \membersection{wxSoundFileStream::RepositionStream
}\label{wxsoundfilestreamrepositionstream
}
161 \func{bool
}{RepositionStream
}{\param{wxUint32
}{position
}}
164 \membersection{wxSoundFileStream::FinishPreparation
}\label{wxsoundfilestreamfinishpreparation
}
166 \func{void
}{FinishPreparation
}{\param{wxUint32
}{len
}}
169 \membersection{wxSoundFileStream::GetData
}\label{wxsoundfilestreamgetdata
}
171 \func{wxUint32
}{GetData
}{\param{void*
}{buffer
},
\param{wxUint32
}{len
}}
174 \membersection{wxSoundFileStream::PutData
}\label{wxsoundfilestreamputdata
}
176 \func{wxUint32
}{PutData
}{\param{const void*
}{buffer
},
\param{wxUint32
}{len
}}
179 \membersection{wxSoundFileStream::OnSoundEvent
}\label{wxsoundfilestreamonsoundevent
}
181 \func{void
}{OnSoundEvent
}{\param{int
}{evt
}}