1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Bring that Whole New World to the Old Continent too

Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
Rémi Verschelde
2017-03-19 00:36:26 +01:00
parent 1d418afe86
commit f8db8a3faa
1308 changed files with 147754 additions and 174357 deletions

View File

@@ -28,7 +28,6 @@
/*************************************************************************/
#include "event_stream.h"
Error EventStreamPlayback::play() {
if (stream.is_valid())
stop();
@@ -37,49 +36,37 @@ Error EventStreamPlayback::play() {
if (err)
return err;
playing=true;
AudioServer::get_singleton()->stream_set_active(stream,true);
playing = true;
AudioServer::get_singleton()->stream_set_active(stream, true);
return OK;
}
void EventStreamPlayback::stop(){
void EventStreamPlayback::stop() {
if (!playing)
return;
AudioServer::get_singleton()->stream_set_active(stream,false);
AudioServer::get_singleton()->stream_set_active(stream, false);
_stop();
playing=false;
playing = false;
}
bool EventStreamPlayback::is_playing() const{
bool EventStreamPlayback::is_playing() const {
return playing;
}
EventStreamPlayback::EventStreamPlayback() {
playing=false;
estream.playback=this;
stream=AudioServer::get_singleton()->event_stream_create(&estream);
playing = false;
estream.playback = this;
stream = AudioServer::get_singleton()->event_stream_create(&estream);
}
EventStreamPlayback::~EventStreamPlayback() {
AudioServer::get_singleton()->free(stream);
}
EventStream::EventStream()
{
EventStream::EventStream() {
}