Skip to content

Commit

Permalink
Fixed some compiler errors when logging debug ALSA output
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoole committed Aug 29, 2017
1 parent a2a0a2c commit 6d1fa80
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions modules/juce_audio_devices/native/juce_linux_ALSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class ALSADevice
isInput (forInput),
isInterleaved (true)
{
JUCE_ALSA_LOG ("snd_pcm_open (" << deviceID.toUTF8().getAddress() << ", forInput=" << forInput << ")");
JUCE_ALSA_LOG ("snd_pcm_open (" << deviceID.toUTF8().getAddress() << ", forInput=" << (int) forInput << ")");

int err = snd_pcm_open (&handle, deviceID.toUTF8(),
forInput ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK,
Expand Down Expand Up @@ -418,8 +418,8 @@ class ALSADevice
bool isFloat, bool isLittleEndian, bool useOnlyLower24Bits,
int numInterleavedChannels)
{
JUCE_ALSA_LOG ("format: bitDepth=" << bitDepth << ", isFloat=" << isFloat
<< ", isLittleEndian=" << isLittleEndian << ", numChannels=" << numInterleavedChannels);
JUCE_ALSA_LOG ("format: bitDepth=" << bitDepth << ", isFloat=" << (int) isFloat
<< ", isLittleEndian=" << (int) isLittleEndian << ", numChannels=" << numInterleavedChannels);

if (isFloat) return ConverterHelper <AudioData::Float32>::createConverter (forInput, isLittleEndian, numInterleavedChannels);
if (bitDepth == 16) return ConverterHelper <AudioData::Int16> ::createConverter (forInput, isLittleEndian, numInterleavedChannels);
Expand Down Expand Up @@ -1037,7 +1037,7 @@ class ALSAAudioIODeviceType : public AudioIODeviceType
if ((isInput || isOutput) && rates.size() > 0)
{
JUCE_ALSA_LOG ("testDevice: '" << id.toUTF8().getAddress() << "' -> isInput: "
<< isInput << ", isOutput: " << isOutput);
<< (int) isInput << ", isOutput: " << (int) isOutput);

if (isInput)
{
Expand Down Expand Up @@ -1128,7 +1128,8 @@ class ALSAAudioIODeviceType : public AudioIODeviceType
}

JUCE_ALSA_LOG ("Soundcard ID: " << id << ", name: '" << name
<< ", isInput:" << isInput << ", isOutput:" << isOutput << "\n");
<< ", isInput:" << (int) isInput
<< ", isOutput:" << (int) isOutput << "\n");

if (isInput)
{
Expand Down

0 comments on commit 6d1fa80

Please sign in to comment.