port_name[channel_name_size+1] = 'L';
port_name[channel_name_size+2] = 0;
- ret = jack_port_set_name(channel_ptr->port_left, port_name);
+ ret = jack_port_rename(channel_ptr->mixer_ptr->jack_client, channel_ptr->port_left, port_name);
if (ret != 0)
{
/* what could we do here? */
port_name[channel_name_size+1] = 'R';
- ret = jack_port_set_name(channel_ptr->port_right, port_name);
+ ret = jack_port_rename(channel_ptr->mixer_ptr->jack_client, channel_ptr->port_right, port_name);
if (ret != 0)
{
/* what could we do here? */
}
else
{
- ret = jack_port_set_name(channel_ptr->port_left, name);
+ ret = jack_port_rename(channel_ptr->mixer_ptr->jack_client, channel_ptr->port_left, name);
if (ret != 0)
{
/* what could we do here? */
(unsigned int)in_event.buffer[1],
(unsigned int)in_event.buffer[2]);
- mixer_ptr->last_midi_channel = (unsigned int)in_event.buffer[1];
+ mixer_ptr->last_midi_channel = (int)in_event.buffer[1];
channel_ptr = mixer_ptr->midi_cc_map[in_event.buffer[1]];
/* if we have mapping for particular CC and MIDI scale is set for corresponding channel */
if (channel_ptr != NULL && channel_ptr->midi_scale != NULL)
{
- if (channel_ptr->midi_cc_balance_index == (unsigned int)in_event.buffer[1])
+ if (channel_ptr->midi_cc_balance_index == (char)in_event.buffer[1])
{
byte = in_event.buffer[2];
if (byte == 0)
{
continue;
}
- if (channel_ptr->midi_cc_balance_index == (unsigned int)cc_channel_index)
+ if (channel_ptr->midi_cc_balance_index == (int)cc_channel_index)
{
continue;
}
const char * jack_client_name_ptr,
bool stereo)
{
+ (void) stereo;
int ret;
struct jack_mixer * mixer_ptr;
int i;
#endif
#if LOG_LEVEL <= LOG_LEVEL_DEBUG
-# define LOG_DEBUG(format, arg...) \
+# define LOG_DEBUG(format, ...) \
jack_mixer_log(LOG_LEVEL_DEBUG, \
- format "\n", ## arg)
+ format "\n", ## __VA_ARGS__)
#else
-# define LOG_DEBUG(format, arg...)
+# define LOG_DEBUG(format, ...)
#endif
#if LOG_LEVEL <= LOG_LEVEL_INFO
-# define LOG_INFO(format, arg...) \
+# define LOG_INFO(format, ...) \
jack_mixer_log(LOG_LEVEL_INFO, \
- format "\n", ## arg)
+ format "\n", ## __VA_ARGS__)
#else
-# define LOG_INFO(format, arg...)
+# define LOG_INFO(format, ...)
#endif
#if LOG_LEVEL <= LOG_LEVEL_WARNING
-# define LOG_WARNING(format, arg...) \
+# define LOG_WARNING(format, ...) \
jack_mixer_log(LOG_LEVEL_WARNING, \
- format "\n", ## arg)
+ format "\n", ## __VA_ARGS__)
#else
-# define LOG_WARNING(format, arg...)
+# define LOG_WARNING(format, ...)
#endif
#if LOG_LEVEL <= LOG_LEVEL_NOTICE
-# define LOG_NOTICE(format, arg...) \
+# define LOG_NOTICE(format, ...) \
jack_mixer_log(LOG_LEVEL_NOTICE, \
- format "\n", ## arg)
+ format "\n", ## __VA_ARGS__)
#else
-# define LOG_NOTICE(format, arg...)
+# define LOG_NOTICE(format, ...)
#endif
#if LOG_LEVEL <= LOG_LEVEL_ERROR
-# define LOG_ERROR(format, arg...) \
+# define LOG_ERROR(format, ...) \
jack_mixer_log(LOG_LEVEL_ERROR, \
- format "\n", ## arg)
+ format "\n", ## __VA_ARGS__)
#else
-# define LOG_ERROR(format, arg...)
+# define LOG_ERROR(format, ...)
#endif
#if LOG_LEVEL <= LOG_LEVEL_FATAL
-# define LOG_FATAL(format, arg...) \
+# define LOG_FATAL(format, ...) \
jack_mixer_log(LOG_LEVEL_FATAL, \
- format "\n", ## arg)
+ format "\n", ## __VA_ARGS__)
#else
-# define LOG_FATAL(format, arg...)
+# define LOG_FATAL(format, ...)
#endif
#endif /* #ifndef LOG_H__7097F6FE_4FEE_4962_9542_60375961F567__INCLUDED */