Commit 3a03d629 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Wide nCurses: set volume on playlist

parent a528e8a9
...@@ -1195,12 +1195,12 @@ static int HandleKey( intf_thread_t *p_intf, int i_key ) ...@@ -1195,12 +1195,12 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
ReturnTrue; ReturnTrue;
case 'a': case 'a':
aout_VolumeUp( p_intf, 1, NULL ); aout_VolumeUp( p_playlist, 1, NULL );
clear(); clear();
ReturnTrue; ReturnTrue;
case 'z': case 'z':
aout_VolumeDown( p_intf, 1, NULL ); aout_VolumeDown( p_playlist, 1, NULL );
clear(); clear();
ReturnTrue; ReturnTrue;
...@@ -1547,7 +1547,7 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh ) ...@@ -1547,7 +1547,7 @@ static void Redraw( intf_thread_t *p_intf, time_t *t_last_refresh )
mvnprintw( y++, 0, COLS, _(" Position : %s/%s (%.2f%%)"), buf1, buf2, p_sys->f_slider ); mvnprintw( y++, 0, COLS, _(" Position : %s/%s (%.2f%%)"), buf1, buf2, p_sys->f_slider );
/* Volume */ /* Volume */
aout_VolumeGet( p_intf, &i_volume ); aout_VolumeGet( p_playlist, &i_volume );
mvnprintw( y++, 0, COLS, _(" Volume : %i%%"), i_volume*200/AOUT_VOLUME_MAX ); mvnprintw( y++, 0, COLS, _(" Volume : %i%%"), i_volume*200/AOUT_VOLUME_MAX );
/* Title */ /* Title */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment