mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-06 17:13:49 +01:00
Move Mac-only implementation details out of header file
This commit is contained in:
@@ -260,6 +260,16 @@ wxString sf_normalize_name(const char *name)
|
||||
|
||||
#define NUM_HEADERS 13
|
||||
|
||||
//
|
||||
// Mac OS 4-char type
|
||||
//
|
||||
|
||||
# ifdef __UNIX__
|
||||
# include <CoreServices/CoreServices.h>
|
||||
# else
|
||||
# include <Types.h>
|
||||
# endif
|
||||
|
||||
OSType MacNames[NUM_HEADERS] = {
|
||||
'WAVE', // WAVE
|
||||
'AIFF', // AIFF
|
||||
@@ -276,7 +286,7 @@ OSType MacNames[NUM_HEADERS] = {
|
||||
'MAT5', // ?? Matlab 5
|
||||
};
|
||||
|
||||
OSType sf_header_mactype(int format)
|
||||
static OSType sf_header_mactype(int format)
|
||||
{
|
||||
if (format >= 0x10000)
|
||||
return MacNames[(format/0x10000)-1];
|
||||
|
||||
@@ -101,20 +101,6 @@ extern FileExtensions sf_get_all_extensions();
|
||||
|
||||
wxString sf_normalize_name(const char *name);
|
||||
|
||||
//
|
||||
// Mac OS 4-char type
|
||||
//
|
||||
|
||||
#ifdef __WXMAC__
|
||||
# ifdef __UNIX__
|
||||
# include <CoreServices/CoreServices.h>
|
||||
# else
|
||||
# include <Types.h>
|
||||
# endif
|
||||
|
||||
OSType sf_header_mactype(int format);
|
||||
#endif
|
||||
|
||||
// This function wrapper uses a mutex to serialize calls to the SndFile library.
|
||||
#include "MemoryX.h"
|
||||
#include "ondemand/ODTaskThread.h"
|
||||
|
||||
Reference in New Issue
Block a user