Click here to Skip to main content
16,008,490 members
Home / Discussions / WPF
   

WPF

 
GeneralSilverlight 2 (beta1) Known Issues and workarounds (if any) Pin
Michael Sync2-Apr-08 4:17
Michael Sync2-Apr-08 4:17 
GeneralRe: Silverlight 2 (beta1) Known Issues and workarounds (if any) Pin
User 2710092-Apr-08 9:35
User 2710092-Apr-08 9:35 
GeneralRe: Silverlight 2 (beta1) Known Issues and workarounds (if any) Pin
User 27100911-Apr-08 21:45
User 27100911-Apr-08 21:45 
GeneralRe: Silverlight 2 (beta1) Known Issues and workarounds (if any) Pin
Michael Sync12-Apr-08 4:18
Michael Sync12-Apr-08 4:18 
GeneralRe: Silverlight 2 (beta1) Known Issues and workarounds (if any) Pin
User 27100912-Apr-08 4:20
User 27100912-Apr-08 4:20 
GeneralDoublePost from C# Forum ... SetCooperatiionLevel with DirectX Pin
Jammer30-Mar-08 11:19
Jammer30-Mar-08 11:19 
GeneralRe: DoublePost from C# Forum ... SetCooperatiionLevel with DirectX Pin
Thomas Stockwell2-Apr-08 15:32
professionalThomas Stockwell2-Apr-08 15:32 
GeneralRe: DoublePost from C# Forum ... SetCooperatiionLevel with DirectX Pin
Jammer3-Apr-08 7:42
Jammer3-Apr-08 7:42 
Hi Thomans,

The working example I have here at the moment is using this code:

public static void PlayAudioFile(string _fileName)
{
    DevicesCollection soundcards = new DevicesCollection();
    Device dSound = new Device();
    WindowInteropHelper wih = new WindowInteropHelper(Application.Current.MainWindow);
    dSound.SetCooperativeLevel(wih.Handle , CooperativeLevel.Priority);
    BufferDescription d = new BufferDescription();


Although that said I think I need to place all this audio in its own thread as there are currently some audio hiccups happening. Sometimes an audio file will play through fine other times it plays a short burst and then stops so this isn't fully functioning code yet.

Jammer

Going where everyone here has gone before! Smile | :)
My Blog

GeneralDataGridView wpf style [modified] Pin
yanairon30-Mar-08 4:29
yanairon30-Mar-08 4:29 
GeneralRe: DataGridView wpf style Pin
Pete O'Hanlon30-Mar-08 8:33
mvePete O'Hanlon30-Mar-08 8:33 
GeneralRe: DataGridView wpf style Pin
Rob Philpott31-Mar-08 4:14
Rob Philpott31-Mar-08 4:14 
GeneralRe: DataGridView wpf style Pin
Jammer31-Mar-08 7:23
Jammer31-Mar-08 7:23 
GeneralRe: DataGridView wpf style Pin
Pete O'Hanlon31-Mar-08 8:45
mvePete O'Hanlon31-Mar-08 8:45 
GeneralCharting/Graphs in WPF Pin
BlitzPackage30-Mar-08 3:34
BlitzPackage30-Mar-08 3:34 
GeneralRe: Charting/Graphs in WPF Pin
Jammer30-Mar-08 11:33
Jammer30-Mar-08 11:33 
GeneralStart With Silver Light Pin
Abhijit Jana28-Mar-08 20:03
professionalAbhijit Jana28-Mar-08 20:03 
GeneralRe: Start With Silver Light Pin
N a v a n e e t h28-Mar-08 20:27
N a v a n e e t h28-Mar-08 20:27 
GeneralRe: Start With Silver Light Pin
Michael Sync30-Mar-08 18:21
Michael Sync30-Mar-08 18:21 
GeneralRe: Start With Silver Light Pin
Abhijit Jana30-Mar-08 18:50
professionalAbhijit Jana30-Mar-08 18:50 
QuestionRe: Start With Silver Light Pin
cjlambre16-Aug-08 9:19
cjlambre16-Aug-08 9:19 
GeneralWPF - Separator Style Pin
Member 253938127-Mar-08 22:34
Member 253938127-Mar-08 22:34 
GeneralRe: WPF - Separator Style Pin
User 27100928-Mar-08 2:56
User 27100928-Mar-08 2:56 
GeneralPerformance Issue in WPF Pin
devneeraj27-Mar-08 19:58
devneeraj27-Mar-08 19:58 
GeneralRe: Performance Issue in WPF Pin
Pete O'Hanlon27-Mar-08 22:54
mvePete O'Hanlon27-Mar-08 22:54 
GeneralRe: Performance Issue in WPF Pin
Jammer27-Mar-08 23:57
Jammer27-Mar-08 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.