diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2011-12-07 10:36:53 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2011-12-07 10:36:53 +0800 |
commit | 621d7ee3aa3e57c0d61afe34deea08479089d850 (patch) | |
tree | 6fceba16ed295a64ab1ca1c3324b9ef6b1346793 | |
parent | 828d7af8e5f065a35d740ffe301dbe017fcbac90 (diff) |
Extend the sample source to support playing at specified order
-rw-r--r-- | src/audiere.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/audiere.h b/src/audiere.h index bbeee49..e947501 100644 --- a/src/audiere.h +++ b/src/audiere.h @@ -363,6 +363,30 @@ namespace audiere { * the tag comes from, i.e. "ID3v1", "ID3v2", or "vorbis". */ virtual const char* ADR_CALL getTagType(int i) = 0; + + /** + * Returns the order of the source. This is only for formats + * supported by dumb. + */ + ADR_METHOD(int) getOrder() { return 0; } + + /** + * Sets the order of the source. This is only for formats + * supported by dumb. + */ + ADR_METHOD(bool) setOrder(int order) { return false; } + + /** + * Returns the volume of specified channel of the source. This is + * only for formats supported by dumb. + */ + ADR_METHOD(float) getChannelVolume(int channel = 0) { return 1.0f; } + + /** + * Sets the volume of specified of the source. This is only for + * formats supported by dumb. + */ + ADR_METHOD(bool) setChannelVolume(int channel, float volume) { return false; } }; typedef RefPtr<SampleSource> SampleSourcePtr; |