diff options
author | Max Kellermann <max@duempel.org> | 2013-08-03 21:00:50 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-03 21:37:56 +0200 |
commit | d1e7b4e38136f9342aad76c685a13adf0e69f869 (patch) | |
tree | 49643b937ddfe735511b566a71398da5a945d7aa /src/Timer.cxx | |
parent | 67f591a9ce60651da41afc499bd9a22e25314e35 (diff) | |
download | mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.gz mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.tar.xz mpd-d1e7b4e38136f9342aad76c685a13adf0e69f869.zip |
audio_format: convert to C++
Diffstat (limited to 'src/Timer.cxx')
-rw-r--r-- | src/Timer.cxx | 6 |
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()) { } |