mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 23:32:27 +02:00
28 lines
615 B
C++
28 lines
615 B
C++
//
|
|
// AudioSource.h
|
|
// interface
|
|
//
|
|
// Created by Stephen Birarda on 1/29/13.
|
|
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef __interface__AudioSource__
|
|
#define __interface__AudioSource__
|
|
|
|
#include <iostream>
|
|
#include "glm.hpp"
|
|
|
|
class AudioSource {
|
|
public:
|
|
glm::vec3 position;
|
|
int16_t *sourceData;
|
|
int lengthInSamples;
|
|
int samplePointer;
|
|
|
|
AudioSource() { samplePointer = 0; sourceData = NULL; }
|
|
~AudioSource();
|
|
|
|
int loadDataFromFile(const char *filename);
|
|
};
|
|
|
|
#endif /* defined(__interface__AudioSource__) */
|