Page 1 of 1

Internet radio with Hollywood?

Posted: Thu Jun 02, 2016 1:33 pm
by OlafSch
Welcome everybody... my first post ;)

I did not find the informations here so I wanted to ask

I would like to write a internet radio player with playlist (GUI). You can access the streams with http so I thought it might be able to do that. I tested it with playmusic and http plugin but it seemed not to work. Any hints? Is it possible at all?

Re: Internet radio with Hollywood?

Posted: Thu Jun 02, 2016 3:03 pm
by p-OS
I tried that also some time ago, but also without success.

Re: Internet radio with Hollywood?

Posted: Fri Jun 03, 2016 2:24 am
by zylesea
OlafSch wrote:Welcome everybody... my first post ;)

I did not find the informations here so I wanted to ask

I would like to write a internet radio player with playlist (GUI). You can access the streams with http so I thought it might be able to do that. I tested it with playmusic and http plugin but it seemed not to work. Any hints? Is it possible at all?
As far as I understood the http streamer plugin enables remote files to be handeled as if they were local files. Don't know much about streamy but I see a problem with streams: They do not have a fixed size. You need to define/access a continuous buffer. Dunno how to implement that but I guess http streamer is not the way to go for that goal. Probably you need to do it "by feet".
My aproach would be to use two buffers. Fill the first with data and then replay it. While replaying the first buffer fill the 2nd buffer. At the end of buffer 1 use FlushMusicBuffer() to continue from the next buffer frame and fill buffer #1 again to continue. A problem with FlushMusicBuffer is that when I was experimentig with it it was not 100% gapless.

btw. Andreas: I would still like a real circular buffer: one mem block where you can overwrite parts of the buffer and playmusic just continuously replays that memory block. A poke function for audio buffers.

Re: Internet radio with Hollywood?

Posted: Fri Jun 03, 2016 10:26 pm
by airsoftsoftwair
Internet radio probably uses some extensions which HTTP Streamer currently doesn't support. I need to examine how this works exactly and see if it can be supported. As zylesea pointed out, HTTP Streamer currently needs a fixed file size to work.
I would still like a real circular buffer: one mem block where you can overwrite parts of the buffer and playmusic just continuously replays that memory block. A poke function for audio buffers.
What would be the advantage of that? Is there anything you can't do with the current functions?

Re: Internet radio with Hollywood?

Posted: Fri Jun 03, 2016 11:53 pm
by zylesea
airsoftsoftwair wrote:Internet radio probably uses some extensions which HTTP Streamer currently doesn't support. I need to examine how this works exactly and see if it can be supported. As zylesea pointed out, HTTP Streamer currently needs a fixed file size to work.
I would still like a real circular buffer: one mem block where you can overwrite parts of the buffer and playmusic just continuously replays that memory block. A poke function for audio buffers.
What would be the advantage of that? Is there anything you can't do with the current functions?
I thought a bit again of my problems to achieve gapless replay of dynamically generated sound and got a new idea of the origin of my issues. Will test that out next days and report then.