[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Summer of Code
- To: "Development Discussions" <developer at arabeyes dot org>
- Subject: Re: Summer of Code
- From: "Ahmed Ghoneim" <ahmed dot ghoneim at gmail dot com>
- Date: Mon, 12 Mar 2007 16:22:04 -0700
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fZnRMNSP3pqc3nuN1EftU5iWTseEIjObUmQS6wuhHbqEH1ICc0pveBXmEGJWTu75UfAA64x2LxGL35QXff24yKTr1crTRtvfLdCzX0fHvL7JdSnDaUropDf6RieO50Alg5G7Ph2+wIZgXiIUR+Y4hwUFXw63LUlzqsekbo+3Kjw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZV+NYT5LqXY1cpP0lfJ5VaLxdeUdb77liH7W/d9CklbCfW+g0UNteP7sqxF8J8+EldZHYVsvJkTy+z+FQMl7TexR3ZfV94N9nUcV2KB03IAPoeiFgaLasQw2Sdw3fM5rndnGSO6L+PEJbS0B5/wBj5xw3zZi1hKA2te2u31k4eE=
S3,
> >> We could do in more lower level than the current libquran. Let it just
> >> return the audio data along with it's mime type (it could be mp3,
> >> speex, or anything). The playing of the audio is the responsibility of
> >> the frontend, not libquran's.
IMHO the current approach is better, playing/rendering the audio is of
course the responsibility of the frontend , but the library should
provide a standard interface and be consistent with regards to the
type of data it returns. right now the PCM buffer is excellent, any
kind of frontend should be able to hanlde it, plus it lowers the
barrier to entry for new frontends (read easier to develop). And most
importantly, we could always change the encoding/format of data
without requiring *huge* changes to the clients, merely a recompile
against the new lib.
This is an area that i think don't any fragmentation. One Text, One
Audio format.
> >> In this way, people could use libquran also when they don't need the
> >> audio data. Today they should have libspeex in order to compile.
> >>
> >
> >Nice idea, so that we needn't force an install of the audio data.
Right now the *don't* need the audio data to run, you could run it
just fine without it. You do need the libspeex plus libogg though, but
thats a no biggie, it's almost standard on *nix and it's only a couple
of dll on win32
> Last time, i suggested something like this to M Yousif. It would be
> better to be more flexible. I suggested to use something like
> gstreamer or karts for audio handling, so that we don't have to worry
> about supporting every audio type exist. That would be gstreamer's
> job. Another thing that is not flexible in current audio handling is
> the requirement of 1 file per ayah. the approach that I took for my
> web application was we only store certain information about the audio.
> Info that we need (in the library) are for every ayah, where is the
> audio file, it's start time and it's end time. Then it is up to the
> application to play it. I've uploaded the application, but I need to
> fixe a few things before announcing it.
I don't know why M Yousif didn't like the idea bit IMHO, gstreamer will increase the dependencies
of libquran which something I personally don't like.
I concur, gstreamer would me make life very difficult for people
porting libquran to win32 i.e. me. please give some thought to the
cross-platform-ness of this. while gstreamer is almost native to *nix
and gnome, it's a pain in the neck to run under win32, and no cygwin
is out of the question, when i say win32 i mean *native* win32, that
is Mingw, right now the current scheme speex/ogg works perfect under
win32 with Mingw
I guess your approach in handling the audio files seems better.
again, if the current scheme stays, the libquran passes PCM buffer, so
the frontend does not know/care if it's from a single file or from a
position within a larger one.
but i would guess it would make creating audio sets harder for
volunteers, but then again i don't have much experience creating them.
could you please provide more info on your solution?
Thanks to all,
Ahmed Ghoneim