Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reduced sampling rate on QTJava

Status
Not open for further replies.

swarsystems

Programmer
Mar 14, 2003
1
CH
Hi,

I am using QTJava for playing MIDI notes with custom instruments created out of individual files. This works very well except for one thing: sounds loaded play at a maximum rate of 32768.

When I create the InstSampleDesc object, call setSampleRate with 44100.0 value and then print the object to the console, the sampling rate value displayed is 32768.0.

The effect of that is that my sounds are played lower than they actually are. I have corrected this with a pitch shift, but of course sound quality would be much better if the sounds would play at 44100.

Any idea why this is happening?

Thanks for your help.

Mariano

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top