我有错误:
error: cannot convert 'AudioEngine::input' from type 'mad_flow (AudioEngine::)(void*, mad_stream*)' to type 'mad_flow (*)(void*, mad_stream*)'
我有枚举,
enum mad_flow AudioEngine::input(void *data, mad_stream *stream)
{
etc...
}
一个外部图书馆正在调用它,
mad_decoder_init(&decoder, &player,
input, decode_header, decode_filter, process_output,
decode_error, 0 /* message */);
外部类需要来自该输入的输入,但我想保持基于引擎类。我怎样才能做到这一点?
非常感谢。