473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CD insert/eject detection

Hi,

I'm trying to make a Audio CD ripper using python.

is there a way (library, module, etc) to detect when a CD was inserted
or ejected?

Mar 13 '07 #1
4 4133
Mark Bryan Yu wrote:
Hi,

I'm trying to make a Audio CD ripper using python.

is there a way (library, module, etc) to detect when a CD was inserted
or ejected?
That is going to be OS dependent, so please share with us
what OS you are on?

-Larry
Mar 13 '07 #2
On Mar 13, 11:07 am, Larry Bates <lba...@websafe.comwrote:
Mark Bryan Yu wrote:
Hi,
I'm trying to make a Audio CD ripper using python.
is there a way (library, module, etc) to detect when a CD was inserted
or ejected?

That is going to be OS dependent, so please share with us
what OS you are on?

-Larry
Linux. I guess that means i need to make a C/C++ module extension to
do such task.

Mar 13 '07 #3
Mark Bryan Yu wrote:
On Mar 13, 11:07 am, Larry Bates <lba...@websafe.comwrote:
>Mark Bryan Yu wrote:
Hi,
I'm trying to make a Audio CD ripper using python.
is there a way (library, module, etc) to detect when a CD was inserted
or ejected?

That is going to be OS dependent, so please share with us
what OS you are on?

-Larry

Linux. I guess that means i need to make a C/C++ module extension to
do such task.
http://www-128.ibm.com/developerwork...ry/l-dbus.html

might be a start.

Diez
Mar 13 '07 #4
I've never used it myself, but pygame (based on SDL - so it should
work for MS Windows, Linux, and Apple OSX) has a CD module with some
potentially useful functions, CD.eject() and CD.get_empty().

http://www.pygame.org/docs/ref/cdrom...ygame.cdrom.CD

-sjbrown

On Mar 13, 7:54 am, "Mark Bryan Yu" <vaf...@gmail.comwrote:
Hi,

I'm trying to make a Audio CD ripper using python.

is there a way (library, module, etc) to detect when a CD was inserted
or ejected?

Mar 13 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Allen St.Clair | last post by:
How can I eject a CD tray (Drive Letter is known)? Thx~
1
by: Prakru | last post by:
Hello guys, I get compilation error for the following code in MS VC++ 6 compiler: I thought that if the Eject is called with no args, then the Player::Eject () should be called. But it...
1
by: Hai Ly Hoang [MT00KSTN] | last post by:
In my application, i want to flush all data to USB and eject it (like select Safe Remove from tray icon). Is it possible ? How to to that ? Thanks a lot
4
by: Maheshkumar.R | last post by:
Hi all, I want to access, detect, eject(open and close) CD Rom using C#. How i can do this..? -- Mähésh Kumär. R cyberiafreak
7
by: sanjana | last post by:
hi i wanna detect if a anything is connected to the usb port I am using system.management class for tht purpose this is my code class usbdetect { public static void Main() {
1
by: Danny Ni | last post by:
Hi, Is it possible to enter a page break in a HTML document, when a HTML document is diplayed in browser and user click print, the browser takes control of paging . I would like the browse to...
0
by: David Penne | last post by:
I have SBS 2003 and am using the built in tape backup. My question is about the registry key "Eject Tape Flag". I understand that this is an undocumented key and the only articles I can find...
3
by: Tim Satterwhite | last post by:
Hi All, I think this is a thorny problem, and I'm hoping you can help. I've not found this exact issue described anywhere yet. I have a stored procedure that calls BULK INSERT on a set of...
4
by: John Devlon | last post by:
Hi Does anyone know how to eject a cd/dvd on a drive? Thanx John
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.