Readme.htm 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. <html xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
  2. <head>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
  4. <META NAME="save" CONTENT="history" />
  5. <title>sdkMicrophone</title>
  6. <style type="text/css">
  7. body
  8. {
  9. color: #000000;
  10. font-family: Verdana;
  11. font-size: medium;
  12. font-style: normal;
  13. font-weight: normal;
  14. margin-top: 0;
  15. margin-bottom: 0;
  16. margin-left: 0;
  17. margin-right: 0;
  18. width: 100%;
  19. }
  20. dl
  21. {
  22. margin-top: 15;
  23. margin-bottom:5;
  24. padding-left: 1;
  25. }
  26. dl.authored dt {
  27. font-style: bold;
  28. margin-top: 2;
  29. }
  30. dd {
  31. margin-left: 20px;
  32. }
  33. ul
  34. {
  35. margin-top:0;
  36. margin-bottom:0;
  37. margin-left: 17;
  38. list-style-type: disc;
  39. }
  40. ul.nobullet
  41. {
  42. display: block;
  43. list-style: none;
  44. }
  45. ul ul
  46. {
  47. margin-bottom: 4;
  48. margin-left: 17;
  49. margin-top: 3;
  50. list-style-type: disc;
  51. }
  52. ol {
  53. margin-top:0;
  54. margin-bottom:0;
  55. margin-left: 28;
  56. list-style-type: decimal;
  57. }
  58. ol ol {
  59. margin-bottom: 4;
  60. margin-left: 28;
  61. margin-top: 3;
  62. list-style-type: lower-alpha;
  63. }
  64. li {
  65. margin-top: 5;
  66. margin-bottom: 5;
  67. }
  68. p {
  69. margin-top: 10;
  70. margin-bottom: 5;
  71. }
  72. a:link {
  73. color: #0000FF;
  74. }
  75. a:visited {
  76. color: #DD7C3B;
  77. }
  78. a:hover {
  79. color: #3366FF;
  80. }
  81. code
  82. {
  83. font-family: Monospace, Courier New, Courier;
  84. font-size: 105%;
  85. color: #000066;
  86. }
  87. span.parameter {
  88. font-style: italic;
  89. }
  90. span.italic {
  91. font-style: italic;
  92. }
  93. span.selflink {
  94. font-weight: bold;
  95. }
  96. span.nolink {
  97. font-weight: bold;
  98. }
  99. div.breadCrumbs {
  100. font-size: 8pt;
  101. margin-bottom: 5;
  102. border-bottom-color: #C8CDDE;
  103. border-bottom-style: solid;
  104. border-bottom-width: 1;
  105. padding-bottom: 5;
  106. }
  107. div#mainSection
  108. {
  109. font-size: 62.5%;
  110. width: 100%;
  111. }
  112. html&gt;body #mainSection
  113. {
  114. font-size:73%;
  115. width: 100%;
  116. }
  117. div#mainBody
  118. {
  119. font-size: 100%;
  120. margin-left: 15;
  121. margin-top: 10;
  122. }
  123. html&gt;body #mainBody
  124. {
  125. font-size: 93%;
  126. margin-left: 15;
  127. margin-top: 10;
  128. padding-bottom: 20;
  129. }
  130. div#mainBody p, div#mainBody ol, div#mainBody ul, div#mainBody dl
  131. {
  132. padding-right: 5;
  133. }
  134. div#header
  135. {
  136. padding-top: 0;
  137. padding-bottom: 0;
  138. padding-left: 0;
  139. padding-right: 0;
  140. width: 100%;
  141. }
  142. div#header table
  143. {
  144. width: 100%;
  145. }
  146. div#header table td
  147. {
  148. color: #0000FF;
  149. font-size: 70%;
  150. margin-top: 0;
  151. margin-bottom: 0;
  152. padding-right: 20;
  153. }
  154. div#header table tr#headerTableRow2 td
  155. {
  156. padding-left: 13px;
  157. }
  158. div#header table tr#headerTableRow3 td
  159. {
  160. padding-top: 2px;
  161. padding-left: 15;
  162. }
  163. div#header table#bottomTable
  164. {
  165. border-top-color: #FFFFFF;
  166. border-top-style: solid;
  167. border-top-width: 1;
  168. text-align: left;
  169. padding-left: 15;
  170. padding-top: 5px;
  171. padding-bottom: 5px;
  172. }
  173. div#mainSection table td.imageCell
  174. {
  175. white-space: nowrap;
  176. }
  177. div#mainBody div.alert, div#mainBody div.code, div#mainBody div.tableSection
  178. {
  179. width:98.9%;
  180. }
  181. div#mainBody div.section div.alert, div#mainBody div.section div.code,
  182. div#mainBody div.section div.tableSection
  183. {
  184. width:100%;
  185. }
  186. div#mainBody div.section ul div.alert, div#mainBody div.section ul div.code,
  187. div#mainBody div.section ul div.tableSection, div#mainBody div.section ol div.alert,
  188. div#mainBody div.section ol div.code, div#mainBody div.section ol div.tableSection
  189. {
  190. width:100%;
  191. }
  192. div.alert p, div.code p
  193. {
  194. margin-top:5;
  195. margin-bottom:8;
  196. }
  197. dd p
  198. {
  199. margin-top:2;
  200. margin-bottom:8;
  201. }
  202. div.tableSection p
  203. {
  204. margin-top:1;
  205. margin-bottom:4;
  206. }
  207. li p
  208. {
  209. margin-top:2;
  210. margin-bottom:2;
  211. }
  212. div.seeAlsoNoToggleSection dl
  213. {
  214. margin-top:8;
  215. margin-bottom:1;
  216. padding-left:1;
  217. }
  218. div.seeAlsoNoToggleSection dd p
  219. {
  220. margin-top:2;
  221. margin-bottom:8;
  222. }
  223. div.section dl
  224. {
  225. margin-top:8;
  226. margin-bottom:1;
  227. padding-left:1;
  228. }
  229. div.section dd p
  230. {
  231. margin-top:2;
  232. margin-bottom:8;
  233. }
  234. div.code table
  235. {
  236. border: 0;
  237. font-size: 95%;
  238. margin-bottom: 5;
  239. margin-top:-.4em;
  240. width: 100%
  241. }
  242. div.code table th
  243. {
  244. background: #EFEFF7;
  245. border-bottom-color: #C8CDDE;
  246. border-bottom-style: solid;
  247. border-bottom-width: 1;
  248. color: #000066;
  249. font-weight: bold;
  250. padding-left: 5;
  251. padding-right: 5;
  252. }
  253. div.code table td
  254. {
  255. background: #F7F7FF;
  256. border-top-color: #FFFFFF;
  257. border-top-style: solid;
  258. border-top-width: 1;
  259. padding-left: 5;
  260. padding-right: 5;
  261. padding-top: 5;
  262. }
  263. span#runningHeaderText
  264. {
  265. color: #8C8C8C;
  266. font-size: 90%;
  267. padding-left: 13;
  268. }
  269. span#nsrTitle
  270. {
  271. color: #000000;
  272. font-size: 160%;
  273. font-weight: 400;
  274. font-family: arial;
  275. }
  276. div#footer
  277. {
  278. font-size: 80%;
  279. margin-top: 0;
  280. margin-bottom: 0;
  281. margin-left: 0;
  282. margin-right: 0;
  283. padding-top: 8;
  284. padding-bottom: 6;
  285. padding-left: 1;
  286. padding-right: 1;
  287. width: 100%;
  288. }
  289. html&gt;body div#footer
  290. {
  291. font-size: 80%;
  292. margin-top: 0;
  293. margin-bottom: 0;
  294. margin-left: 0;
  295. margin-right: 0;
  296. padding-top: 2;
  297. padding-bottom: 6;
  298. padding-left: 1;
  299. padding-right: 1;
  300. width: 98%;
  301. }
  302. div.seeAlsoNoToggleSection
  303. {
  304. margin-left:0;
  305. padding-top: 2;
  306. padding-bottom: 2;
  307. padding-left: 0;
  308. padding-right: 15;
  309. width: 100%;
  310. }
  311. div.section
  312. {
  313. margin-left:0;
  314. padding-top: 0;
  315. padding-bottom: 0;
  316. padding-left: 16;
  317. padding-right: 15;
  318. width: 100%;
  319. }
  320. html&gt;body div.section
  321. {
  322. margin-left:0;
  323. padding-top: 2;
  324. padding-bottom: 2;
  325. padding-left: 16;
  326. padding-right: 15;
  327. width: 97%;
  328. }
  329. div.seeSection
  330. {
  331. margin-left:0;
  332. padding-top: 0;
  333. padding-bottom: 2;
  334. padding-left: 16;
  335. padding-right: 15;
  336. width: 100%;
  337. }
  338. .heading
  339. {
  340. font-weight: bold;
  341. margin-top: 18;
  342. margin-bottom: 8;
  343. }
  344. h1.heading
  345. {
  346. color: #000000;
  347. font-size: 130%;
  348. }
  349. .subHeading
  350. {
  351. font-weight: bold;
  352. margin-bottom: 4;
  353. }
  354. .procedureSubHeading
  355. {
  356. font-weight: bold;
  357. margin-bottom: 4;
  358. }
  359. h3.subHeading
  360. {
  361. color: #000000;
  362. font-size: 120%;
  363. font-weight:800;
  364. }
  365. h3.procedureSubHeading
  366. {
  367. color: #000000;
  368. font-size: 120%;
  369. }
  370. h4.subHeading
  371. {
  372. color: #000000;
  373. font-size: 110%;
  374. font-weight:800;
  375. }
  376. span.labelheading, div.labelheading
  377. {
  378. font-size:100%;
  379. color:#003399;
  380. }
  381. img.note
  382. {
  383. border: 0;
  384. margin-right: 3;
  385. }
  386. div#mainSection table
  387. {
  388. border: 0;
  389. font-size: 100%;
  390. width: 98.9%;
  391. margin-top: 5px;
  392. margin-bottom: 5px;
  393. }
  394. div#mainSection table tr
  395. {
  396. vertical-align: top;
  397. }
  398. div#mainSection table th
  399. {
  400. background-color: #EFEFF7;
  401. border-bottom: 1px solid #C8CDDE;
  402. border-left: 1px none #D5D5D3;
  403. color: #000066;
  404. padding-left: 5px;
  405. padding-right: 5px;
  406. text-align: left;
  407. }
  408. div#mainSection table td
  409. {
  410. background-color: #F7F7FF;
  411. border-bottom: 1px solid #D5D5D3;
  412. border-left: 1px none #D5D5D3;
  413. padding-left: 5px;
  414. padding-right: 5px;
  415. }
  416. div#mainSection table td.imageCell
  417. {
  418. white-space: nowrap;
  419. }
  420. div.code table
  421. {
  422. border: 0;
  423. font-size: 95%;
  424. margin-bottom: 5;
  425. width: 100%
  426. }
  427. div.code table th
  428. {
  429. background: #EFEFF7;
  430. border-bottom-color: #C8CDDE;
  431. border-bottom-style: solid;
  432. border-bottom-width: 1;
  433. color: #000066;
  434. font-weight: bold;
  435. padding-left: 5;
  436. padding-right: 5;
  437. }
  438. div.code table td
  439. {
  440. background: #F7F7FF;
  441. border-top-color: #FFFFFF;
  442. border-top-style: solid;
  443. border-top-width: 1;
  444. padding-left: 5;
  445. padding-right: 5;
  446. padding-top: 5;
  447. }
  448. div.alert table
  449. {
  450. border: 0;
  451. font-size: 100%;
  452. width: 100%;
  453. }
  454. div.alert table th
  455. {
  456. background: #EFEFF7;
  457. border-bottom-width: 0;
  458. color: #000066;
  459. padding-left: 5;
  460. padding-right: 5;
  461. }
  462. div.alert table td
  463. {
  464. background: #F7F7FF;
  465. border-top-color: #FFFFFF;
  466. border-top-style: solid;
  467. border-top-width: 1;
  468. padding-left: 5;
  469. padding-right: 5;
  470. }
  471. div.code pre
  472. {
  473. font-family: Monospace, Courier New, Courier;
  474. font-size: 105%;
  475. color: #000066;
  476. word-wrap: break-word;
  477. background: #F7F7FF;
  478. }
  479. .tip
  480. {
  481. color: #0000FF;
  482. font-style: italic;
  483. cursor: pointer;
  484. text-decoration:underline;
  485. }
  486. .math
  487. {
  488. font-family: Times New Roman;
  489. font-size: 125%
  490. }
  491. div.footerLine {
  492. margin: 0;
  493. width: 100%;
  494. padding-top: 8;
  495. padding-bottom: 6;
  496. /*padding-left: 5;
  497. padding-right: 2;*/
  498. }
  499. div.hr1 {
  500. margin: 0;
  501. width: 100%;
  502. height: 1px;
  503. padding: 0;
  504. background: #C8CDDE;
  505. font-size: 1px;
  506. }
  507. div.hr2 {
  508. margin: 0;
  509. width: 100%;
  510. height: 1px;
  511. padding: 0;
  512. background: #D4DFFF;
  513. font-size: 1px;
  514. }
  515. div.hr3 {
  516. margin: 0;
  517. width: 100%;
  518. height: 1px;
  519. padding: 0;
  520. background: #EEEEFF;
  521. font-size: 1px;
  522. }
  523. span.cs {
  524. display: none;
  525. }
  526. span.vb {
  527. display: none;
  528. }
  529. span.cpp {
  530. display: none;
  531. }
  532. span.nu {
  533. display: inline;
  534. }
  535. span.fs
  536. {
  537. display: none;
  538. }
  539. span.code {
  540. font-family: Monospace, Courier New, Courier;
  541. font-size: 105%;
  542. color: #000066;
  543. }
  544. span.ui {
  545. font-weight: bold;
  546. }
  547. span.math {
  548. font-style: italic;
  549. }
  550. span.input {
  551. font-weight: bold;
  552. }
  553. span.term {
  554. font-style: italic;
  555. }
  556. span.label
  557. {
  558. font-weight: bold;
  559. }
  560. span.foreignPhrase {
  561. font-style: italic;
  562. }
  563. span.placeholder {
  564. font-style: italic;
  565. }
  566. span.keyword
  567. {
  568. font-weight: bold;
  569. }
  570. span.typeparameter
  571. {
  572. font-style:italic;
  573. }
  574. div.caption
  575. {
  576. font-weight: bold;
  577. font-size:100%;
  578. color:#003399;
  579. }
  580. div.code span.keyword
  581. {
  582. color: #871F78;
  583. }
  584. div.code span.parameter
  585. {
  586. font-style: italic;
  587. }
  588. div.code span.literal
  589. {
  590. color:#8B0000;
  591. }
  592. div.code span.comment
  593. {
  594. color: #006400;
  595. }
  596. span.syntaxLabel
  597. {
  598. color:#0481DA;
  599. font-weight:bold;
  600. }
  601. span.introStyle
  602. {
  603. color:DarkGray;
  604. }
  605. div.seeAlsoStyle
  606. {
  607. padding-top:5px;
  608. }
  609. td.nsrBottom
  610. {
  611. height: 0.6em;
  612. width: 100%;
  613. }
  614. </style>
  615. </head>
  616. <body>
  617. <div id="header">
  618. <table id="bottomTable" cellpadding="0" cellspacing="0">
  619. <tr id="headerTableRow1">
  620. <td align="left">
  621. <span id="runningHeaderText" />
  622. </td>
  623. </tr>
  624. <tr id="headerTableRow2">
  625. <td align="left">
  626. <span id="nsrTitle">sdkMicrophone</span>
  627. </td>
  628. </tr>
  629. <tr id="headerTableRow3">
  630. <td align="left" />
  631. </tr>
  632. </table>
  633. <table id="gradientTable">
  634. <tr>
  635. <td class="nsrBottom" background="../icons/gradient.gif" />
  636. </tr>
  637. </table>
  638. </div>
  639. <div id="mainSection">
  640. <div id="mainBody">
  641. <font color="DarkGray"></font>
  642. <p /> <p><font color="DarkGray">September 26, 2011</font></p><div class="introduction"><p>This sample demonstrates how to get audio input from the microphone in a Silverlight for Windows Phone application by using the <a href="http://go.microsoft.com/fwlink/?LinkId=205806">Microsoft.Xna.Framework.Audio.Microphone</a> class. It also shows how to play audio using the <span sdata="langKeyword" value="SoundEffect"><span class="keyword">SoundEffect</span></span> and <span sdata="langKeyword" value="SoundEffectInstance"><span class="keyword">SoundEffectInstance</span></span> classes. The code monitors audio playback on a separate thread and updates the user interface when the sound stops playing. For more information on accessing the microphone in a Silverlight application, please see <a href="http://go.microsoft.com/fwlink/?LinkId=206663">How to: Access the Microphone in a Silverlight Application for Windows Phone</a> </p><div class="alert"><table width="100%" cellspacing="0" cellpadding="0"><tr><th align="left"><b>Important Note:</b></th></tr><tr><td><p>You must install Windows Phone SDK to run this sample. To get started, go to the <a href="http://go.microsoft.com/fwlink/?LinkID=185192">App Hub</a>.</p></td></tr></table></div></div></div>
  643. <div id="footer">
  644. <div class="footerLine" />
  645. </div>
  646. <p />
  647. </div>
  648. </body>
  649. </html>