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_Sound::GetSpeakerConfig() ]     [ next: Internal_DSEnumerateCallback() ]     [ prev: GetCaps() ]

    public:

         virtual bool __fastcall GetSpeakerConfig( dword* pSpeakerConfig );





    -= Go to the TDx_Sound description =-    TDX_SOUND::GETSPEAKERCONFIG()   [ component method ]

    • Description

        The TDx_Sound::GetSpeakerConfig method will return the current speaker configuration settings.

        As the result may be a packed DWORD when DSSPEAKER_STEREO is returned, use the following predefined macros to extract the correct configuration and geometry.

        DSSPEAKER_CONFIG(SpeakerConfig)
        DSSPEAKER_GEOMETRY(SpeakerConfig)

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

    • Parameters

        SpeakerConfig
        The SpeakerConfig parameter will reference flags defining the current speaker configuration settings if this method returns successfully.
        The described effect applies when the flag is set.

          DSSPEAKER_5POINT1
          Surround sound speakers are being used with a subwoofer.

          DSSPEAKER_GEOMETRY_MAX
          The stereo speakers are placed such as to have an arc of 180 degrees.

          DSSPEAKER_GEOMETRY_MIN
          The stereo speakers are placed such as to have an arc of 5 degrees.

          DSSPEAKER_GEOMETRY_NARROW
          The stereo speakers are placed such as to have an arc of 10 degrees.

          DSSPEAKER_GEOMETRY_WIDE
          The stereo speakers are placed such as to have an arc of 20 degrees.

          DSSPEAKER_HEADPHONE
          Headphones are being used.

          DSSPEAKER_MONO
          A single speaker is being used.

          DSSPEAKER_QUAD
          Quadraphonic speakers are being used.

          DSSPEAKER_STEREO
          Stereo speakers are being used.
          This is the default value.

          DSSPEAKER_SURROUND
          Surround sound speakers are being used.


    • 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.