Re: How to retrieve the internal name of a DLS/SF2 file?
Re: How to retrieve the internal name of a DLS/SF2 file?
- Subject: Re: How to retrieve the internal name of a DLS/SF2 file?
- From: Chris Rogers <email@hidden>
- Date: Wed, 8 Jan 2003 12:06:27 -0800
Rolf,
Other than closing and re-opening the DLSMusicDevice I can currently
offer you no better solution than loading it explicitly from
/System/Library/Components/CoreAudio.component/Contents/Resources/
as you're doing...
Chris Rogers
Core Audio
Apple Computer
Thanks
Works fine.
Another thing:
After I have loaded a new soundfile with:
AudioUnitSetProperty(
synthUnit,
kMusicDeviceProperty_SoundBankFSSpec, kAudioUnitScope_Global,
0,
pFSSpec, sizeof (FSSpec)
);
how do I get back the default QuickTime synth?
I tried to load the "gs_instruments.dls" file in
/System/Library/Components/CoreAudio.component/Contents/Resources/
which works but I guess there must be an easier way to do it?
Thanks
Rolf Nilsson/Roni Music
>
> Message: 4
> Date: Tue, 7 Jan 2003 11:12:52 -0800
> To: Rolf Nilsson <email@hidden>, email@hidden
> From: Chris Rogers <email@hidden>
> Subject: Re: How to retrieve the internal name of a DLS/SF2 file?
>
> Hi Rolf,
>
> Try:
>
> // this will return the name of a sound bank from a sound bank file
> extern OSStatus GetNameFromSoundBank(const FSRef *inSoundBankRef,
> CFStringRef *outName);
>
>
> defined in AudioToolbox.h
>
> Chris Rogers
> Core Audio
> Apple Computer
>
>
>
> >Hi,
> >
> >I'd like to show the user the real name of a DLS/SF2 file instead of
> >the file name
> >
> >
> >
> >How to retrieve internal name of a DLS/SF2 file?
> >
> >
> >Thanks
> >Rolf Nilsson / Roni Music
> >_______________________________________________
> >coreaudio-api mailing list | email@hidden
> >Help/Unsubscribe/Archives:
> >http://www.lists.apple.com/mailman/listinfo/coreaudio-api
> >Do not post admin requests to the list. They will be ignored.
>
> --__--__--
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.