Internet radio with Hollywood?

Discuss any general programming issues here
Post Reply
OlafSch
Posts: 6
Joined: Thu Jun 02, 2016 1:15 pm

Internet radio with Hollywood?

Post by OlafSch » Thu Jun 02, 2016 1:33 pm

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?

p-OS
Posts: 106
Joined: Mon Nov 01, 2010 11:56 pm

Re: Internet radio with Hollywood?

Post by p-OS » Thu Jun 02, 2016 3:03 pm

I tried that also some time ago, but also without success.

zylesea
Posts: 201
Joined: Tue Feb 16, 2010 12:50 am
Location: Westfalen/Germany
Contact:

Re: Internet radio with Hollywood?

Post by zylesea » Fri Jun 03, 2016 2:24 am

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.

User avatar
airsoftsoftwair
Posts: 3113
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Internet radio with Hollywood?

Post by airsoftsoftwair » Fri Jun 03, 2016 10:26 pm

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?

zylesea
Posts: 201
Joined: Tue Feb 16, 2010 12:50 am
Location: Westfalen/Germany
Contact:

Re: Internet radio with Hollywood?

Post by zylesea » Fri Jun 03, 2016 11:53 pm

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.

Post Reply