| 59 | extern long ov_tell_func(void* datasource); |
| 60 | |
| 61 | void CSoundRender_Target::attach() |
| 62 | { |
| 63 | VERIFY(0 == wave); |
| 64 | VERIFY(m_pEmitter); |
| 65 | constexpr ov_callbacks ovc = {ov_read_func, ov_seek_func, ov_close_func, ov_tell_func}; |
| 66 | wave = FS.r_open(m_pEmitter->source()->pname.c_str()); |
| 67 | R_ASSERT3(wave && wave->length(), "Can't open wave file:", m_pEmitter->source()->pname.c_str()); |
| 68 | ov_open_callbacks(wave, &ovf, NULL, 0, ovc); |
| 69 | VERIFY(0 != wave); |
| 70 | } |
| 71 | |
| 72 | void CSoundRender_Target::dettach() |
| 73 | { |
nothing calls this directly
no test coverage detected