DerelictVorbis and string pointer
Nicholas Wilson
iamthewilsonator at hotmail.com
Sun Jun 24 01:54:52 UTC 2018
On Sunday, 24 June 2018 at 01:43:41 UTC, ANtlord wrote:
> On Sunday, 24 June 2018 at 01:26:48 UTC, ANtlord wrote:
>>
>> Actually I get it worked replacing `string filepath2` by
>> `char[] filepath2` but filepath is string still and it works
>> correctly.
>
> It doesn't work
Vorbis is a C library, so you need to null terminate your string
using toStringz. The reason why the one from the command line
works is because it is already null terminate.
More information about the Digitalmars-d-learn
mailing list