solved Audio conversion

alt=
DannyA
@dannya
10 years ago
584 posts
I am not using the foxycart module. We have developed a different module to handle transactions and pricing.

We also have our own custom audio modules based off jr audio.

I want to be able to create a preview clip of a song when someone sets the price in my commerce module. Is there a function that we can call to generate the clip?

Is there a way to customize that function so that the user can specify the start and end time of the clip?
updated by @dannya: 09/01/14 09:21:40AM
michael
@michael
10 years ago
7,718 posts
check out the functions in the jrAudio module.

jrAudio_convert_file()

is the one that handles the file conversion. The format it has are each separate in the /plugins folder of the module.
/modules/jrAudio/plugins/mp3.php
/modules/jrAudio/plugins/ ....

They use ffmpeg to create the file.

The function jrAudio_create_audio_sample() is the one that makes the previews.
alt=
DannyA
@dannya
10 years ago
584 posts
Thanks!

Tags