Author Topic: BASS_WASAPI and CastInit  (Read 639 times)

Ian @ un4seen

  • Administrator
  • Posts: 19804
Re: BASS_WASAPI and CastInit
« Reply #25 on: 27 Feb '17 - 13:32 »
Yes, you can have multiple encoders set on the same BASS channel.

Ed1966

  • Posts: 32
Re: BASS_WASAPI and CastInit
« Reply #26 on: 27 Feb '17 - 16:07 »
Thank you.  :D

Ed1966

  • Posts: 32
Re: BASS_WASAPI and CastInit
« Reply #27 on: 6 Mar '17 - 17:24 »
Quote
Maybe a little off topic.
But for AAC do you need driver codex?
And what must I do? I can't stream AAC here. Source is good.


Solved. Channel problem for broadcast. 8 > now 2!
« Last Edit: 7 Mar '17 - 05:18 by Ed1966 »

Ed1966

  • Posts: 32
Re: BASS_WASAPI and CastInit
« Reply #28 on: 18 Mar '17 - 08:35 »
I have some problems casting to ShoutCast server. Sometimes sound seems to be hold for milliseconds and when takes longer some Auto-DJ takes over for few seconds.
Now I think solved this but is this the right solution?

Old situation:
Encoder := BASS_Encode_Start(OutputMixer, ComLine, BASS_ENCODE_FP_16BIT or BASS_ENCODE_NOHEAD
    or BASS_ENCODE_CAST_NOLIMIT, nil, nil);

New situation:
Encoder := BASS_Encode_Start(OutputMixer, ComLine, BASS_ENCODE_FP_16BIT or BASS_ENCODE_NOHEAD
    or BASS_ENCODE_CAST_NOLIMIT or BASS_ENCODE_QUEUE, nil, nil);

You see I add: BASS_ENCODE_QUEUE
And set BASS_CONFIG_ENCODE_QUEUE to ZERO.

So, is this the right way or are there other solutions?

Thanks,
Eduard.



Ian @ un4seen

  • Administrator
  • Posts: 19804
Re: BASS_WASAPI and CastInit
« Reply #29 on: 20 Mar '17 - 15:24 »
Is the server's local playback sometimes stuttering when encoding it? If so, adding the BASS_ENCODE_QUEUE flag could indeed help; it sends the sample data to the encoder asynchronously so that decoding/playback isn't delayed.

Ed1966

  • Posts: 32
Re: BASS_WASAPI and CastInit
« Reply #30 on: 21 Mar '17 - 15:41 »
The stuttering was kind of the problem. Look fine now. Thanks.

Ed1966

  • Posts: 32
Re: BASS_WASAPI and CastInit
« Reply #31 on: 22 Mar '17 - 11:23 »
Do you have some information regarding: BASS_Encode_CastSendMeta
I can not find anything. I want to send cover picture.
Working in Delphi but C is welcome.

Ian @ un4seen

  • Administrator
  • Posts: 19804
Re: BASS_WASAPI and CastInit
« Reply #32 on: 22 Mar '17 - 14:49 »
Note that BASS_Encode_CastSendMeta only works with Shoutcast 2 servers. You can find details on the available metadata options here:

   http://wiki.winamp.com/wiki/SHOUTcast_2_(Ultravox_2.1)_Protocol_Details

For example, you could send a JPEG album cover like this:

Code: [Select]
BASS_Encode_CastSendMeta(encoder, 0x4100, data, length);

Ed1966

  • Posts: 32
Re: BASS_WASAPI and CastInit
« Reply #33 on: 23 Mar '17 - 05:36 »
Thank you. Found this one for use with Delphi so I can figure it out.

const
  BASS_METADATA_BIN_ALBUMART_JPG = 16640