Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSoundEffectPrivateSynchronous Class Reference

#include <qsoundeffectsynchronous_p.h>

Inheritance diagram for QSoundEffectPrivateSynchronous:
Collaboration diagram for QSoundEffectPrivateSynchronous:

Public Member Functions

 QSoundEffectPrivateSynchronous (QSoundEffect *q, const QAudioDevice &audioDevice)
 ~QSoundEffectPrivateSynchronous () override
qint64 readData (char *data, qint64 len) override
 Reads up to maxSize bytes from the device into data, and returns the number of bytes read or -1 if an error occurred.
qint64 writeData (const char *data, qint64 len) override
 Writes up to maxSize bytes from data to the device.
qint64 size () const override
 For open random-access devices, this function returns the size of the device.
qint64 bytesAvailable () const override
 Returns the number of bytes that are available for reading.
bool isSequential () const override
 Returns true if this device is sequential; otherwise returns false.
bool atEnd () const override
 Returns true if the current read and write position is at the end of the device (i.e.
void setLoopsRemaining (int loopsRemaining)
void setStatus (QSoundEffect::Status status)
void setPlaying (bool playing)
bool updateAudioOutput ()
void decoderError ()
void sampleReady (SharedSamplePtr)
int loopCount () const override
bool setLoopCount (int loopCount) override
int loopsRemaining () const override
float volume () const override
bool setVolume (float volume) override
bool muted () const override
bool setMuted (bool muted) override
void play () override
void stop () override
bool playing () const override
bool setAudioDevice (QAudioDevice device) override
bool setSource (const QUrl &url, QSampleCache &sampleCache) override
QSoundEffect::Status status () const override
QUrl url () const override
QAudioDevice audioDevice () const override
Public Member Functions inherited from QIODevice
 QIODevice ()
 Constructs a QIODevice object.
 QIODevice (QObject *parent)
 Constructs a QIODevice object with the given parent.
virtual ~QIODevice ()
 The destructor is virtual, and QIODevice is an abstract base class.
QIODeviceBase::OpenMode openMode () const
 Returns the mode in which the device has been opened; i.e.
void setTextModeEnabled (bool enabled)
 If enabled is true, this function sets the \l Text flag on the device; otherwise the \l Text flag is removed.
bool isTextModeEnabled () const
 Returns true if the \l Text flag is enabled; otherwise returns false.
bool isOpen () const
 Returns true if the device is open; otherwise returns false.
bool isReadable () const
 Returns true if data can be read from the device; otherwise returns false.
bool isWritable () const
 Returns true if data can be written to the device; otherwise returns false.
int readChannelCount () const
int writeChannelCount () const
int currentReadChannel () const
void setCurrentReadChannel (int channel)
int currentWriteChannel () const
void setCurrentWriteChannel (int channel)
virtual bool open (QIODeviceBase::OpenMode mode)
 Opens the device and sets its OpenMode to mode.
virtual void close ()
 First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
virtual qint64 pos () const
 For random-access devices, this function returns the position that data is written to or read from.
virtual bool seek (qint64 pos)
 For random-access devices, this function sets the current position to pos, returning true on success, or false if an error occurred.
virtual bool reset ()
 Seeks to the start of input for random-access devices.
virtual qint64 bytesToWrite () const
 For buffered devices, this function returns the number of bytes waiting to be written.
qint64 read (char *data, qint64 maxlen)
 Reads at most maxSize bytes from the device into data, and returns the number of bytes read.
QByteArray read (qint64 maxlen)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads at most maxSize bytes from the device, and returns the data read as a QByteArray.
QByteArray readAll ()
 Reads all remaining data from the device, and returns it as a byte array.
qint64 readLine (char *data, qint64 maxlen)
 This function reads a line of ASCII characters from the device, up to a maximum of maxSize - 1 bytes, stores the characters in data, and returns the number of bytes read.
QByteArray readLine (qint64 maxlen=0)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Reads a line from the device, but no more than maxSize characters, and returns the result as a byte array.
bool readLineInto (QByteArray *result, qint64 maxlen=0)
QByteArrayView readLineInto (QSpan< char > buffer)
QByteArrayView readLineInto (QSpan< uchar > buffer)
QByteArrayView readLineInto (QSpan< std::byte > buffer)
 Reads a line from this device into buffer, and returns the subset of buffer that contains the data read.
virtual bool canReadLine () const
 Returns true if a complete line of data can be read from the device; otherwise returns false.
void startTransaction ()
void commitTransaction ()
void rollbackTransaction ()
bool isTransactionStarted () const
qint64 write (const char *data, qint64 len)
 Writes at most maxSize bytes of data from data to the device.
qint64 write (const char *data)
qint64 write (const QByteArray &data)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Writes the content of data to the device.
qint64 peek (char *data, qint64 maxlen)
QByteArray peek (qint64 maxlen)
qint64 skip (qint64 maxSize)
virtual bool waitForReadyRead (int msecs)
 Blocks until new data is available for reading and the readyRead() signal has been emitted, or until msecs milliseconds have passed.
virtual bool waitForBytesWritten (int msecs)
 For buffered devices, this function waits until a payload of buffered written data has been written to the device and the bytesWritten() signal has been emitted, or until msecs milliseconds have passed.
void ungetChar (char c)
 Puts the character c back into the device, and decrements the current position unless the position is 0.
bool putChar (char c)
 Writes the character c to the device.
bool getChar (char *c)
 Reads one character from the device and stores it in c.
QString errorString () const
 Returns a human-readable description of the last device error that occurred.
Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
QString objectName () const
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
QBindable< QStringbindableObjectName ()
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
bool isQmlObjectType () const
 Returns whether the object has been created by the QML engine or ownership has been explicitly set via QJSEngine::setObjectOwnership().
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
QThreadthread () const
 Returns the thread in which the object lives.
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
void killTimer (int id)
 Kills the timer with timer identifier, id.
void killTimer (Qt::TimerId id)
template<typename T>
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
template<typename T>
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
template<typename T>
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T>
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const QObjectListchildren () const
 Returns a list of child objects.
void setParent (QObject *parent)
 Makes the object a child of parent.
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
bool disconnect (const QObject *receiver, const char *member=nullptr) const
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
bool setProperty (const char *name, QVariant &&value)
QVariant property (const char *name) const
 Returns the value of the object's name property.
QList< QByteArraydynamicPropertyNames () const
QBindingStoragebindingStorage ()
const QBindingStoragebindingStorage () const
QObjectparent () const
 Returns a pointer to the parent object.
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObjectdynamicMetaObject () const

Additional Inherited Members

Public Types inherited from QIODeviceBase
enum  OpenModeFlag {
  NotOpen = 0x0000 , ReadOnly = 0x0001 , WriteOnly = 0x0002 , ReadWrite = ReadOnly | WriteOnly ,
  Append = 0x0004 , Truncate = 0x0008 , Text = 0x0010 , Unbuffered = 0x0020 ,
  NewOnly = 0x0040 , ExistingOnly = 0x0080
}
 This enum is used with QIODevice::open() to describe the mode in which a device is opened. More...
Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
Signals inherited from QIODevice
void readyRead ()
 This signal is emitted once every time new data is available for reading from the device's current read channel.
void channelReadyRead (int channel)
void bytesWritten (qint64 bytes)
 This signal is emitted every time a payload of data has been written to the device's current write channel.
void channelBytesWritten (int channel, qint64 bytes)
void aboutToClose ()
 This signal is emitted when the device is about to close.
void readChannelFinished ()
Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
template<typename Func1>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
Static Public Member Functions inherited from QSoundEffectPrivate
static Q_MULTIMEDIA_EXPORT QSoundEffectPrivateget (QSoundEffect *)
 \qmlsignal QtMultimedia::SoundEffect::statusChanged()
Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
static QObjectPrivateget (QObject *o)
static const QObjectPrivateget (const QObject *o)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static bool disconnect (const QObject *sender, int signal_index, void **slot)
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
Public Attributes inherited from QObjectPrivate
ExtraDataextraData
QAtomicPointer< QThreadDatathreadData
QAtomicPointer< ConnectionDataconnections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
Public Attributes inherited from QObjectData
QObjectq_ptr
QObjectparent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectDatametaObject
QBindingStorage bindingStorage
Protected Member Functions inherited from QIODevice
 QIODevice (QIODevicePrivate &dd, QObject *parent=nullptr)
virtual qint64 readLineData (char *data, qint64 maxlen)
 Reads up to maxSize characters into data and returns the number of characters read.
virtual qint64 skipData (qint64 maxSize)
void setOpenMode (QIODeviceBase::OpenMode openMode)
 Sets the OpenMode of the device to openMode.
void setErrorString (const QString &errorString)
 Sets the human readable description of the last device error that occurred to str.
Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
int senderSignalIndex () const
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
bool isSignalConnected (const QMetaMethod &signal) const
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
virtual void connectNotify (const QMetaMethod &signal)
virtual void disconnectNotify (const QMetaMethod &signal)
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
Protected Member Functions inherited from QIODeviceBase
 ~QIODeviceBase ()=default
Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
Properties inherited from QObject
QString objectName
 the name of this object

Detailed Description

Definition at line 25 of file qsoundeffectsynchronous_p.h.

Constructor & Destructor Documentation

◆ QSoundEffectPrivateSynchronous()

QSoundEffectPrivateSynchronous::QSoundEffectPrivateSynchronous ( QSoundEffect * q,
const QAudioDevice & audioDevice )

Definition at line 25 of file qsoundeffectsynchronous.cpp.

◆ ~QSoundEffectPrivateSynchronous()

QSoundEffectPrivateSynchronous::~QSoundEffectPrivateSynchronous ( )
override

Definition at line 32 of file qsoundeffectsynchronous.cpp.

Member Function Documentation

◆ atEnd()

bool QSoundEffectPrivateSynchronous::atEnd ( ) const
overridevirtual

Returns true if the current read and write position is at the end of the device (i.e.

there is no more data available for reading on the device); otherwise returns false.

For some devices, atEnd() can return true even though there is more data to read. This special case only applies to devices that generate data in direct response to you calling read() (e.g., /dev or /proc files on Unix and \macos, or console input / stdin on all platforms).

See also
bytesAvailable(), read(), isSequential()

Reimplemented from QIODevice.

Definition at line 98 of file qsoundeffectsynchronous.cpp.

◆ audioDevice()

QAudioDevice QSoundEffectPrivateSynchronous::audioDevice ( ) const
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 401 of file qsoundeffectsynchronous.cpp.

◆ bytesAvailable()

qint64 QSoundEffectPrivateSynchronous::bytesAvailable ( ) const
overridevirtual

Returns the number of bytes that are available for reading.

This function is commonly used with sequential devices to determine the number of bytes to allocate in a buffer before reading.

Subclasses that reimplement this function must call the base implementation in order to include the size of the buffer of QIODevice. Example:

See also
bytesToWrite(), readyRead(), isSequential()

Reimplemented from QIODevice.

Definition at line 84 of file qsoundeffectsynchronous.cpp.

◆ decoderError()

void QSoundEffectPrivateSynchronous::decoderError ( )

Definition at line 211 of file qsoundeffectsynchronous.cpp.

◆ isSequential()

bool QSoundEffectPrivateSynchronous::isSequential ( ) const
overridevirtual

Returns true if this device is sequential; otherwise returns false.

Sequential devices, as opposed to a random-access devices, have no concept of a start, an end, a size, or a current position, and they do not support seeking. You can only read from the device when it reports that data is available. The most common example of a sequential device is a network socket. On Unix, special files such as /dev/zero and fifo pipes are sequential.

Regular files, on the other hand, do support random access. They have both a size and a current position, and they also support seeking backwards and forwards in the data stream. Regular files are non-sequential.

See also
bytesAvailable()

Reimplemented from QIODevice.

Definition at line 93 of file qsoundeffectsynchronous.cpp.

◆ loopCount()

int QSoundEffectPrivateSynchronous::loopCount ( ) const
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 241 of file qsoundeffectsynchronous.cpp.

◆ loopsRemaining()

int QSoundEffectPrivateSynchronous::loopsRemaining ( ) const
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 260 of file qsoundeffectsynchronous.cpp.

◆ muted()

bool QSoundEffectPrivateSynchronous::muted ( ) const
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 286 of file qsoundeffectsynchronous.cpp.

◆ play()

void QSoundEffectPrivateSynchronous::play ( )
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 305 of file qsoundeffectsynchronous.cpp.

◆ playing()

bool QSoundEffectPrivateSynchronous::playing ( ) const
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 326 of file qsoundeffectsynchronous.cpp.

◆ readData()

qint64 QSoundEffectPrivateSynchronous::readData ( char * data,
qint64 maxSize )
overridevirtual

Reads up to maxSize bytes from the device into data, and returns the number of bytes read or -1 if an error occurred.

If there are no bytes to be read and there can never be more bytes available (examples include socket closed, pipe closed, sub-process finished), this function returns -1.

This function is called by QIODevice. Reimplement this function when creating a subclass of QIODevice.

When reimplementing this function it is important that this function reads all the required data before returning. This is required in order for QDataStream to be able to operate on the class. QDataStream assumes all the requested information was read and therefore does not retry reading if there was a problem.

This function might be called with a maxSize of 0, which can be used to perform post-reading operations.

See also
read(), readLine(), writeData()

Implements QIODevice.

Definition at line 38 of file qsoundeffectsynchronous.cpp.

◆ sampleReady()

void QSoundEffectPrivateSynchronous::sampleReady ( SharedSamplePtr sample)

Definition at line 219 of file qsoundeffectsynchronous.cpp.

◆ setAudioDevice()

bool QSoundEffectPrivateSynchronous::setAudioDevice ( QAudioDevice device)
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 331 of file qsoundeffectsynchronous.cpp.

◆ setLoopCount()

bool QSoundEffectPrivateSynchronous::setLoopCount ( int loopCount)
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 246 of file qsoundeffectsynchronous.cpp.

◆ setLoopsRemaining()

void QSoundEffectPrivateSynchronous::setLoopsRemaining ( int loopsRemaining)

Definition at line 103 of file qsoundeffectsynchronous.cpp.

◆ setMuted()

bool QSoundEffectPrivateSynchronous::setMuted ( bool muted)
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 291 of file qsoundeffectsynchronous.cpp.

◆ setPlaying()

void QSoundEffectPrivateSynchronous::setPlaying ( bool playing)

Definition at line 124 of file qsoundeffectsynchronous.cpp.

◆ setSource()

bool QSoundEffectPrivateSynchronous::setSource ( const QUrl & url,
QSampleCache & sampleCache )
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 353 of file qsoundeffectsynchronous.cpp.

◆ setStatus()

void QSoundEffectPrivateSynchronous::setStatus ( QSoundEffect::Status status)

Definition at line 112 of file qsoundeffectsynchronous.cpp.

◆ setVolume()

bool QSoundEffectPrivateSynchronous::setVolume ( float volume)
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 273 of file qsoundeffectsynchronous.cpp.

◆ size()

qint64 QSoundEffectPrivateSynchronous::size ( ) const
overridevirtual

For open random-access devices, this function returns the size of the device.

For open sequential devices, bytesAvailable() is returned.

If the device is closed, the size returned will not reflect the actual size of the device.

See also
isSequential(), pos()

Reimplemented from QIODevice.

Definition at line 77 of file qsoundeffectsynchronous.cpp.

◆ status()

QSoundEffect::Status QSoundEffectPrivateSynchronous::status ( ) const
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 391 of file qsoundeffectsynchronous.cpp.

◆ stop()

void QSoundEffectPrivateSynchronous::stop ( )
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 317 of file qsoundeffectsynchronous.cpp.

◆ updateAudioOutput()

bool QSoundEffectPrivateSynchronous::updateAudioOutput ( )

Definition at line 147 of file qsoundeffectsynchronous.cpp.

◆ url()

QUrl QSoundEffectPrivateSynchronous::url ( ) const
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 396 of file qsoundeffectsynchronous.cpp.

◆ volume()

float QSoundEffectPrivateSynchronous::volume ( ) const
overridevirtual

Implements QSoundEffectPrivate.

Definition at line 265 of file qsoundeffectsynchronous.cpp.

◆ writeData()

qint64 QSoundEffectPrivateSynchronous::writeData ( const char * data,
qint64 maxSize )
overridevirtual

Writes up to maxSize bytes from data to the device.

Returns the number of bytes written, or -1 if an error occurred.

This function is called by QIODevice. Reimplement this function when creating a subclass of QIODevice.

When reimplementing this function it is important that this function writes all the data available before returning. This is required in order for QDataStream to be able to operate on the class. QDataStream assumes all the information was written and therefore does not retry writing if there was a problem.

See also
read(), write()

Implements QIODevice.

Definition at line 70 of file qsoundeffectsynchronous.cpp.


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