Plug-ins for different encodings?

View: New views
4 Messages — Rating Filter:   Alert me  

Plug-ins for different encodings?

by Philippe Chaintreuil-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

        Is there anyway for a plug-in to add a new encoding?

                                                -- Philippe Chaintreuil

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Plug-ins for different encodings?

by Chris Bagwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/05/2009 10:44 AM, Philippe Chaintreuil wrote:
> Is there anyway for a plug-in to add a new encoding?
>
>    

For most intents, the answer is no... Especially for pre-existing
formats like .wav.

If your a software developer, there is a plugin architecture that could
plug in totally new format handlers.

Chris


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Plug-ins for different encodings?

by Philippe Chaintreuil-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chris Bagwell wrote:
>> Is there anyway for a plug-in to add a new encoding?
>
> For most intents, the answer is no... Especially for pre-existing
> formats like .wav.
>
> If your a software developer, there is a plugin architecture that could
> plug in totally new format handlers.


        Yeah, that's what I meant: as a software developer is there a way to
add a new encoding via a plug-in?

        Hopefully I won't muddle Sanjeev Sharma's Speex question, but I'm going
to steal it as an example.
        Would it be possible to add Speex support, independently from the SoX
CVS development branch, using only libsox and it's installed headers to
add a new "SOX_ENCODING_SPEEX"?  Or does the fact that sox_encoding_t
exists ("staticly", as an enum in a header file at compile time) mean
that it wouldn't be possible?


P.S.  The questions I'm asking are libsox/software developer questions,
not sox-as-an-application questions.  Am I asking them in the correct
mailing list, or should I be asking them in the -devel mailing list?


                                -- Philippe Chaintreuil

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users

Re: Plug-ins for different encodings?

by Chris Bagwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 6, 2009 at 10:20 AM, Philippe Chaintreuil <sox-users_sourceforge-list_peep@...> wrote:
Chris Bagwell wrote:
>>      Is there anyway for a plug-in to add a new encoding?
>
> For most intents, the answer is no... Especially for pre-existing
> formats like .wav.
>
> If your a software developer, there is a plugin architecture that could
> plug in totally new format handlers.


       Yeah, that's what I meant: as a software developer is there a way to
add a new encoding via a plug-in?

       Hopefully I won't muddle Sanjeev Sharma's Speex question, but I'm going
to steal it as an example.
       Would it be possible to add Speex support, independently from the SoX
CVS development branch, using only libsox and it's installed headers to
add a new "SOX_ENCODING_SPEEX"?  Or does the fact that sox_encoding_t
exists ("staticly", as an enum in a header file at compile time) mean
that it wouldn't be possible?

Most versions of SoX are distributed with plugin support compiled in.  In those cases, someone could develop a format plugin by referencing only sox.h and libsox.so and place the resulting plugin at location similar to /usr/lib/sox/.

Now some definitions.  SoX distingishes between file formats and audio sample encodings.  A file format is something like the WAV format and quite often it can handle multilple encoding types.  In WAV case, the audio encoding could be PCM, MP3, ADPCM, etc.

Since SoX doesn't currently support a Speex format, you could write a format plugin to understands both the file format as well as audio sample encoding.  So this example is possible.

Currently, you can not extend an existing format plugin to support new encoding types; such as letting WAV format containing Speex encoding (if that is possible.  I do not know).



P.S.  The questions I'm asking are libsox/software developer questions,
not sox-as-an-application questions.  Am I asking them in the correct
mailing list, or should I be asking them in the -devel mailing list?


Yes, I think the -devel list would be better to discuss this topic.  I have some sample code for referencing sox.h and creating a sox.exe replacement... but no sample code to create a plugin.  We can talk about how to do that more on -devel if you like.

Chris
 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users