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

BOOL PSoundChannel::Write ( const void *  buf,
PINDEX  len 
) [inline, virtual]

Low level write (or play) to the channel. This function will block until the requested number of characters are written or the write timeout is reached. The GetLastWriteCount() function returns the actual number of bytes written.

The GetErrorCode() function should be consulted after Write() returns FALSE to determine what caused the failure.

Returns:
TRUE if at least len bytes were written to the channel.

Reimplemented from PChannel.

Reimplemented in PSoundChannelDirectSound, PSoundChannelWin32, PSoundChannelBeOS, PSoundChannelCoreAudio, PSoundChannelALSA, PSoundChannelESD, PSoundChannelOSS, and PSoundChannelSunAudio.

Definition at line 599 of file sound.h.

References Write().

Referenced by TestAudioWrite::Main(), and Write().

      { return (baseChannel == NULL) ? FALSE : baseChannel->Write(buf, len); }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index