github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

eklitzke / radio-player

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A Haskell program to play Internet radio using the new GStreamer bindings — Read more

  cancel

http://eklitzke.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

comments 
eklitzke (author)
Sat Oct 18 00:21:42 -0700 2008
commit  45883714691267ac8bb6f6b6a62161d7d8a62501
tree    9d391b49abd96e60ee16dff8084f78eef41b2947
parent  40eafa26a95f75c2aa38f2a53ed4aa9116688eb5
radio-player /
name age
history
message
file .gitignore Loading commit data...
file LICENSE
file Makefile
file README
file radio.hs
README
This is a small program that lets you listen to Internet radio using the GHC
GStreamer bindings.

This is just for fun/learning.

Current Status
==============
The GStreamer bindings are almost totally undocumented, but there was a demo
program in the Gtk2Hs darcs tree, and with that I've gotten a really crude
player up and running (yes, it plays audio!). Currently the radio program will
write to a named pipe "/tmp/radio.fifo" in a forkIO, and the GStreamer code
will read from this pipe.

This is kind of ugly. Try as I might, I wasn't able to figure out how to get
the radio player to work without a temporary file. GStreamer has a mode where
it can read from a file descriptor, but what would always happen is it would
play for a few seconds and then stop. My suspicion is that these first few
seconds were the buffered content, and GStreamer didn't know how to make the
socket fetch more data.

I hope to get something working without temporary files...
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server