Ignore:
Timestamp:
Oct 19, 2009, 9:12:20 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Ported QSound to OS/2 using the MMPM backend.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qsound.cpp

    r2 r250  
    8787public:
    8888    QSoundPrivate(const QString& fname)
    89         : filename(fname), bucket(0), looprem(0), looptotal(1)
     89        : filename(fname), server(0), bucket(0), looprem(0), looptotal(1)
    9090    {
    9191    }
     
    9797
    9898    QString filename;
     99    QAuServer* server;
    99100    QAuBucket* bucket;
    100101    int looprem;
     
    148149    \row
    149150    \o Mac OS X
    150     \o NSSound is used. All formats that NSSound supports, including QuickTime formats, 
     151    \o NSSound is used. All formats that NSSound supports, including QuickTime formats,
    151152    are supported by Qt for Mac OS X.
    152153    \row
     
    183184    : QObject(*new QSoundPrivate(filename), parent)
    184185{
    185     server().init(this);
     186    d_func()->server = &server();
     187    d_func()->server->init(this);
    186188}
    187189
     
    338340
    339341/*!
     342    Returns true if sound \a s was initialized using this server instance
     343    and false otherwise.
     344*/
     345bool QAuServer::isRelevant(QSound* s)
     346{
     347    return s->d_func()->server == this;
     348}
     349
     350/*!
    340351    Sets the internal bucket record of sound \a s to \a b, deleting
    341352    any previous setting.
Note: See TracChangeset for help on using the changeset viewer.