| 24 | } |
| 25 | |
| 26 | virtual bool encode(struct encoder_frame* frame, struct encoder_packet* packet, bool* received_packet) |
| 27 | { |
| 28 | auto type = obs_encoder_get_type(_self); |
| 29 | if (type == OBS_ENCODER_VIDEO) { |
| 30 | return encode_video(frame, packet, received_packet); |
| 31 | } else if (type == OBS_ENCODER_AUDIO) { |
| 32 | return encode_audio(frame, packet, received_packet); |
| 33 | } |
| 34 | return false; |
| 35 | } |
| 36 | |
| 37 | virtual bool encode_audio(struct encoder_frame* frame, struct encoder_packet* packet, bool* received_packet) |
| 38 | { |
nothing calls this directly
no outgoing calls
no test coverage detected