diff --git a/src/client/spark/Notifications/INotifier.cs b/src/client/spark/Notifications/INotifier.cs index ef47ba0bc..712633e21 100644 --- a/src/client/spark/Notifications/INotifier.cs +++ b/src/client/spark/Notifications/INotifier.cs @@ -171,11 +171,12 @@ namespace mbts.ui { static IReadOnlyDictionary _all_players() => new Dictionary { - { SoundNotification.SystemSound.GameCorrect, new NAudioPlayer(bts.Properties.Resources.game_sound_correct) }, - { SoundNotification.SystemSound.Whistle, new NAudioPlayer(bts.Properties.Resources.whistle) }, - { SoundNotification.SystemSound.BellCounter, new NAudioPlayer(bts.Properties.Resources.bell_counter) }, - { SoundNotification.SystemSound.Powerup, new NAudioPlayer(bts.Properties.Resources.powerup) } - }; + { SoundNotification.SystemSound.GameCorrect, new NAudioPlayer(bts.Properties.Resources.game_sound_correct) }, + { SoundNotification.SystemSound.Whistle, new NAudioPlayer(bts.Properties.Resources.whistle) }, + { SoundNotification.SystemSound.BellCounter, new NAudioPlayer(bts.Properties.Resources.bell_counter) }, + { SoundNotification.SystemSound.Powerup, new NAudioPlayer(bts.Properties.Resources.powerup) }, + { SoundNotification.SystemSound.CashRegister, new NAudioPlayer(bts.Properties.Resources.cash_register_purchase) } + }; class NAudioPlayer { WaveOutEvent _wave_out = new WaveOutEvent(); diff --git a/src/client/spark/Notifications/SoundNotification.cs b/src/client/spark/Notifications/SoundNotification.cs index 51669a5cc..b4f32b957 100644 --- a/src/client/spark/Notifications/SoundNotification.cs +++ b/src/client/spark/Notifications/SoundNotification.cs @@ -39,6 +39,8 @@ namespace bts.shell { Powerup, [License(LicenseType.AttributionLicense, "Bell, Counter, A", "Inspectorj of Freesound.org", link: "https://www.jshaw.co.uk")] BellCounter, + [License(LicenseType.PublicDomain, "Cash Register Purchase", "Zott820", link: "https://freesound.org/people/Zott820/sounds/")] + CashRegister } public enum SoundTypeOneofCase { diff --git a/src/client/spark/Properties/Resources.Designer.cs b/src/client/spark/Properties/Resources.Designer.cs index b6cebe8b4..0874f3351 100644 --- a/src/client/spark/Properties/Resources.Designer.cs +++ b/src/client/spark/Properties/Resources.Designer.cs @@ -60,6 +60,15 @@ namespace bts.Properties { } } + /// + /// Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. + /// + internal static System.IO.UnmanagedMemoryStream cash_register_purchase { + get { + return ResourceManager.GetStream("cash_register_purchase", resourceCulture); + } + } + /// /// Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. /// diff --git a/src/client/spark/Properties/Resources.resx b/src/client/spark/Properties/Resources.resx index dabdb8eca..8872236c5 100644 --- a/src/client/spark/Properties/Resources.resx +++ b/src/client/spark/Properties/Resources.resx @@ -136,4 +136,7 @@ ..\Sounds\powerup.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Sounds\cash_register_purchase.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/src/client/spark/Sounds/cash_register_purchase.wav b/src/client/spark/Sounds/cash_register_purchase.wav new file mode 100644 index 000000000..49e750d02 Binary files /dev/null and b/src/client/spark/Sounds/cash_register_purchase.wav differ