void AvisynthAudioSource::GetAudio(void* Buf, __int64 Start, __int64 Count, IScriptEnvironment *Env) { char ErrorMsg[1024]; FFMS_ErrorInfo E; E.Buffer = ErrorMsg; E.BufferSize = sizeof(ErrorMsg); if (FFMS_GetAudio(A, Buf, Start, Count, &E)) Env->ThrowError("FFAudioSource: %s", E.Buffer); }
/// @brief Get audio /// @param Buf /// @param Start /// @param Count /// void FFmpegSourceAudioProvider::GetAudio(void *Buf, int64_t Start, int64_t Count) const { if (FFMS_GetAudio(AudioSource, Buf, Start, Count, &ErrInfo)) { throw AudioDecodeError(std::string("Failed to get audio samples: ") + ErrInfo.Buffer); } }
void AvisynthAudioSource::GetAudio(void* Buf, __int64 Start, __int64 Count, IScriptEnvironment *Env) { ErrorInfo E; if (FFMS_GetAudio(A, Buf, Start, Count, &E)) Env->ThrowError("FFAudioSource: %s", E.Buffer); }