enum plugin_status plugin_start(const void *parameter) { if (!parameter) return PLUGIN_ERROR; audiobuf = rb->plugin_get_audio_buffer(&audiobuflen); #ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost(true); #endif vbr_fix(parameter); #ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost(false); #endif return PLUGIN_OK; }
enum plugin_status plugin_start(struct plugin_api* api, void *parameter) { TEST_PLUGIN_API(api); rb = api; if (!parameter) return PLUGIN_ERROR; audiobuf = rb->plugin_get_audio_buffer(&audiobuflen); #ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost(true); #endif vbr_fix(parameter); #ifdef HAVE_ADJUSTABLE_CPU_FREQ rb->cpu_boost(false); #endif return PLUGIN_OK; }