VCL RAD DirectX for C++ Builder

Welcome to

www.tdxlibrary.org

Home of the
the TDx_Library...

=- RAD DirectX =-

"RAD DirectX"
for
C++ Builder

...

Welcome to tdxlibrary.org Latest News

Development Tools Demo Applications Step-By-Step Tutorials Component Reference

Register our Tools Available Downloads

Frequently Asked Questions Links to other sites Information about the tdxlibrary.org website


    TDx_Sound_Library v2.00 Component Reference

    -= Click to navigate the reference =-
    Go to the Welcome Page

    [ TDx_SoundBuffer::SaveToFile() ]     [ next: SetCurrentPosition() ]     [ prev: Restore() ]

    public:

         virtual bool __fastcall SaveToFile( AnsiString pFileName, WAVEFORMATEX* pFormat, int pFormatSize );





    -= Go to the TDx_SoundBuffer description =-    TDX_SOUNDBUFFER::SAVETOFILE()   [ component method ]

    • Description

        The SaveToFile method will save the entire sound buffer to a specified file.

        This method will not append data. If you wish to save sound data a segment at a time, TDx_SoundBuffer::WriteToStream() should be used.

        The application should ensure the desired WAVEFORMATEX values are set in the StreamFormat property of this component prior to calling this method.

        If the method call fails, the OnError event will be triggered with one of the following values:
        TDX_BADPARAMS
        TDX_ERROR

    • Parameters

        FileName
        The FileName parameter defines the path and filename of the new .wav file which is to be created.

        Format
        The Format method parameter describes the format of the sound file to be created. This parameter must point to a user-supplied WAVEFORMATEX structure that has been filled with appropriate values.

        FormatSize
        The FormatSize parameter must contain the size of the WAVEFORMATEX structure passed into this method via the Format parameter. Generally this will be sizeof(WAVEFORMATEX) but it may differ depending on the definition of the WAVEFORMATEX.


    • See Also
    • Top





    If you would like to submit additions or improvements to this page, click: darren_john_dwyer@hotmail.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Links |  Site Information

This page is Copyright © 2019 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.