Open the system midi sounds database and read
the headers for the names.

Or you could do this once when you first run
your program then keep your own name<-->uniqueID
table...

-- 
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi./sec ... not just a good idea, it's the LAW!


> -----Original Message-----
> From: Linke, Andreas [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 22, 1999 12:32 AM
> To: '[EMAIL PROTECTED]'
> Subject: SndCreateMidiList() sorts alphabetically
> 
> 
> Be careful when you try to use one of the built-in midi sounds.
> 
> I just found out by RTFS (reading the source) that SndCreateMidiList()
> *sorts* the returned list of midi sounds alphabetically by 
> name. This is not
> documented and IMHO not really appropriate for an OS system function.
> Sorting alphabetically is a typical UI feature and should be 
> handled by the
> application.
> The current implementation effectively renders the function 
> useless for
> retrieving a certain system sound, because the names and 
> hence the returned
> list order are different in localized ROMs. 
> 
> Is there any other way to retrieve a certain system midi 
> sound (e.g. the
> "Concerto" sound)? The unique record IDs are not reliable...
> 
> Regards,
> Andreas
> 

Reply via email to