summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);