[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Vendoring code in a (Non?)GNU ELPA package
From: |
Daniel Semyonov |
Subject: |
Re: Vendoring code in a (Non?)GNU ELPA package |
Date: |
Wed, 03 Jan 2024 08:20:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>>>>> Richard Stallman writes:
>> My module only uses the audio playback API to play music through
>> Emacs. I don't currently have plans to make use of other parts
>> of the library.
> I see. It woild not be a pronlem to use a simple free linraru for
> that. But maybe it is not necessary. Will `play-sound' do the
> job?
Unfortunately no, for various reasons:
- 'play-sound' blocks Emacs while the sound is playing; the functions my
module implements play audio and manage playback asynchronously.
- 'play-sound' only supports playing WAV and AU files (though I see now
that sound data can also be passed as a string, so I could implement
decoding functions in C and use them together with 'play-sound' to play
any sound file IIUC).
- My module has been successfully tested on Android, and should also work
on Windows. 'play-sound' doesn't work at all on Android, and passing
sound data as a string isn't supported on Windows.
>> Assuming you mean the miniaudio library itself, it seems there is
>> an official "split" version of it which contains both
>> "miniaudio.c" and "miniaudio.h", where the actual implementation
>> lives inside "miniaudio.c".
> That makes sense to me -- it is common practice. How does the
> version you use differ from that?
The version I use (which is the "main" version) combines "miniaudio.c"
and "miniaudio.h" into a single file.
- Re: Vendoring code in a (Non?)GNU ELPA package, Daniel Semyonov, 2024/01/01
- Re: Vendoring code in a (Non?)GNU ELPA package, Richard Stallman, 2024/01/02
- Re: Vendoring code in a (Non?)GNU ELPA package,
Daniel Semyonov <=
- Re: Vendoring code in a (Non?)GNU ELPA package, Stefan Kangas, 2024/01/03
- Re: Vendoring code in a (Non?)GNU ELPA package, Daniel Semyonov, 2024/01/04
- Re: Vendoring code in a (Non?)GNU ELPA package, Stefan Kangas, 2024/01/05
- Re: Vendoring code in a (Non?)GNU ELPA package, Daniel Semyonov, 2024/01/06
- Re: Vendoring code in a (Non?)GNU ELPA package, Stefan Kangas, 2024/01/06
- Re: Vendoring code in a (Non?)GNU ELPA package, No Wayman, 2024/01/06
- Re: Vendoring code in a (Non?)GNU ELPA package, Richard Stallman, 2024/01/07
- Re: Vendoring code in a (Non?)GNU ELPA package, No Wayman, 2024/01/07
- Re: Vendoring code in a (Non?)GNU ELPA package, Stefan Kangas, 2024/01/10
- Re: Vendoring code in a (Non?)GNU ELPA package, Richard Stallman, 2024/01/05