Skip to content

Commit 660103c

Browse files
committed
fix for updates from ILLIXR
1 parent e83f242 commit 660103c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/audio_component.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class audio_xcoding : public threadloop
1717
audio_xcoding(phonebook *pb_, bool encoding)
1818
: threadloop{encoding ? "audio_encoding" : "audio_decoding", pb_}
1919
, _m_sb{pb->lookup_impl<switchboard>()}
20-
, _m_clock{pb->lookup_impl<RelativeClock>()}
20+
, _m_clock{pb->lookup_impl<relative_clock>()}
2121
, _m_pose{_m_sb->get_reader<pose_type>("slow_pose")}
2222
, xcoder{"", encoding ? ILLIXR_AUDIO::ABAudio::ProcessType::ENCODE : ILLIXR_AUDIO::ABAudio::ProcessType::DECODE}
2323
, encoding_{encoding}
@@ -44,11 +44,11 @@ class audio_xcoding : public threadloop
4444

4545
private:
4646
const std::shared_ptr<switchboard> _m_sb;
47-
const std::shared_ptr<RelativeClock> _m_clock;
47+
const std::shared_ptr<relative_clock> _m_clock;
4848
switchboard::reader<pose_type> _m_pose;
4949
ILLIXR_AUDIO::ABAudio xcoder;
5050
time_point last_time;
51-
static constexpr duration audio_period{freq2period(static_cast<double>(SAMPLERATE) / static_cast<double>(BLOCK_SIZE))};
51+
static constexpr duration audio_period{freq_to_period(static_cast<double>(SAMPLERATE) / static_cast<double>(BLOCK_SIZE))};
5252
bool encoding_;
5353
};
5454

0 commit comments

Comments
 (0)