X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_frame.c;h=7674633f725d5c030497b55c51af57c65fcc577c;hb=4dbf3ebb9b3642a02300bd2388c6b2211160cb5a;hp=5593c6b93996a4390765e8344b3cc94bc7788319;hpb=6fd39f9d2c31ef1cb5672caf0f69a519708793a4;p=melted diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index 5593c6b..7674633 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -339,13 +339,14 @@ int mlt_frame_get_audio( mlt_frame this, int16_t **buffer, mlt_audio_format *for return 0; } -unsigned char *mlt_frame_get_waveform( mlt_frame this, double fps, int w, int h ) +unsigned char *mlt_frame_get_waveform( mlt_frame this, int w, int h ) { int16_t *pcm = NULL; mlt_properties properties = mlt_frame_properties( this ); mlt_audio_format format = mlt_audio_pcm; int frequency = 32000; // lower frequency available? int channels = 2; + double fps = mlt_properties_get_double( properties, "fps" ); int samples = mlt_sample_calculator( fps, frequency, mlt_frame_get_position( this ) ); // Get the pcm data