DerelictVorbis and string pointer
ANtlord
antlord92 at gmail.com
Sun Jun 24 03:17:37 UTC 2018
On Sunday, 24 June 2018 at 01:54:52 UTC, Nicholas Wilson wrote:
> 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.
It works! Thank you!
More information about the Digitalmars-d-learn
mailing list