Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 01-09-2001, 02:35 AM
PoseFant PoseFant is offline
Senior Member
 
Join Date: Jan 2001
Posts: 1,002
Default RE: How setting and getting playback rate can be perform on wave files?

This link describes some API routines dealing Wave files.

At the end of the article is the E-Mail address of the author.

Perhaps he will be able to answer your questions.

www.delphizine.com


Regards


/Filip
Reply With Quote
Reply

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 10:46 PM.


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