forked from teamnwah/openmw-tes3coop
fixed build error with Audiere coded enabled
This commit is contained in:
parent
e18cf452d4
commit
39d27b87c9
2 changed files with 4 additions and 2 deletions
|
@ -64,7 +64,8 @@ void Audiere_Decoder::open(const std::string &fname)
|
|||
close();
|
||||
|
||||
mSoundFile = audiere::FilePtr(new OgreFile(mResourceMgr.openResource(fname)));
|
||||
mSoundSource = audiere::OpenSampleSource(file);
|
||||
mSoundSource = audiere::OpenSampleSource(mSoundFile);
|
||||
mSoundFileName = fname;
|
||||
|
||||
int channels, srate;
|
||||
audiere::SampleFormat format;
|
||||
|
@ -95,7 +96,7 @@ void Audiere_Decoder::close()
|
|||
|
||||
std::string Audiere_Decoder::getName()
|
||||
{
|
||||
return mSoundFile->getName();
|
||||
return mSoundFileName;
|
||||
}
|
||||
|
||||
void Audiere_Decoder::getInfo(int *samplerate, ChannelConfig *chans, SampleType *type)
|
||||
|
|
|
@ -12,6 +12,7 @@ namespace MWSound
|
|||
{
|
||||
class Audiere_Decoder : public Sound_Decoder
|
||||
{
|
||||
std::string mSoundFileName;
|
||||
audiere::FilePtr mSoundFile;
|
||||
audiere::SampleSourcePtr mSoundSource;
|
||||
int mSampleRate;
|
||||
|
|
Loading…
Reference in a new issue