Skip to content

Commit d7ffea3

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/audio_component.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class audio_xcoding : public threadloop
1616
public:
1717
audio_xcoding(phonebook *pb_, bool encoding)
1818
: threadloop{encoding ? "audio_encoding" : "audio_decoding", pb_}
19-
, _m_sb{pb->lookup_impl<switchboard>()}
20-
, _m_clock{pb->lookup_impl<RelativeClock>()}
19+
, _m_sb{pb_->lookup_impl<switchboard>()}
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)