| Urho3D
    | 
Base class for sound streams. More...
#include </home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Audio/SoundStream.h>
 
  
| Public Member Functions | |
| SoundStream () | |
| Construct. | |
| ~SoundStream () override | |
| Destruct. | |
| virtual bool | Seek (unsigned sample_number) | 
| Seek to sample number. Return true on success. Need not be implemented by all streams. | |
| virtual unsigned | GetData (signed char *dest, unsigned numBytes)=0 | 
| Produce sound data into destination. Return number of bytes produced. Called by SoundSource from the mixing thread. | |
| void | SetFormat (unsigned frequency, bool sixteenBit, bool stereo) | 
| Set sound data format. | |
| void | SetStopAtEnd (bool enable) | 
| Set whether playback should stop when no more data. Default false. | |
| unsigned | GetSampleSize () const | 
| Return sample size. | |
| float | GetFrequency () const | 
| Return default frequency as a float. | |
| unsigned | GetIntFrequency () const | 
| Return default frequency as an integer. | |
| bool | GetStopAtEnd () const | 
| Return whether playback should stop when no more data. | |
| bool | IsSixteenBit () const | 
| Return whether data is sixteen bit. | |
| bool | IsStereo () const | 
| Return whether data is stereo. | |
|  Public Member Functions inherited from Dviglo::RefCounted | |
| RefCounted () | |
| Construct. Allocate the reference count structure and set an initial self weak reference. | |
| virtual | ~RefCounted () | 
| Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist. | |
| RefCounted (const RefCounted &rhs)=delete | |
| Prevent copy construction. | |
| RefCounted & | operator= (const RefCounted &rhs)=delete | 
| Prevent assignment. | |
| void | AddRef () | 
| void | ReleaseRef () | 
| int | Refs () const | 
| int | WeakRefs () const | 
| RefCount * | RefCountPtr () | 
| Return pointer to the reference count structure. | |
| Protected Attributes | |
| unsigned | frequency_ | 
| Default frequency. | |
| bool | stopAtEnd_ | 
| Stop when no more data flag. | |
| bool | sixteenBit_ | 
| Sixteen bit flag. | |
| bool | stereo_ | 
| Stereo flag. | |
Base class for sound streams.
 1.8.17
 1.8.17