PC Review


Reply
 
 
Larry Serflaten
Guest
Posts: n/a
 
      21st Oct 2004
I'm adding a bit of sound to a simple game I've got going, and
I want to have several sounds on at the same time, so I go looking
to use the MCISendString commands and find they CRASH MY
COMPUTER after moderate use.

After a bit of searching the web for what I might be doing wrong
I find the work around is to bring in the old MultiMedia ActiveX
control from the .Com world and use it, so I added the three I need
and no more crashes.....

But there is no decent way to make that control play a repeating
sound. The callback method sucks, (Recursive stack overflow the
first time I tried it) and even handled correctly it produces a noticable
gap in the repetition. So my question is why isn't there much in the way
of supporting sound in the .Net framework?

I don't want to hear about DirectX, no 'beginner' is going to fathom
that nightmare just to add a few bells and whistles. Aren't computers
supposed to have sound? All the early Basics I saw supported sound
in some easy way, what's up with VB.Net?

What do you think, is sound a non-issue for most of your apps, or
would you think there should be easy access to playing are few beeps
and tones, waves, and MIDI's?

I just want to plant a seed in everyones mind, the next time they have
the ear of a few MSFT developers, to mention that sound should be
made as available as pictures currently are, they are both alternate
methods of interacting with the user.....

LFS


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      21st Oct 2004
> I'm adding a bit of sound to a simple game I've got going, and
> I want to have several sounds on at the same time, so I go looking
> to use the MCISendString commands and find they CRASH MY
> COMPUTER after moderate use.


Do not shout that loud my speakers become defect.

(However I agree with you before you ask that.)

Some links I found searching this newsgroup

From Herfried,
Multimedia
<URL:http://www.mentalis.org/soft/class.qpx?id=1>

WaveFile
URL:http://www.mentalis.org/soft/class.qpx?id=14

From Shiva
http://www.dotnet247.com/247referenc...26/134913.aspx

I hope they help you

Cor




 
Reply With Quote
 
 
 
 
Larry Serflaten
Guest
Posts: n/a
 
      21st Oct 2004

"Cor Ligthert" <(E-Mail Removed)> wrote
>
> Do not shout that loud my speakers become defect.


:-)

> Some links I found searching this newsgroup


Thanks, I'll look into the KPD classes, the other two
links are for single sounds, one at a time. I need up
to three separate sound sources to be occasionally
played concurrently....

LFS

 
Reply With Quote
 
Larry Serflaten
Guest
Posts: n/a
 
      21st Oct 2004

"Cor Ligthert" <(E-Mail Removed)> wrote
>
> Some links I found searching this newsgroup
>
> From Herfried,
> Multimedia
> <URL:http://www.mentalis.org/soft/class.qpx?id=1>



While they go a bit farther than my own attempts, they
also use the MCI API interface, and that still crashes my system.

Would you like to try the project and see if it works OK
on your system? If yes, send me an email direct, and I'll
send you copy of the source code (draft version, barely
commented, etc...)

LFS



 
Reply With Quote
 
dan@aunspach.com
Guest
Posts: n/a
 
      17th Jul 2006
You can add a Windows Media Player control to your form, set the
visible property to "False" and then use

AxWindowsMediaPlayer1.URL = "C:\sounds\mysound.wav"
AxWindowsMediaPlayer1.settings.playCount() = 6
(This would repeat the sound 6X)
AxWindowsMediaPlayer1.Ctlcontrols.play()

You're right, MS wants us to use Direct Sound. The drawback with this
approach is the time invested in developing with it may be wasted if
they decide to change, yet again. (Examples: MCI to ActiveMovie,
ActiveMovie to DirectMedia, etc.)

Using the Media Player control binds you to ensuring the user has MP
installed, and the right version of MP, at that. On the plus side,
using the MP control is pretty straightforward, and some reusable code
can be made so that when MS changes their apprach again, (not a
question of if, but when), it isn't too painful.

Hope this helps.
Dan Aunspach

On Thu, 21 Oct 2004 04:20:30 -0500, "Larry Serflaten"
<(E-Mail Removed)> wrote:

>I'm adding a bit of sound to a simple game I've got going, and
>I want to have several sounds on at the same time, so I go looking
>to use the MCISendString commands and find they CRASH MY
>COMPUTER after moderate use.
>
>After a bit of searching the web for what I might be doing wrong
>I find the work around is to bring in the old MultiMedia ActiveX
>control from the .Com world and use it, so I added the three I need
>and no more crashes.....
>
>But there is no decent way to make that control play a repeating
>sound. The callback method sucks, (Recursive stack overflow the
>first time I tried it) and even handled correctly it produces a noticable
>gap in the repetition. So my question is why isn't there much in the way
>of supporting sound in the .Net framework?
>
>I don't want to hear about DirectX, no 'beginner' is going to fathom
>that nightmare just to add a few bells and whistles. Aren't computers
>supposed to have sound? All the early Basics I saw supported sound
>in some easy way, what's up with VB.Net?
>
>What do you think, is sound a non-issue for most of your apps, or
>would you think there should be easy access to playing are few beeps
>and tones, waves, and MIDI's?
>
>I just want to plant a seed in everyones mind, the next time they have
>the ear of a few MSFT developers, to mention that sound should be
>made as available as pictures currently are, they are both alternate
>methods of interacting with the user.....
>
>LFS
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SOUND sound SOUND sound SOUND sound !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! =?Utf-8?B?amFjayBiYXVlcg==?= Microsoft Powerpoint 10 31st Jan 2007 08:10 PM
Sound sound no sound MSN Windows XP General 0 30th Aug 2004 03:00 PM
Sound distortion with WMP9/MovieMaker2 playing AVIs [CMI8738 onboard sound and DX sound hardware acceleration] George R. Windows XP MovieMaker 2 8th Jul 2003 11:35 PM
Sound distortion with WMP9/MovieMaker2 playing AVIs [CMI8738 onboard sound and DX sound hardware acceleration] George R. Windows XP General 2 8th Jul 2003 11:35 PM
Sound distortion with WMP9/MovieMaker2 playing AVIs [CMI8738 onboard sound and DX sound hardware acceleration] George R. Windows XP Hardware 2 8th Jul 2003 11:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:38 AM.