mirror of
				https://github.com/Dummi26/musicdb.git
				synced 2025-10-30 03:25:26 +01:00 
			
		
		
		
	no gapless playback, but less bugs
This commit is contained in:
		
							parent
							
								
									aa657382fa
								
							
						
					
					
						commit
						23f07554af
					
				| @ -61,19 +61,19 @@ impl<T> PlayerBackend<T> for PlayerBackendPlaybackRs<T> { | |||||||
|                 None |                 None | ||||||
|             } |             } | ||||||
|         }; |         }; | ||||||
|         if let Some(song) = &loaded_song { |         // if let Some(song) = &loaded_song {
 | ||||||
|             if self.player.has_current_song() { |         //     if self.player.has_current_song() {
 | ||||||
|                 if let Err(e) = self.player.play_song_next(song, None) { |         //         if let Err(e) = self.player.play_song_next(song, None) {
 | ||||||
|                     if let Some(s) = &self.command_sender { |         //             if let Some(s) = &self.command_sender {
 | ||||||
|                         s.send(Command::ErrorInfo( |         //                 s.send(Command::ErrorInfo(
 | ||||||
|                             format!("Couldn't preload song #{id}!"), |         //                     format!("Couldn't preload song #{id}!"),
 | ||||||
|                             format!("Error: {e}"), |         //                     format!("Error: {e}"),
 | ||||||
|                         )) |         //                 ))
 | ||||||
|                         .unwrap(); |         //                 .unwrap();
 | ||||||
|                     } |         //             }
 | ||||||
|                 } |         //         }
 | ||||||
|             } |         //     }
 | ||||||
|         } |         // }
 | ||||||
|         self.next = Some((id, loaded_song, custom_data)); |         self.next = Some((id, loaded_song, custom_data)); | ||||||
|     } |     } | ||||||
|     fn pause(&mut self) { |     fn pause(&mut self) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Mark
						Mark