Author Topic: can't change the number of bps  (Read 258 times)

pony

  • Guest
can't change the number of bps
« on: 27 Dec '18 - 10:50 »
the stream of pcm can be changeed mp3,but I can't specify the value of  bps. why is  it no diffrence when I use -b128 or -b64?   I want to reduce the flow.How can I do that? I hope you can know my englsih.

   vCommandline := PChar(AnsiString('44100 -b128'));
    ASYNData.Encoder := BASS_Encode_MP3_Start(ASYNData.HSMixer, vCommandline,
      BASS_ENCODE_AUTOFREE, UMix.ENCODEPROC_MP3, @ASYNData);


Ian @ un4seen

  • Administrator
  • Posts: 21611
Re: can't change the number of bps
« Reply #1 on: 27 Dec '18 - 17:44 »
Perhaps the "options" string isn't being passed to BASS_Encode_MP3_Start in the expected form. Modern Delphi uses Unicode strings by default, so you could try adding the BASS_UNICODE flag to the call (and use "String" instead of "AnsiString"). "44100" isn't a valid option, so you can also remove that.

pony

  • Guest
Re: can't change the number of bps
« Reply #2 on: 28 Dec '18 - 01:23 »
thanks,The problem has been solved.