<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Playing Audio CDs, part 4 - MCI Playback.</title><link>http://blogs.msdn.com/b/larryosterman/archive/2005/04/25/playing-audio-cds-part-4-mci-playback.aspx</link><description>The other day , I wrote about dumping the track database on an audio using the MCI string command set.
 Today, I'll include the piece I left out of the last article, actually playing a track from the CD. 
 HRESULT CMCIStringCDPlayer::PlayTrack(int TrackNumber</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Playing Audio CDs, part 4 - MCI Playback.</title><link>http://blogs.msdn.com/b/larryosterman/archive/2005/04/25/playing-audio-cds-part-4-mci-playback.aspx#412235</link><pubDate>Tue, 26 Apr 2005 21:07:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:412235</guid><dc:creator>gunroom</dc:creator><description>Larry, thanks for the info. It is fascinating to me to understand why things are the way they are.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=412235" width="1" height="1"&gt;</description></item><item><title>re: Playing Audio CDs, part 4 - MCI Playback.</title><link>http://blogs.msdn.com/b/larryosterman/archive/2005/04/25/playing-audio-cds-part-4-mci-playback.aspx#412114</link><pubDate>Tue, 26 Apr 2005 15:55:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:412114</guid><dc:creator>Larry Osterman [MSFT]</dc:creator><description>Gunroom,&lt;br&gt;&lt;br&gt;After you asked, I asked around to the guys who wrote most of MCI (they're still at Microsoft, although not on the audio team).&lt;br&gt;&lt;br&gt;The MCI command set was created for REXX apps (and basic apps) in a joint development effort with IBM.  The actual command syntax was chosen by the developer who did the work.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=412114" width="1" height="1"&gt;</description></item><item><title>Links for 2005-4-26</title><link>http://blogs.msdn.com/b/larryosterman/archive/2005/04/25/playing-audio-cds-part-4-mci-playback.aspx#412020</link><pubDate>Tue, 26 Apr 2005 07:40:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:412020</guid><dc:creator>Media Hash Research</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=412020" width="1" height="1"&gt;</description></item><item><title>re: Playing Audio CDs, part 4 - MCI Playback.</title><link>http://blogs.msdn.com/b/larryosterman/archive/2005/04/25/playing-audio-cds-part-4-mci-playback.aspx#411885</link><pubDate>Mon, 25 Apr 2005 22:33:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:411885</guid><dc:creator>Larry Osterman [MSFT]</dc:creator><description>Gunroom, I haven't the faintest idea where it came from (and nobody on the team does either :()&lt;br&gt;&lt;br&gt;I just know that it is :)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=411885" width="1" height="1"&gt;</description></item><item><title>re: Playing Audio CDs, part 4 - MCI Playback.</title><link>http://blogs.msdn.com/b/larryosterman/archive/2005/04/25/playing-audio-cds-part-4-mci-playback.aspx#411880</link><pubDate>Mon, 25 Apr 2005 22:25:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:411880</guid><dc:creator>gunroom</dc:creator><description>Larry, where did the syntax of those commands come from? Was it some late 80s media standard or something?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=411880" width="1" height="1"&gt;</description></item><item><title>re: Playing Audio CDs, part 4 - MCI Playback.</title><link>http://blogs.msdn.com/b/larryosterman/archive/2005/04/25/playing-audio-cds-part-4-mci-playback.aspx#411825</link><pubDate>Mon, 25 Apr 2005 19:46:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:411825</guid><dc:creator>Larry Osterman [MSFT]</dc:creator><description>Actually, I intentionally used Sleep() to indicate that MCI doesn't require a message pump to work.&lt;br&gt;&lt;br&gt;On a non console app it would make sense, but MCI's command set doesn't require the pump.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=411825" width="1" height="1"&gt;</description></item><item><title>re: Playing Audio CDs, part 4 - MCI Playback.</title><link>http://blogs.msdn.com/b/larryosterman/archive/2005/04/25/playing-audio-cds-part-4-mci-playback.aspx#411820</link><pubDate>Mon, 25 Apr 2005 19:39:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:411820</guid><dc:creator>anon</dc:creator><description>Is the Sleep() call after starting CD playback really recommended? Would it be better to call one of the MsgWait type functions?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=411820" width="1" height="1"&gt;</description></item><item><title>re: Playing Audio CDs, part 4 - MCI Playback.</title><link>http://blogs.msdn.com/b/larryosterman/archive/2005/04/25/playing-audio-cds-part-4-mci-playback.aspx#411806</link><pubDate>Mon, 25 Apr 2005 18:58:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:411806</guid><dc:creator>Josh Koppang</dc:creator><description>// Set the MCI time format to track/minute/second/frame.&lt;br&gt;    mciError = mciSendString(&amp;quot;close cdaudio&amp;quot;, mciReturnBuffer, sizeof(mciReturnBuffer), NULL);&lt;br&gt;&lt;br&gt;I'm guessing that the comment is just left over from cutting and pasting the code, or am I missing something? This command just closes it, correct?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=411806" width="1" height="1"&gt;</description></item></channel></rss>