Browse Source

Sorted out URL launching on the Mac, added a tweak for linux audio devices with lots of channels, and added a missing JUCE_API marker to AudioDeviceSetup.

tags/2021-05-28
jules 16 years ago
parent
commit
390d7f69ef
6 changed files with 626 additions and 620 deletions
  1. +2
    -2
      build/linux/platform_specific_code/juce_linux_Audio.cpp
  2. +614
    -611
      build/macosx/platform_specific_code/juce_mac_Files.mm
  3. +7
    -4
      juce_amalgamated.cpp
  4. +1
    -1
      juce_amalgamated.h
  5. +1
    -1
      src/juce_appframework/audio/devices/juce_AudioDeviceManager.h
  6. +1
    -1
      src/juce_appframework/gui/components/lookandfeel/juce_LookAndFeel.cpp

+ 2
- 2
build/linux/platform_specific_code/juce_linux_Audio.cpp View File

@@ -448,7 +448,7 @@ public:
}
if (! outputDevice->setParameters ((unsigned int) sampleRate,
currentOutputChans.getHighestBit() + 1,
jlimit (minChansOut, maxChansOut, currentOutputChans.getHighestBit() + 1),
bufferSize))
{
error = outputDevice->error;
@@ -469,7 +469,7 @@ public:
}
if (! inputDevice->setParameters ((unsigned int) sampleRate,
currentInputChans.getHighestBit() + 1,
jlimit (minChansIn, maxChansIn, currentInputChans.getHighestBit() + 1),
bufferSize))
{
error = inputDevice->error;


+ 614
- 611
build/macosx/platform_specific_code/juce_mac_Files.mm
File diff suppressed because it is too large
View File


+ 7
- 4
juce_amalgamated.cpp View File

@@ -61350,7 +61350,7 @@ void LookAndFeel::drawImageButton (Graphics& g, Image* image,
int imageX, int imageY, int imageW, int imageH,
const Colour& overlayColour,
float imageOpacity,
ImageButton& button)
ImageButton& /*button*/)
{
if (! overlayColour.isOpaque())
{
@@ -257180,7 +257180,7 @@ public:
}

if (! outputDevice->setParameters ((unsigned int) sampleRate,
currentOutputChans.getHighestBit() + 1,
jmax (minChansOut, currentOutputChans.getHighestBit() + 1),
bufferSize))
{
error = outputDevice->error;
@@ -257201,7 +257201,7 @@ public:
}

if (! inputDevice->setParameters ((unsigned int) sampleRate,
currentInputChans.getHighestBit() + 1,
jmax (minChansIn, currentInputChans.getHighestBit() + 1),
bufferSize))
{
error = inputDevice->error;
@@ -265545,7 +265545,10 @@ bool juce_launchFile (const String& fileName,
const ScopedAutoReleasePool pool;

if (parameters.isEmpty())
return [[NSWorkspace sharedWorkspace] openFile: juceStringToNS (fileName)];
{
return [[NSWorkspace sharedWorkspace] openFile: juceStringToNS (fileName)]
|| [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: juceStringToNS (fileName)]];
}

bool ok = false;



+ 1
- 1
juce_amalgamated.h View File

@@ -34011,7 +34011,7 @@ public:

@see AudioDeviceManager::setAudioDeviceSetup()
*/
struct AudioDeviceSetup
struct JUCE_API AudioDeviceSetup
{
AudioDeviceSetup();
bool operator== (const AudioDeviceSetup& other) const;


+ 1
- 1
src/juce_appframework/audio/devices/juce_AudioDeviceManager.h View File

@@ -99,7 +99,7 @@ public:
@see AudioDeviceManager::setAudioDeviceSetup()
*/
struct AudioDeviceSetup
struct JUCE_API AudioDeviceSetup
{
AudioDeviceSetup();
bool operator== (const AudioDeviceSetup& other) const;


+ 1
- 1
src/juce_appframework/gui/components/lookandfeel/juce_LookAndFeel.cpp View File

@@ -1626,7 +1626,7 @@ void LookAndFeel::drawImageButton (Graphics& g, Image* image,
int imageX, int imageY, int imageW, int imageH,
const Colour& overlayColour,
float imageOpacity,
ImageButton& button)
ImageButton& /*button*/)
{
if (! overlayColour.isOpaque())
{


Loading…
Cancel
Save