Hi, there!
Being a newbie to both FreeBSD and programming (I have learnt C though), I am planning to write a programme that can play audio CD. My story is the following:
I have FreeBSD-release 8.0 installed on my HP compaq laptop. And I found that most of the CD players in the ports would not be able to play audio CDs on my machine. For example, cdcontrol is able to get the CD running, but without any sound; workman, cdplay, gnustep-cdplayer, xmcd, etc, would not work at all; xmms can work, but the sound is not good, plus, it doesn't display the title of the tracks; mplayer can play, but with very loud noise of the CD spinning; loud noise comes with anything using cdparanoia;
Some of the experts here in the forum said that it's because my CD drive does not have cable connecting directly to the sound-card, or something like that; so I have to use digital extraction. And I am guessing that is called CDDA extraction.
Actually, I have found out the cdda2wav is able to extract the data and "echo" the sound to sound-card. So I used shell script, with cdcontrol and cdda2wav, to write a simple audio cd player. But it's not a very satisfactory one.
So I am wondering if there is any language that is suitable enough for me to write a audio-cd player; and of course, things like "standard library" could be used as well. I tried python with pygame, only to find that pygame.cdrom.get_count() could not even recognize my CD drive. I tried to install pymedia, but somehow it could not be successfully installed. If any of you know how to install pymedia on FreeBSD-release 8.0, please let me know.
And here I am, eagerly asking for your help and suggestion. I can go to read cdda2wav's source code of course, but I'd rather not do that, since that would require a lot of effort. Is there any programming language, library, tools I can use?
Thanks for your attention and your help in advance!
Being a newbie to both FreeBSD and programming (I have learnt C though), I am planning to write a programme that can play audio CD. My story is the following:
I have FreeBSD-release 8.0 installed on my HP compaq laptop. And I found that most of the CD players in the ports would not be able to play audio CDs on my machine. For example, cdcontrol is able to get the CD running, but without any sound; workman, cdplay, gnustep-cdplayer, xmcd, etc, would not work at all; xmms can work, but the sound is not good, plus, it doesn't display the title of the tracks; mplayer can play, but with very loud noise of the CD spinning; loud noise comes with anything using cdparanoia;
Some of the experts here in the forum said that it's because my CD drive does not have cable connecting directly to the sound-card, or something like that; so I have to use digital extraction. And I am guessing that is called CDDA extraction.
Actually, I have found out the cdda2wav is able to extract the data and "echo" the sound to sound-card. So I used shell script, with cdcontrol and cdda2wav, to write a simple audio cd player. But it's not a very satisfactory one.
So I am wondering if there is any language that is suitable enough for me to write a audio-cd player; and of course, things like "standard library" could be used as well. I tried python with pygame, only to find that pygame.cdrom.get_count() could not even recognize my CD drive. I tried to install pymedia, but somehow it could not be successfully installed. If any of you know how to install pymedia on FreeBSD-release 8.0, please let me know.
And here I am, eagerly asking for your help and suggestion. I can go to read cdda2wav's source code of course, but I'd rather not do that, since that would require a lot of effort. Is there any programming language, library, tools I can use?
Thanks for your attention and your help in advance!
