| View previous topic :: View next topic |
| Author |
Message |
Frank Guest
|
Posted: Thu Mar 29, 2007 2:13 am Post subject: Play a wav from resource using WaveOut |
|
|
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
|
Posted: Wed Apr 18, 2007 3:58 pm Post subject: Re: Play a wav from resource using WaveOut |
|
|
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
|
Posted: Thu Apr 19, 2007 2:51 pm Post subject: Re: Play a wav from resource using WaveOut |
|
|
"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 |
|
 |
|