Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
AnswerRe: A Problem with Graphics object in GDI draw functions ??? Pin
ARon_5-Jun-09 11:40
ARon_5-Jun-09 11:40 
GeneralRe: A Problem with Graphics object in GDI draw functions ??? Pin
Christian Graus5-Jun-09 11:59
protectorChristian Graus5-Jun-09 11:59 
GeneralRe: A Problem with Graphics object in GDI draw functions ??? Pin
ARon_5-Jun-09 12:31
ARon_5-Jun-09 12:31 
GeneralRe: A Problem with Graphics object in GDI draw functions ??? Pin
Christian Graus5-Jun-09 14:59
protectorChristian Graus5-Jun-09 14:59 
Question[Message Deleted] Pin
hkjghkj15-Jun-09 8:50
hkjghkj15-Jun-09 8:50 
AnswerRe: Sounds Pin
Dave Kreskowiak5-Jun-09 9:56
mveDave Kreskowiak5-Jun-09 9:56 
AnswerRe: Sounds Pin
DaveyM695-Jun-09 10:23
professionalDaveyM695-Jun-09 10:23 
AnswerRe: Sounds Pin
ARon_5-Jun-09 11:22
ARon_5-Jun-09 11:22 
You can use:
1) DirectX 9 Managed Wrapper which I understand to be obsolete
using Microsoft.DirectX.AudioVideoPlayback;
...
BackgroundMusic = new Audio(fileName, false);
BackgroundMusic.Play();

and

using Microsoft.DirectX.DirectSound;
...

public class Sound : IDisposable
{
private static Device SoundDevice;
private SecondaryBuffer MyBuffer;
...

public static void Initialize()
{
       SoundDevice = new Microsoft.DirectX.DirectSound.Device();
       SoundDevice.SetCooperativeLevel(Form.Handle, CooperativeLevel.Priority);
}
...
public Sound(string AudioFileName)
{
       BufferDescription desc = new BufferDescription();
       desc.Flags = BufferDescriptionFlags.ControlPan | BufferDescriptionFlags.ControlVolume |
                    BufferDescriptionFlags.ControlFrequency;
       MyBuffer = new SecondaryBuffer(AudioFileName, desc, SoundDevice);
}
...
MyBuffer.Play();

Go to DigiPen Webcast[^] Puc The Pirate - Hour 11

2) OpenAL, I don't have an example but there are example in the Toa Framework[^]

ARon

QuestionRichTextBox does not have string property Pin
paradisonoir5-Jun-09 8:39
paradisonoir5-Jun-09 8:39 
AnswerRe: RichTextBox does not have string property Pin
Blue_Boy5-Jun-09 9:42
Blue_Boy5-Jun-09 9:42 
AnswerRe: RichTextBox does not have string property Pin
paradisonoir5-Jun-09 9:45
paradisonoir5-Jun-09 9:45 
QuestionSYSTEM RESTORE Pin
rick05565-Jun-09 7:19
rick05565-Jun-09 7:19 
AnswerRe: SYSTEM RESTORE Pin
EliottA5-Jun-09 7:27
EliottA5-Jun-09 7:27 
GeneralRe: SYSTEM RESTORE Pin
rick05565-Jun-09 13:22
rick05565-Jun-09 13:22 
AnswerRe: SYSTEM RESTORE Pin
I Believe In GOD5-Jun-09 7:29
I Believe In GOD5-Jun-09 7:29 
AnswerRe: SYSTEM RESTORE Pin
0x3c05-Jun-09 8:02
0x3c05-Jun-09 8:02 
AnswerRe: SYSTEM RESTORE Pin
Dave Kreskowiak5-Jun-09 9:51
mveDave Kreskowiak5-Jun-09 9:51 
GeneralRe: SYSTEM RESTORE Pin
rick05565-Jun-09 13:19
rick05565-Jun-09 13:19 
GeneralRe: SYSTEM RESTORE Pin
Dave Kreskowiak5-Jun-09 17:25
mveDave Kreskowiak5-Jun-09 17:25 
GeneralRe: SYSTEM RESTORE Pin
rick05565-Jun-09 20:04
rick05565-Jun-09 20:04 
QuestionParse out all the "{" + string + "}" occurences? Pin
_iobuf5-Jun-09 6:35
_iobuf5-Jun-09 6:35 
AnswerRe: Parse out all the "{" + string + "}" occurences? Pin
I Believe In GOD5-Jun-09 6:40
I Believe In GOD5-Jun-09 6:40 
GeneralRe: Parse out all the "{" + string + "}" occurences? Pin
_iobuf5-Jun-09 6:42
_iobuf5-Jun-09 6:42 
AnswerRe: Parse out all the "{" + string + "}" occurences? Pin
MidwestLimey5-Jun-09 6:41
professionalMidwestLimey5-Jun-09 6:41 
GeneralRe: Parse out all the "{" + string + "}" occurences? Pin
_iobuf5-Jun-09 6:44
_iobuf5-Jun-09 6:44 

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.