You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
352 B
22 lines
352 B
3 years ago
|
// Sounds.hpp
|
||
|
// Sounds header file for Pong
|
||
|
// Copyright (C) 2020, Jakob Wakeling
|
||
|
// All rights reserved.
|
||
|
|
||
|
#include <SFML/Audio.hpp>
|
||
|
|
||
|
namespace pong {
|
||
|
class Sounds {
|
||
|
public:
|
||
|
Sounds();
|
||
|
|
||
|
void playSound1();
|
||
|
void playSound2();
|
||
|
void playSound3();
|
||
|
|
||
|
private:
|
||
|
sf::SoundBuffer buffer1, buffer2, buffer3;
|
||
|
sf::Sound sound1, sound2, sound3;
|
||
|
};
|
||
|
}
|