Definition at line 518 of file qsoundqss_qws.cpp.
◆ QWSSoundServerBucket()
QWSSoundServerBucket::QWSSoundServerBucket |
( |
int |
d, |
|
|
int |
wid, |
|
|
int |
sid |
|
) |
| |
|
inline |
Definition at line 520 of file qsoundqss_qws.cpp.
bool mInsufficientSamples
QWSSoundServerProvider(int w, int s)
◆ ~QWSSoundServerBucket()
QWSSoundServerBucket::~QWSSoundServerBucket |
( |
| ) |
|
|
inline |
◆ finished()
bool QWSSoundServerBucket::finished |
( |
| ) |
const |
|
inlinevirtual |
◆ readySamples()
int QWSSoundServerBucket::readySamples |
( |
int |
| ) |
|
|
inlinevirtual |
Implements QWSSoundServerProvider.
Definition at line 538 of file qsoundqss_qws.cpp.
547 if (size > 0 && dest != 0) {
553 int nr = ::read(
dev, (
void*)&
chunk,n);
565 if ( read(
dev, d, 4) != 4 ) {
571 }
else if (
qstrncmp(d,
"WAVE",4) != 0 ) {
579 if ( ::read(
dev,(
char*)&
chunkdata,
sizeof(chunkdata)) !=
sizeof(chunkdata) ) {
585 #define WAVE_FORMAT_PCM 1 594 chunkdata.avgBytesPerSec =
qToLittleEndian( chunkdata.avgBytesPerSec );
596 chunkdata.wBitsPerSample =
qToLittleEndian( chunkdata.wBitsPerSample );
598 qWarning(
"WAV file: UNSUPPORTED FORMAT %d",chunkdata.formatTag);
623 if (size > 0 && dest != 0) {
void updateBuffer(int read)
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
bool mInsufficientSamples
char * prepareBuffer(int &size)
struct QWSSoundServerProvider::@162 chunkdata
Q_CORE_EXPORT void qWarning(const char *,...)
int qstrncmp(const char *str1, const char *str2, uint len)
T qToLittleEndian(T source)
◆ chunk
◆ mFinishedRead
bool QWSSoundServerBucket::mFinishedRead |
|
protected |
◆ mInsufficientSamples
bool QWSSoundServerBucket::mInsufficientSamples |
|
protected |
◆ wavedata_remaining
int QWSSoundServerBucket::wavedata_remaining |
|
protected |
The documentation for this class was generated from the following file: