mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-28 06:56:01 -05:00
[xcode] Add "samples_per_frame" query parameter
This commit is contained in:
parent
0d095b3037
commit
cd62070fdb
@ -2202,6 +2202,11 @@ transcode_encode_query(struct encode_ctx *ctx, const char *query)
|
|||||||
return ctx->audio_stream.stream->codecpar->channels;
|
return ctx->audio_stream.stream->codecpar->channels;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
else if (strcmp(query, "samples_per_frame") == 0)
|
||||||
|
{
|
||||||
|
if (ctx->audio_stream.stream)
|
||||||
|
return ctx->audio_stream.stream->codecpar->frame_size;
|
||||||
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user