summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2012-02-25 09:52:07 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2012-02-25 09:52:07 +0800
commitca221fffc33e00bdc22d6909cfd4d1d67ad3c1b5 (patch)
tree5175750c955b0eb93632d9e08b029a357638d51b /src
parentbc69c7b110033ff551bc0d48a9a2cc074a86de7e (diff)
Implemented getRow for input_mod
Diffstat (limited to 'src')
-rw-r--r--src/input_mod.cpp12
-rw-r--r--src/input_mod.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/src/input_mod.cpp b/src/input_mod.cpp
index 8ca32c1..4af33de 100644
--- a/src/input_mod.cpp
+++ b/src/input_mod.cpp
@@ -127,6 +127,18 @@ namespace audiere {
}
+ int
+ MODInputStream::getRow()
+ {
+ ADR_GUARD("MOD_getRow");
+ if (m_renderer) {
+ DUMB_IT_SIGRENDERER* itrenderer = duh_get_it_sigrenderer(m_renderer);
+ return dumb_it_sr_get_current_row(itrenderer);
+ }
+ return 0;
+ }
+
+
float
MODInputStream::getChannelVolume(int channel)
{
diff --git a/src/input_mod.h b/src/input_mod.h
index a1ba5ed..183a5e5 100644
--- a/src/input_mod.h
+++ b/src/input_mod.h
@@ -25,6 +25,7 @@ namespace audiere {
int ADR_CALL getOrder();
bool ADR_CALL setOrder(int order);
+ int ADR_CALL getRow();
float ADR_CALL getChannelVolume(int channel = 0);
bool ADR_CALL setChannelVolume(int channel, float volume);