2019-02-21 14:56:25 +00:00
|
|
|
#ifndef _MPEG_AUDIO_H_
|
|
|
|
#define _MPEG_AUDIO_H_
|
|
|
|
|
2024-08-09 07:57:00 +00:00
|
|
|
#include "Game.h"
|
2019-02-21 14:56:25 +00:00
|
|
|
#include <cstdint>
|
|
|
|
|
2024-08-09 07:57:00 +00:00
|
|
|
|
2019-02-21 14:56:25 +00:00
|
|
|
namespace MpegDec
|
|
|
|
{
|
2024-08-09 07:57:00 +00:00
|
|
|
void LoadCustomTracks(const std::string &music_filepath, const Game &game);
|
|
|
|
void SetMemory(const uint8_t *data, int offset, int length, bool loop);
|
|
|
|
void UpdateMemory(const uint8_t *data, int offset, int length, bool loop);
|
2019-02-21 14:56:25 +00:00
|
|
|
int GetPosition();
|
|
|
|
void SetPosition(int pos);
|
|
|
|
void DecodeAudio(int16_t* left, int16_t* right, int numStereoSamples);
|
|
|
|
void Stop();
|
|
|
|
bool IsLoaded();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|