<commit_before>/******************************************************************************
 * This file is part of the Gluon Development Platform
 * Copyright (C) 2008 <NAME> <<EMAIL>>
 * Copyright (C) 2008 <NAME> <<EMAIL>>
 * Copyright (C) 2008 <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#include <QDebug>
#include <iostream>

#include <gluon/audio/sound.h>
#include <gluon/audio/engine.h>

int main( int argc, char* argv[] )
{
    GluonAudio::Engine::instance();

    GluonAudio::Sound* left = new GluonAudio::Sound( "/usr/share/sounds/alsa/Front_Left.wav" );
    GluonAudio::Sound* right = new GluonAudio::Sound( "/usr/share/sounds/alsa/Front_Right.wav" );
    GluonAudio::Sound* center = new GluonAudio::Sound( "/usr/share/sounds/alsa/Front_Center.wav" );

    left->setPosition( -1, 0, 0 );
    right->setPosition( 1, 0, 0 );

    qDebug() << "Playing left. Press enter to continue.";
    left->play();
    std::cin.get();

    qDebug() << "Playing right. Press enter to continue.";
    right->play();
    std::cin.get();

    qDebug() << "Playing center. Press enter to continue.";
    center->play();
    std::cin.get();

    delete left;
    delete right;
    delete center;

    GluonAudio::Engine::close();
}<commit_msg>Eliminate the Standard Template Library usage from the first audio tutoria2.<commit_after>/******************************************************************************
 * This file is part of the Gluon Development Platform
 * Copyright (C) 2008 <NAME> <<EMAIL>>
 * Copyright (C) 2008 <NAME> <<EMAIL>>
 * Copyright (C) 2008 <NAME> <<EMAIL>>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#include <gluon/audio/sound.h>
#include <gluon/audio/engine.h>

#include <QDebug>

int main( int argc, char* argv[] )
{
    GluonAudio::Engine::instance();

    GluonAudio::Sound* left = new GluonAudio::Sound( "/usr/share/sounds/alsa/Front_Left.wav" );
    GluonAudio::Sound* right = new GluonAudio::Sound( "/usr/share/sounds/alsa/Front_Right.wav" );
    GluonAudio::Sound* center = new GluonAudio::Sound( "/usr/share/sounds/alsa/Front_Center.wav" );

    left->setPosition( -1, 0, 0 );
    right->setPosition( 1, 0, 0 );

    qDebug() << "Playing left. Press enter to continue.";
    left->play();
	QTextStream(stdin).readLine();

    qDebug() << "Playing right. Press enter to continue.";
    right->play();
	QTextStream(stdin).readLine();

    qDebug() << "Playing center. Press enter to continue.";
    center->play();
	QTextStream(stdin).readLine();

    delete left;
    delete right;
    delete center;

    GluonAudio::Engine::close();
}
{'fraction_non_alphanumeric': 0.15777610818933133, 'fraction_numerical': 0.015777610818933134, 'mean_word_length': 3.9738480697384806, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2342650', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1122, 'n_words': 434}