mirror of
https://github.com/haya3218/SDfmL.git
synced 2024-08-14 23:57:09 +00:00
stuff
This commit is contained in:
parent
06fcac4c34
commit
10bbca486d
3 changed files with 5 additions and 38 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "SoLoud/soloud.h"
|
||||
#include "SoLoud/soloud_wav.h"
|
||||
#include "SoLoud/soloud_wavstream.h"
|
||||
#include "SoLoud/soloud_modplug.h"
|
||||
#include "SoLoud/soloud_openmpt.h"
|
||||
#include "SoLoud/MIDI/soloud_midi.h"
|
||||
#include "SoLoud/soloud_speech.h"
|
||||
|
|
|
@ -187,9 +187,9 @@ namespace SoLoud
|
|||
time mLoopPoint;
|
||||
|
||||
// Get N samples from the stream to the buffer. Report samples written.
|
||||
virtual unsigned int getAudio(float *aBuffer, unsigned int aSamplesToRead, unsigned int aBufferSize) = 0;
|
||||
virtual unsigned int getAudio(float *aBuffer, unsigned int aSamplesToRead, unsigned int aBufferSize);
|
||||
// Has the stream ended?
|
||||
virtual bool hasEnded() = 0;
|
||||
virtual bool hasEnded();
|
||||
// Seek to certain place in the stream. Base implementation is generic "tape" seek (and slow).
|
||||
virtual result seek(time aSeconds, float *mScratch, unsigned int mScratchSize);
|
||||
// Rewind stream. Base implementation returns NOT_IMPLEMENTED, meaning it can't rewind.
|
||||
|
@ -306,7 +306,7 @@ namespace SoLoud
|
|||
// DTor
|
||||
virtual ~AudioSource();
|
||||
// Create instance from the audio source. Called from within Soloud class.
|
||||
virtual AudioSourceInstance *createInstance() = 0;
|
||||
virtual AudioSourceInstance *createInstance();
|
||||
// Stop all instances of this audio source
|
||||
void stop();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue