Ignore:
Timestamp:
Jan 8, 2006, 4:25:39 PM (20 years ago)
Author:
dmik
Message:

Added bool QAuServer::isRelevant(QSound*) as a protected non-virtual member (so it doesn't break binary compatibility).

File:
1 edited

Legend:

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

    r35 r45  
    11/****************************************************************************
    2 ** $Id: qt/qsound.cpp   3.3.1   edited Sep 30 11:25 $
     2** $Id:qsound.cpp 35 2005-12-11 15:03:18Z dmik $
    33**
    44** Implementation of QSound class and QAuServer internal class
     
    8080public:
    8181    QSoundData(const QString& fname) :
    82         filename(fname), bucket(0), looprem(0), looptotal(1)
     82        filename(fname), server(0), bucket(0), looprem(0), looptotal(1)
    8383    {
    8484    }
     
    9090
    9191    QString filename;
     92    QAuServer* server;
    9293    QAuBucket* bucket;
    9394    int looprem;
     
    124125    only WAVE format sound files are supported.
    125126
     127    On IBM OS/2 the underlying MMPM system is used;
     128    all MMPM audio formats are supported.
     129   
    126130    On X11 the \link ftp://ftp.x.org/contrib/audio/nas/ Network Audio
    127131    System\endlink is used if available, otherwise all operations work
     
    166170    d(new QSoundData(filename))
    167171{
    168     server().init(this);
     172    d->server = &server();
     173    d->server->init(this);
    169174}
    170175
     
    268273
    269274/*!
     275    Returns true if sound \a s was initialized using this server instance
     276    and false otherwise.
     277*/
     278bool QAuServer::isRelevant(QSound* s)
     279{
     280    return s->d->server == this;
     281}
     282
     283/*!
    270284    Sets the internal bucket record of sound \a s to \a b, deleting
    271285    any previous setting.
Note: See TracChangeset for help on using the changeset viewer.