<p>I would like to avoid using native libaries if at all possible.  Surely there is a better way to solve this issue for Linux, Windows and Mac OS X.</p>

[{'answer_id': 74804, 'author': 'Steve g', 'author_id': 12092, 'author_profile': 'https://Stackoverflow.com/users/12092', 'pm_score': 0, 'selected': False, 'text': '<p>You can use the Java Sound API.  I believe this is part of java 5.  This may allow you to do what you want to do.</p>\n\n<p><a href="http://java.sun.com/products/java-media/sound/" rel="nofollow noreferrer">http://java.sun.com/products/java-media/sound/</a> </p>\n\n<p>here are some examples:</p>\n\n<p><a href="http://www.jsresources.org/examples/" rel="nofollow noreferrer">http://www.jsresources.org/examples/</a></p>\n'}, {'answer_id': 237297, 'author': 'wnoise', 'author_id': 15464, 'author_profile': 'https://Stackoverflow.com/users/15464', 'pm_score': 2, 'selected': False, 'text': "<p>Sorry, you're out of luck.  You'll need JNI, and it'll be obnoxiously different for different platforms.  The base java libraries cover tasks and hardware that are pretty much universal.  CD drives weren't and aren't considered so.</p>\n"}]
['https://Stackoverflow.com/questions/74693', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13098/']