BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Play a wav from resource using WaveOut

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
Frank
Guest





PostPosted: Thu Mar 29, 2007 2:13 am    Post subject: Play a wav from resource using WaveOut Reply with quote



Hello,

I have some problems playing wave
sounds in Vista with PlaySounds()
because there is a delay every time a run PlaySound()
(see my post of 2/28/2007)

Instead it seems that WaveOut functions works correctly.

But I can't find a simple example
to load a wav from the resource
and play it with WaveOut functions.

Can someone give me a simple example?

Thank you very much!

Urgent.
Back to top
Zamrony P Juhara
Guest





PostPosted: Wed Apr 18, 2007 3:58 pm    Post subject: Re: Play a wav from resource using WaveOut Reply with quote



If you want information how to load and play WAV file you can read my
article

http://juhara.com/article-14-playing-wav-file-with-wave-api.html

basically playing WAV from file or resource is same, you only need to
grab buffer where wav data resides. You can use TResourceStream to
read data from resource part in application EXE.

On Mar 29, 4:13 am, "Frank" <1...@1.com> wrote:
Quote:
Hello,

I have some problems playing wave
sounds in Vista with PlaySounds()
because there is a delay every time a run PlaySound()
(see my post of 2/28/2007)

Instead it seems that WaveOut functions works correctly.

But I can't find a simple example
to load a wav from the resource
and play it with WaveOut functions.

Can someone give me a simple example?

Thank you very much!

Urgent.
Back to top
Mark Jacobs
Guest





PostPosted: Thu Apr 19, 2007 2:51 pm    Post subject: Re: Play a wav from resource using WaveOut Reply with quote



"Frank" <1 (AT) 1 (DOT) com> wrote in message news:460ada86$1 (AT) newsgroups (DOT) borland.com...
Quote:
I have some problems playing wave
sounds in Vista with PlaySounds()
because there is a delay every time a run PlaySound()
(see my post of 2/28/2007)

Instead it seems that WaveOut functions works correctly.

I get the same delay under Vista as compared with XP. And I can vouch that
waveIn and waveOut functions all work fine with no delays under Vista! It only
seems to affect PlaySound!
--
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.