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::Stop() ]     [ next: Unlock() ]     [ prev: SetVolume() ]

    public:

         virtual bool __fastcall Stop();





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

    • Description

        The TDx_SoundBuffer::Stop method will halt the playing of the sound buffer.

        The play position of a secondary buffer will be set to the next sample to be played. Play will resume from where the buffer was stopped.

        When called on a primary buffer utilizing the DSSCL_WRITEPRIMARY cooperative level, the buffer will be stopped and the play position reset to 0. This is done because most sound devices can only play from the beginning of the primary buffer.

        For other cooperative levels, this method will reverse the effects of TDx_SoundBuffer::Play() being called on a primary buffer.
        That is, the buffer will stop whenever there are no secondary buffers playing. The buffer will not actually stop playing until all the secondary buffers of this or any other application have stopped.

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

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