neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::audio_device Class Reference

#include <audio_device.hpp>

Inheritance diagram for neogfx::audio_device:
neolib::reference_counted< Base, DeallocateOnRelease >

Public Member Functions

 audio_device (audio_context aContext, i_audio_device_info const &aDeviceInfo, audio_data_format const &aDataFormat)
 
 ~audio_device ()
 
i_audio_device_info const & info () const final
 
audio_data_format const & data_format () const final
 
void start () final
 
void stop () final
 
void play (i_audio_bitstream &aBitstream, std::chrono::duration< double > const &aDuration) final
 
- Public Member Functions inherited from neolib::reference_counted< Base, DeallocateOnRelease >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_type * release_and_take_ownership () const override
 
base_type * release_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 

Detailed Description

Definition at line 50 of file audio_device.hpp.

Constructor & Destructor Documentation

◆ audio_device()

neogfx::audio_device::audio_device ( audio_context  aContext,
i_audio_device_info const &  aDeviceInfo,
audio_data_format const &  aDataFormat 
)

◆ ~audio_device()

neogfx::audio_device::~audio_device ( )

Member Function Documentation

◆ data_format()

audio_data_format const & neogfx::audio_device::data_format ( ) const
final

◆ info()

i_audio_device_info const & neogfx::audio_device::info ( ) const
final

◆ play()

void neogfx::audio_device::play ( i_audio_bitstream aBitstream,
std::chrono::duration< double > const &  aDuration 
)
final

◆ start()

void neogfx::audio_device::start ( )
final

◆ stop()

void neogfx::audio_device::stop ( )
final

The documentation for this class was generated from the following file: