<commit_before>// Copyright (C) 2017 <NAME>
// This file is part of the Ouzel engine.

#include "SoundSample.h"
#include "MainMenu.h"

using namespace std;
using namespace ouzel;

SoundSample::SoundSample()
{
    eventHandler.gamepadHandler = bind(&SoundSample::handleGamepad, this, placeholders::_1, placeholders::_2);
    eventHandler.uiHandler = bind(&SoundSample::handleUI, this, placeholders::_1, placeholders::_2);
    eventHandler.keyboardHandler = bind(&SoundSample::handleKeyboard, this, placeholders::_1, placeholders::_2);
    sharedEngine->getEventDispatcher()->addEventHandler(&eventHandler);

    test8BitSound.reset(new audio::Sound());
    test8BitSound->init(sharedEngine->getCache()->getSoundData("8-bit.wav"));

    test24BitSound.reset(new audio::Sound());
    test24BitSound->init(sharedEngine->getCache()->getSoundData("24-bit"));

    jumpSound.reset(new audio::Sound());
    jumpSound->init(sharedEngine->getCache()->getSoundData("jump.wav"));<commit_msg>Fix sound sample<commit_after>// Copyright (C) 2017 <NAME>
// This file is part of the Ouzel engine.

#include "SoundSample.h"
#include "MainMenu.h"

using namespace std;
using namespace ouzel;

SoundSample::SoundSample()
{
    eventHandler.gamepadHandler = bind(&SoundSample::handleGamepad, this, placeholders::_1, placeholders::_2);
    eventHandler.uiHandler = bind(&SoundSample::handleUI, this, placeholders::_1, placeholders::_2);
    eventHandler.keyboardHandler = bind(&SoundSample::handleKeyboard, this, placeholders::_1, placeholders::_2);
    sharedEngine->getEventDispatcher()->addEventHandler(&eventHandler);

    test8BitSound.reset(new audio::Sound());
    test8BitSound->init(sharedEngine->getCache()->getSoundData("8-bit.wav"));

    test24BitSound.reset(new audio::Sound());
    test24BitSound->init(sharedEngine->getCache()->getSoundData("24-bit.wav"));

    jumpSound.reset(new audio::Sound());
    jumpSound->init(sharedEngine->getCache()->getSoundData("jump.wav"));
{'fraction_non_alphanumeric': 0.15826972010178117, 'fraction_numerical': 0.019338422391857506, 'mean_word_length': 6.62015503875969, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4085333', 'n_tokens_mistral': 598, 'n_tokens_neox': 591, 'n_words': 99}