Adding ViroKit. Needs AWSCore :(

This commit is contained in:
John Lyon-Smith
2018-03-27 17:46:15 -07:00
parent 2ab15e7dc1
commit 02e06dface
844 changed files with 86921 additions and 21 deletions

View File

@@ -0,0 +1,40 @@
//
// VROAudioPlayer.h
// ViroRenderer
//
// Created by Raj Advani on 3/22/16.
// Copyright © 2016 Viro Media. All rights reserved.
//
#ifndef VROAudioPlayer_h
#define VROAudioPlayer_h
#include <string>
#include <memory>
#include "VROSoundDelegateInternal.h"
class VROData;
class VROAudioPlayer {
public:
virtual ~VROAudioPlayer() {}
virtual void setup() = 0;
virtual void setDelegate(std::shared_ptr<VROSoundDelegateInternal> delegate) {
_delegate = delegate;
}
virtual void setLoop(bool loop) = 0;
virtual void play() = 0;
virtual void pause() = 0;
virtual void setVolume(float volume) = 0;
virtual void setMuted(bool muted) = 0;
virtual void seekToTime(float seconds) = 0;
protected:
std::shared_ptr<VROSoundDelegateInternal> _delegate;
};
#endif /* VROAudioPlayer_h */