aboutsummaryrefslogtreecommitdiffstats
path: root/src/Timer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Timer.cxx')
-rw-r--r--src/Timer.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Timer.cxx b/src/Timer.cxx
index 7ddbda3da..18ccffbcb 100644
--- a/src/Timer.cxx
+++ b/src/Timer.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "Timer.hxx"
-#include "audio_format.h"
+#include "AudioFormat.hxx"
#include "clock.h"
#include <glib.h>
@@ -28,10 +28,10 @@
#include <limits.h>
#include <stddef.h>
-Timer::Timer(const struct audio_format &af)
+Timer::Timer(const AudioFormat af)
: time(0),
started(false),
- rate(af.sample_rate * audio_format_frame_size(&af))
+ rate(af.sample_rate * af.GetFrameSize())
{
}