Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-09-2001, 12:20 AM
memuhsin memuhsin is offline
Junior Member
 
Join Date: Jan 2001
Posts: 1
Default How setting and getting playback rate can be perform on wave files?

I want to get and setplayback rate of wave-form output device. I create a resource file and My wave files are in resource file. I am using for playing this files PlaySound() command. But when I wanted to perform setting playback rate, "wave form not supported" are is given. I used siple this commands for performing.(My wave files are; 11.25Khz, 16 bit mono)

1. I defined variables such as hwo:hwaveout, wavefile:TFORMATEX; and anothers.

2. I initialize waveF variable for PCM
3. I opened device with waveoutopen() command, and ithad succesfull opening.
4. At the last, I try to get playback rate by using waveoutgetplaybackrate() command. Unfortunately it gived error that not supported wave form.

For solve my problem I checked my sound card. And it is succesful to get and set playback rate.

Because I used waveoutgetdevcaps() command to get this properties.

And I see, the flag for playbackrate property is set by 2


Please help me experienced programmers.

Altough you have very small idea, please contact with me

memuhsin@yahoo.com

Muhsin GEMICI
Reply With Quote
 

Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.