mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 16:25:03 -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;
|
||||
#endif
|
||||
}
|
||||
else if (strcmp(query, "samples_per_frame") == 0)
|
||||
{
|
||||
if (ctx->audio_stream.stream)
|
||||
return ctx->audio_stream.stream->codecpar->frame_size;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user