TeamPyOgg / PyOgg

Simple OGG Vorbis, Opus and FLAC bindings for Python
The Unlicense
64 stars 27 forks source link

Wrong type of arguments of function ope_encoder_write #27

Closed r7sa closed 4 years ago

r7sa commented 4 years ago

It seems that at line https://github.com/Zuzu-Typ/PyOgg/blob/master/pyogg/opus.py#L1221 second argument of list libopusenc.ope_encoder_write.argtypes = [ooe_p, c_float_p, c_int] must be pointer to int16, not to float. (int ope_encoder_write(OggOpusEnc enc, const opus_int16 pcm, int samples_per_channel))

Zuzu-Typ commented 4 years ago

Yupp, very correct indeed.

Thanks for letting me know (: