Sounds for XMPP and IRC
Luke Schierer
lschiere at pidgin.im
Wed Feb 13 12:37:53 EST 2008
If you use libpurple calls to play the sound, and to deal with any
preferences, the resulting plugin will work in windows and unix.
luke
On Feb 13, 2008, at 11:16 EST, Matt Heidsick wrote:
> Are these suggestions for Linux only? How easy is it to make a
> plugin for Windows ?
>
> Luke Schierer wrote:
>> no, just that you could use the functions it provides in your
>> plugin to play the sounds. That'd make your plugin do the right
>> thing on any given platform, without having to learn gstreamer and
>> without using system() calls.
>>
>> luke
>>
>> On Feb 12, 2008, at 15:51 EST, Matt Heidsick wrote:
>>
>>> So would it be easier to modify the sound.h file to include the
>>> sounds and triggers I need ? As you can tell I am pretty new with
>>> this, though i have been using Pidgin ever since it was GAIM
>>> several years back.
>>>
>>> Matt
>>>
>>> Casey Harkins wrote:
>>>>
>>>> On Tue, 2008-02-12 at 14:42 -0500, Luke Schierer wrote:
>>>>
>>>>> I do not know of one, but it really ought not to be hard. You
>>>>> could
>>>>> hackishly do it in either C or perl with system() calls to play
>>>>> your
>>>>> sounds, or you could do it more correctly by linking against
>>>>> gstreamer
>>>>> and using it to play the sounds.
>>>>>
>>>> Actually, libpurple provides API for playing sounds which would
>>>> use the
>>>> appropriate mechanism for the platform. (see libpurple/sound.h)
>>>>
>>>> -casey
>>>>
>>>>
>>>>
>>
>
More information about the Devel
mailing list