Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

WAVExport Class Reference

WAV Export Pipe. More...

Inheritance diagram for WAVExport:

Inheritance graph
[legend]
Collaboration diagram for WAVExport:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool OpenAudio (char *output, int channels, int frequency, int bytespersample)
 Open an audio output for WAV.
bool OutputAudioFrame (int16_t *data, int length)
 Output an audio frame of the specified length.
bool CloseAudio ()
 Close the output.

Private Attributes

WAVStruct wav

Detailed Description

WAV Export Pipe.

Definition at line 383 of file kino_av_pipe.cc.


Member Function Documentation

bool WAVExport::CloseAudio  )  [virtual]
 

Close the output.

Implements KinoAudioPipe.

Definition at line 415 of file kino_av_pipe.cc.

References sigpipe_clear(), sigpipe_get(), wav, and WAVStruct_Close().

00416 {
00417     sigpipe_clear();
00418     WAVStruct_Close( wav );
00419     return sigpipe_get() == 0;
00420 }

bool WAVExport::OpenAudio char *  output,
int  channels,
int  frequency,
int  bytespersample
[virtual]
 

Open an audio output for WAV.

Implements KinoAudioPipe.

Definition at line 396 of file kino_av_pipe.cc.

References sigpipe_clear(), sigpipe_get(), wav, and WAVStruct_Init().

00397 {
00398     sigpipe_clear();
00399     wav = WAVStruct_Init( output, channels, frequency, bytespersample );
00400     return wav != NULL && sigpipe_get() == 0;
00401 }

bool WAVExport::OutputAudioFrame int16_t *  data,
int  length
[virtual]
 

Output an audio frame of the specified length.

Implements KinoAudioPipe.

Definition at line 406 of file kino_av_pipe.cc.

References sigpipe_clear(), sigpipe_get(), wav, and WAVStruct_WriteData().

00407 {
00408     sigpipe_clear();
00409     return WAVStruct_WriteData( wav, data, length ) == 1 && sigpipe_get() == 0;
00410 }


Member Data Documentation

WAVStruct WAVExport::wav [private]
 

Definition at line 386 of file kino_av_pipe.cc.

Referenced by CloseAudio(), OpenAudio(), and OutputAudioFrame().


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 22:13:28 2007 for Kino by  doxygen 1.4.2