search for: shout_t

Displaying 19 results from an estimated 19 matches for "shout_t".

2013 Jun 24
3
Streaming AAC with libshout?
The open source fdk-aac encoder, available there: https://github.com/mstorsjo/fdk-aac offers pretty good quality. As for libshout, I do not think that it is currently posible to send AAC data using it. First, libshout doesn't have support to buffer and control timing of data sent. And even is you use the un-timed API (shout_send_raw), the library cannot set the proper mime type, due to a
2008 Sep 10
2
Updated version of patch
...should contain a mutex and there should be appropriate locking around accesses to s->conn. It is a little hard to figure out precisely at what places locking would be needed. The safest method I could think off is simply to include thread safe versions of the shout api functions which have a shout_t as its first argument. For example int shout_set_host_safe_ts(shout_t *self, char* host, pthread_mutex_t *mutex){ int ret; pthread_mutex_lock (mutex)); ret=shout_set_host(s->conn,host); pthread_mutex_unlock (mutex)); return ret; } One should then use the thread safe version instead...
2004 Aug 06
1
libshout compile errors (os.h)
...TDINT_H=1 -I. -I. -Inet -Ithread -Iavl -Ilog -Itiming -DHAVE_OSS -O20 -ffast-math -fsigned-char -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2/libxml -I/usr/include/libxml2 -I/include -I/include -I/include -c input.c In file included from input.c:29: input.h:34: parse error before "shout_t" input.h:34: warning: no semicolon at end of struct or union input.h:36: parse error before '}' token input.h:36: warning: data definition has no type or storage class input.c: In function `input_loop': input.c:269: `arg' undeclared (first use in this function) input.c:269: (Ea...
2004 Aug 06
1
libshout nonblocking API
I propose the following changes to the libshout API to support nonblocking I/O: New functions: int shout_set_nonblocking(shout_t *self, unsigned int nonblocking): Instructs libshout to use nonblocking I/O. Must be called before shout_open (no switching back and forth midstream at the moment). unsigned int shout_get_nonblocking(shout_t *self): self-explanatory. Changed functions: shout_get_connected: Will now attempt to com...
2008 Sep 10
1
Updated version of patch
>Why would you keep a non-thread safe API ? I do not want to touch libshout. I am only concerned with the python bindings. Probably Brendan can answer this better but I think libshout is not thread safe for simultaneous accesses to a shout_t object. This is not a problem as the posix locking primitives are trivial to use. For python apis should in principle be absolutely thread safe. This is mostly achieved through the GIL but in blocking functions it is necessary to release the GIL. Regards, Michel Romain Beauxis wrote: > Le W...
2004 Aug 06
1
ices2 compilation problem
...-I. -I. -Inet -Ithread -Iavl -Ilog -Itiming -DHAVE_OSS -O20 -ffast-math - -fsigned-char -D_REENTRANT -D_GNU_SOURCE -I/usr/local/include/libxml2/libxml - -I/usr/local/include/libxml2 -I/include -I/include -I/include -c input.c In file included from input.c:29: input.h:33: parse error before `shout_t' input.h:33: warning: no semicolon at end of struct or union input.h:35: parse error before `}' input.h:35: warning: data definition has no type or storage class input.c: In function `input_loop': input.c:262: `arg' undeclared (first use in this function) input.c:262: (Each undeclar...
2004 Aug 06
1
ices doesn't compile for me
...=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -I. -I. -Inet -Ithread -Iavl -Ilog -Itiming -DHAVE_OSS -O20 -ffast-math -fsigned-char -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxml2 -I/include -I/include -I/include -c input.c In file included from input.c:29: input.h:34: parse error before "shout_t" input.h:34: warning: no semicolon at end of struct or union input.h:36: parse error before '}' token input.h:36: warning: data definition has no type or storage class input.c: In function `input_loop': input.c:276: `arg' undeclared (first use in this function) input.c:276: (Ea...
2008 Aug 30
3
Updated version of patch
Attached is a patch against shout-python-0.2 which does two trivial but very useful things (1) The function "get_connected" is exported so that shout-python becomes usable in nonblocking mode. In the current version of shout-python "open" raises an exception in nonblocking mode. (2) The global interpreter lock is released in the potentially blocking functions
2008 Sep 20
2
[libshout] Add mime/content-type parameter
...lication/ogg". For instance, I already saw: "application/x-ogg";"audio/x-ogg" Currently, libshout has a built-in Content-Type parameter, that is set according to the given format integer. I would like to propose a backward compatible patch that adds a mime parameter to shout_t and the corresponding set/get functions. This parameter is set to default values when calling set_format, so the behaviour is 100% backward compatible, only it adds more flexibility to libshout. What do you think ? Romain -------------- next part -------------- A non-text attachment was scrub...
2017 Nov 16
0
[PATCH] [libshout] tls: compile with OpenSSL 1.1.0
...letions(-) diff --git a/src/tls.c b/src/tls.c index d1af607c0014..fc8a748f3ecf 100644 --- a/src/tls.c +++ b/src/tls.c @@ -24,6 +24,7 @@ #endif #include <shout/shout.h> +#include <string.h> #include "shout_private.h" #ifndef XXX_HAVE_X509_check_host @@ -61,16 +62,20 @@ shout_tls_t *shout_tls_new(shout_t *self, sock_t socket) static inline int tls_setup(shout_tls_t *tls) { - SSL_METHOD *meth; + const SSL_METHOD *meth; +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) SSL_library_init(); SSL_load_error_strings();...
2004 Dec 31
3
Live streaming from Mac OS X
I am trying to stream live audio from a Mac OS X ibook to a linux machine running mplayer2 using instructions http://www.macosxhints.com/article.php? story=20020704134818926&query=live+itunes+streaming I managed to compile everything (Icecast 2.2.0, libshout2, etc). To compile icecast, i had to use "fakepoll.h" header file from sealiesoftware.com/fakepoll.h to get around with
2004 Aug 06
2
linux,ices2, make errors
Hi, i'm trying to complîle and install ices2 on my linux slackawre box : After leting make runnins a while , i got these errors ... Would tou help me to solve please ? I have just grabbed ices from cvs. In file included from input.c:29: input.h:34: parse error before "shout_t" input.h:34: warning: no semicolon at end of struct or union input.h:36: parse error before '}' token input.h:36: warning: data definition has no type or storage class input.c: In function `input_loop': input.c:276: `arg' undeclared (first use in this function) input.c:276: (Ea...
2004 Aug 06
3
Ices 3.0 compile issues
...hout2 (.so.3) and ices 0.2.3, all compiled on the same machine and it's working well. But I can't compile ices 3.0. It's telling various errors like In file included from ../../src/definitions.h:99, from playlist.c:22: ../../src/icestypes.h:38: parse error before "shout_t" Or ../../src/ices_config.h:22: parse error before '*' token playlist.c:25: parse error before "ices_config" Etc.. I've tried various things like getting the latest nightly snapshot for ices. Any idea ? IS this because icecast2 should be in the path ? If yes, do someb...
2004 Aug 06
4
ices2 compile error, ignore previous msg
...ut-2.0 4) Got ices2 from xiph CVS (cvs -d :pserver:anoncvs@xiph.org:/usr/local/cvsroot -z3 co ices) 5) ./autogen (which runs successfully -- finds vorbis, shout, libxml...) 6) ...and the make process ends with the following errors: In file included from input.c:29: input.h:34: parse error before `shout_t' input.h:34: warning: no semicolon at end of struct or union input.h:36: parse error before `}' input.h:36: warning: data definition has no type or storage class input.c: In function `input_loop': input.c:263: `arg' undeclared (first use in this function) input.c:263: (Each undeclar...
2004 Dec 31
2
Live streaming from Mac OS X
...playlist.o playlist.c; \ then mv -f ".deps/playlist.Tpo" ".deps/playlist.Po"; else rm -f ".deps/playlist.Tpo"; exit 1; fi In file included from ../../src/definitions.h:88, from playlist.c:22: ../../src/icestypes.h:38: error: parse error before "shout_t" ../../src/icestypes.h:38: warning: no semicolon at end of struct or union ../../src/icestypes.h:63: error: parse error before '}' token ../../src/icestypes.h:63: warning: type defaults to `int' in declaration of `ices_stream_t' ../../src/icestypes.h:63: warning: data definit...
2004 Aug 06
3
libshout1-based mp3 streaming to icecast2
...altogether on the server I help administer. My results were not promising, to say the least. I wiped out libshout2 and installed libshout 1.0.9 from cvs.icecast.org, which seems to be necessary to compile ices-0.2.3 (it would not compile with libshout2, I assume due to the different structure of shout_t). After compiling and installing ices0, I tried the following command line: ices0 -b 24 -h freeteam.nl -p 9000 -P ****** -m testxyz -F ./playlist >From the streaming end, I got the error: Error during send: Mount failed on http://194.109.209.34:9000/testxyz, error: Could not login on server. S...
2004 Aug 06
2
More libshout questions
Okay, I am using libshout to stream to a NullSoft Shoutcast server. I am using libmad and libmp3lame to do re-encoding on the fly. I am streaming to the server (currently) with shout_send_raw(). When I try to use shout_metadata_add(), I get a segfault in strdup(). Anyone have any ideas as to why? Everything else works fine, just not the metadata. Thanks In Advance, Deven --- >8 ----
2004 Aug 06
2
More libshout questions
...= 0 filePtr = (FILE *) 0x805c798 #5 0x0804b4d1 in main (argc=1, argv=0x804d8f8) at main.c:397 nukedb = (MYSQL *) 0x804d948 conffile = 0x8051220 "\210\022\005\bT\037" holder = 0x8052d10 "1" current = (song *) 0x804d8a8 shoutconn = (shout_t *) 0x8051220 errcount = -1073744540 retval = 2 config = (param *) 0x804d8f8 #6 0x4022d7f7 in __libc_start_main () from /lib/i686/libc.so.6 No symbol table info available. <p>Thanks!!! Deven <p>Mihai RUSU wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash...
2004 Aug 06
4
libshout compile errors (os.h)
I get an error when compiling libshout. it's the version from cvs, i checked it out a few minutes ago... make[2]: Entering directory `/opt/ices2/libshout/src/net' /bin/sh ../../libtool --mode=compile gcc -DPACKAGE=\"libshout\" -DVERSION=\"2.0\" -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_C99_INTTYPES=1 -DHAVE_NANOSLEEP=1