Fix AudioReader::getInstrument under libsndfile
This commit is contained in:
parent
cda079eef8
commit
0bcf626786
1 changed files with 2 additions and 1 deletions
|
|
@ -53,7 +53,8 @@ bool BasicSndfileReader::getInstrument(InstrumentInfo* instrument)
|
||||||
{
|
{
|
||||||
#if defined(SFIZZ_USE_SNDFILE)
|
#if defined(SFIZZ_USE_SNDFILE)
|
||||||
SNDFILE* sndfile = reinterpret_cast<SNDFILE*>(handle_.get_sndfile_handle());
|
SNDFILE* sndfile = reinterpret_cast<SNDFILE*>(handle_.get_sndfile_handle());
|
||||||
if (sf_command(sndfile, SFC_GET_INSTRUMENT, &instrument, sizeof(instrument)) == SF_TRUE)
|
SF_INSTRUMENT* sfins = instrument;
|
||||||
|
if (sf_command(sndfile, SFC_GET_INSTRUMENT, sfins, sizeof(SF_INSTRUMENT)) == SF_TRUE)
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
(void)instrument;
|
(void)instrument;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue