Nsound  0.9.4
Public Member Functions | Public Attributes | List of all members
Nsound::AudioPlaybackRtDebug Struct Reference

#include <Nsound/AudioPlaybackRt.h>

Public Member Functions

std::string __str__ () const
 

Public Attributes

uint32 unknown_error_count
 
uint32 overrun_count
 
uint32 underrun_count
 
uint32 pa_overrun_count
 
uint32 pa_underrun_count
 
uint32 pool_size
 
uint32 n_ready
 
uint32 wr_index
 
uint32 wr_ptr
 
uint32 rd_ptr
 
float64 samplerate
 
uint32 samples_per_buffer
 
bool is_streaming
 
std::vector< uint32n_history
 

Detailed Description

Definition at line 69 of file AudioPlaybackRt.h.

Member Function Documentation

std::string Nsound::AudioPlaybackRtDebug::__str__ ( ) const

Definition at line 891 of file AudioPlaybackRt.cc.

References is_streaming, n_history, n_ready, overrun_count, pa_overrun_count, pa_underrun_count, pool_size, rd_ptr, samplerate, samples_per_buffer, underrun_count, unknown_error_count, wr_index, and wr_ptr.

892 {
893  std::stringstream ss;
894 
895  ss
896  << "AudioPlaybackRtDebug:\n"
897  << " unknown_error_count = " << unknown_error_count << "\n"
898  << " overrun_count = " << overrun_count << "\n"
899  << " underrun_count = " << underrun_count << "\n"
900  << " pa_overrun_count = " << pa_overrun_count << "\n"
901  << " pa_underrun_count = " << pa_underrun_count << "\n"
902  << " pool_size = " << pool_size << "\n"
903  << " n_ready = " << n_ready << "\n"
904  << " wr_index = " << wr_index << "\n"
905  << " wr_ptr = " << wr_ptr << "\n"
906  << " rd_ptr = " << rd_ptr << "\n"
907  << " sampleRate = " << samplerate << "\n"
908  << " samples_per_buffer = " << samples_per_buffer << "\n"
909  << " is_streaming = ";
910 
911  if(is_streaming) ss << "yes\n";
912  else ss << "no\n";
913 
914  ss << " n_history:\n";
915 
916  for(uint32 n : n_history)
917  {
918  ss << " " << n << "\n";
919  }
920 
921  return ss.str();
922 }
unsigned int uint32
Definition: Nsound.h:153
std::vector< uint32 > n_history

Member Data Documentation

uint32 Nsound::AudioPlaybackRtDebug::unknown_error_count

Definition at line 71 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::overrun_count

Definition at line 72 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::underrun_count

Definition at line 73 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::pa_overrun_count

Definition at line 74 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::pa_underrun_count

Definition at line 75 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::pool_size

Definition at line 76 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::n_ready

Definition at line 77 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::wr_index

Definition at line 78 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::wr_ptr

Definition at line 79 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::rd_ptr

Definition at line 80 of file AudioPlaybackRt.h.

Referenced by __str__().

float64 Nsound::AudioPlaybackRtDebug::samplerate

Definition at line 81 of file AudioPlaybackRt.h.

Referenced by __str__().

uint32 Nsound::AudioPlaybackRtDebug::samples_per_buffer

Definition at line 82 of file AudioPlaybackRt.h.

Referenced by __str__().

bool Nsound::AudioPlaybackRtDebug::is_streaming

Definition at line 83 of file AudioPlaybackRt.h.

Referenced by __str__().

std::vector<uint32> Nsound::AudioPlaybackRtDebug::n_history

Definition at line 85 of file AudioPlaybackRt.h.

Referenced by __str__().


The documentation for this struct was generated from the following files: