Author Topic: EncodeGetRates and Delphi  (Read 2707 times)

Brif8

  • Posts: 46
EncodeGetRates and Delphi
« on: 3 Oct '02 - 13:30 »
Hi All
could anyone point me in the right direction
what structure and/or definition do you need in order to access using Delphi ?


BASS_WMAEncodeGetRates??
I tried PChar and got an emtpy string ? ??? ???

I'm wanting to get a lost of valid bitrates for 24000 and 22050 samplerates if anyone could give them as well I would be most grateful

Thanks in advance
B

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: EncodeGetRates and Delphi
« Reply #1 on: 3 Oct '02 - 15:16 »
BASS_WMAEncodeGetRates returns a pointer to an array of numbers, so you shouldn't be using "PChar". It should probably be "PInteger", but I could be wrong ;D

dunovant

  • Posts: 8
Re: EncodeGetRates and Delphi
« Reply #2 on: 3 Oct '02 - 17:21 »

Quote

BASS_WMAEncodeGetRates returns a pointer to an array of numbers, so you shouldn't be using "PChar". It should probably be "PInteger", but I could be wrong ;D


It's PINT, rather than PInteger. It's defined in Windows.pas.

Ian @ un4seen

  • Administrator
  • Posts: 20437
Re: EncodeGetRates and Delphi
« Reply #3 on: 3 Oct '02 - 23:27 »
I guess that makes the 16-bit version a half-pint ;D

:-[

dunovant

  • Posts: 8
Re: EncodeGetRates and Delphi
« Reply #4 on: 3 Oct '02 - 23:43 »

Quote

I guess that makes the 16-bit version a half-pint ;D

:laugh:
That's actually the first out-loud laugh I've had today. Thanks.