www.BCB-Tools.com

Home of
RAD DirectX
for
C++ Builder

...

C++ Builder wrapping DirectX

...

Please Register

So we can
create more

the TDx_Library
the TDx9_Library



Welcome to BCB-Tools.com Latest News

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

Register Here! Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    TDx_Sound_Library v1.90 Component Reference

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

    [ TDx_SoundBuffer::GetFormat() ]     [ next: GetFrequency() ]     [ prev: GetCurrentPosition() ]

    public:

         virtual bool __fastcall GetFormat( WAVEFORMATEX* pFormat, dword pSizeAllocated, dword* pSizeWritten );





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

    • Description

        The TDx_SoundBuffer::GetFormat method will return either the sound data format of the buffer or amount of space needed to retrieve that information.

        If the method call fails, the OnError event may be triggered with the following value:
        DSERR_INVALIDPARAM

    • Parameters

        Format
        The Format parameter references a WAVEFORMATEX structure for holding the sound data format of the buffer.

        Setting this parameter to NULL will cause the required buffer size to be placed in the SizeWritten parameter of this method.

        SizeAllocated
        The SizeAllocated parameter defines the size, in bytes, of the WAVEFORMATEX structure referenced by the Format parameter of this method.

        SizeWritten
        The SizeWritten parameter will reference the amount, in bytes, written into the WAVEFORMATEX structure referenced by the Format parameter of this method.
        This parameter may be set to NULL.


    • See Also
    • Top





    If you would like to submit additions or improvements to this page, click: admin@bcb-tools.com.



























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2008 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.