src/multimedia/audio/qaudiooutput.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 7 3f74d0d4af4c
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtMultimedia module of the Qt Toolkit.
     7 ** This file is part of the QtMultimedia module of the Qt Toolkit.
     8 **
     8 **
    96           return;
    96           return;
    97       }
    97       }
    98 
    98 
    99       audio = new QAudioOutput(format, this);
    99       audio = new QAudioOutput(format, this);
   100       connect(audio,SIGNAL(stateChanged(QAudio::State)),SLOT(finishedPlaying(QAudio::State)));
   100       connect(audio,SIGNAL(stateChanged(QAudio::State)),SLOT(finishedPlaying(QAudio::State)));
   101       audio->start(inputFile);
   101       audio->start(&inputFile);
   102 
   102 
   103     \endcode
   103     \endcode
   104 
   104 
   105     The file will start playing assuming that the audio system and
   105     The file will start playing assuming that the audio system and
   106     output device support it. If you run out of luck, check what's
   106     output device support it. If you run out of luck, check what's