Skip to content

Commit

Permalink
Actually use the callbacks I wrote
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspeloquin committed Oct 4, 2023
1 parent 59e926c commit 5eb9292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Flac_encoder :
#endif

FLAC__StreamEncoderWriteStatus write_callback(
const FLAC__byte *, size_t, unsigned, unsigned) override;
const FLAC__byte *, size_t, uint32_t, uint32_t) override;

FLAC__StreamEncoderSeekStatus seek_callback(FLAC__uint64) override;

Expand Down Expand Up @@ -133,7 +133,7 @@ Flac_encoder::add_frame(const struct flacsplit::Frame &frame) {

set_channels(frame.channels);
set_sample_rate(frame.rate);
status = init(_fp);
status = init();
if (status != FLAC__STREAM_ENCODER_INIT_STATUS_OK)
throw_traced(Flac_encode_error(
FLAC__StreamEncoderInitStatusString[status]
Expand Down

0 comments on commit 5eb9292

Please sign in to comment.