*samples = *samples <= 0 ? 1920 : *samples;
*channels = *channels <= 0 ? 2 : *channels;
*frequency = *frequency <= 0 ? 48000 : *frequency;
+ *format = mlt_audio_s16;
// Calculate the size of the buffer
size = *samples * *channels * sizeof( int16_t );
mlt_properties properties = MLT_FRAME_PROPERTIES( *frame );
// Aspect ratio is whatever it needs to be
- mlt_properties_set_double( properties, "aspect_ratio", mlt_properties_get_double( MLT_PRODUCER_PROPERTIES( this ), "aspect_ratio" ) );
+ mlt_profile profile = mlt_service_profile( MLT_PRODUCER_SERVICE( this ) );
+ mlt_properties_set_double( properties, "aspect_ratio", mlt_profile_sar( profile ) );
// Set producer-specific frame properties
mlt_properties_set_int( properties, "progressive", 1 );