Skip to content

ld892012/PlayniteSound

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playnite Sounds Extension

DownloadCountTotal DownloadCountLatest LatestVersion License

Playnite Sounds is an extension to play audio files during Playnite events. It can only play WAV audio files and mp3 for music, nothing else.

Latest Release

If you feel like supporting

I do everything in my spare time for free, if you feel something aided you and you want to support me, you can always buy me a "koffie" as we say in dutch, no obligations whatsoever...

Buy Me a Coffee at ko-fi.com

If you may not use Ko-Fi in you country, it should not stop you! On boosty you may support me and other creators.

Audio Files

Generic Info

There are 2 seperate set of sound files. Audio Files starting with 'D_' and files starting with 'F_'. The 'D_' files are the audio files for desktop mode, the 'F_' files for fullscreen mode. If you don't want to hear a certain file you can just delete the wav file of the event you don't want to hear. You can also change the files with your own files. Be sure to use the 'Open Audio Files Folder' menu for doing so. It will make sure loaded audio files get closed so you can overwrite them. Make sure playnite does not play any audio anymore after opening the folder or it's possible you can't overwrite that specific file. With my testings it did seem you could still first erase the files. After changing the audio files use the 'Reload Audio Files' menu to clear any loaded files and use your new files, or just restart Playnite. Do NOT use a long audio file for ApplicationStopped as Playnite will not quit until that audio file has finished playing. The same applies for switching between desktop and fullscreen mode.

Audio files that can be used

They are located in the sounds folder of the extension, you can open that folder using the main playnite menu -> Extensions -> Playnite sounds -> Open Audio Files Folder

Event Desktop Fullscreen
Playnite Startup D_ApplicationStarted.wav F_ApplicationStarted.wav
Playnite Exit D_ApplicationStopped.wav F_ApplicationStopped.wav
Game Installed D_GameInstalled.wav F_GameInstalled.wav
Game UnInstalled D_GameUninstalled.wav F_GameUninstalled.wav
Game Selected D_GameSelected.wav F_GameSelected.wav
Game Starting D_GameStarting.wav F_GameStarting.wav
Game Started D_GameStarted.wav F_GameStarted.wav
Game Stopped D_GameStopped.wav F_GameStopped.wav
Game LibraryUpdated D_LibraryUpdated.wav F_LibraryUpdated.wav

Create your own Audio files

A very simple and free tool to create (game) sounds is SFXR, you can use it to create certain blip and blop sounds and perhaps use it to create your own sound files to be used with Playnite Sound extension. If you want to record your own sounds or edit existing sounds you could use audacity

SFXR: https://www.drpetter.se/project_sfxr.html

Audacity: https://www.audacityteam.org/

Translation

The project is translatable on Crowdin

Thanks to the following people who have contributed with translations:

  • Spanish: Darklinpower
  • French: M0ylik
  • Polish: Renia
  • Italian: Federico Pezzuolo (3XistencE-STUDIO), StarFang208
  • German: kristheb
  • Hungarian: myedition8
  • Porutgese, Brazillian: atemporal_ (Atemporal), JCraftPlay
  • Ukrainian: SmithMD24
  • Norwegian: MeatBoy
  • Czech: SilverRoll (silveroll)
  • Korean: Min-Ki Jeong
  • Chinese Simplified: ATNewHope
  • Arabic: X4Lo

Credits

Theme Integration

Extension expose custom control to manage Music playing: Sounds_MusicControl. Using this control it is possible to:

  • Pause/Resume music for example during trailer playback
  • Retrieve current Music filename to show music title

Show current Music name

Current Music filename (no path, no extension) is exposed via Content.CurrentMusicName property and {PluginSettings Plugin=Sounds Path=CurrentMusicName} you may use in via binding:

    <ContentControl x:Name="Sounds_MusicControl" />
    <TextBlock
        Text="{Binding ElementName=Sounds_MusicControl, Path=Content.CurrentMusicName}"
    />

or

    <TextBlock
        Text="{PluginSettings Plugin=Sounds, Path=CurrentMusicName}"
    />

Pause/Resume during trailer playback

Theme may control music track via Tag property manipulation and pause Music on 'True' value and Resume on false.

Here how it can be implemented in theme GameDetail.xaml
  <Style TargetType="{x:Type GameDetails}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GameDetails}">
                    <Grid>
                        ...
                        <ContentControl x:Name="Sounds_MusicControl" />
                        ...
                    </Grid>
                    ...
                    <ControlTemplate.Triggers>
                        <DataTrigger
                            Binding="{Binding ElementName=ExtraMetadataLoader_VideoLoaderControl_NoControls_Sound, Path=Content.IsPlayerMuted, FallbackValue={StaticResource False}}"
                            Value="{StaticResource False}">
                            <Setter
                                Property="Tag"
                                Value="{Binding ElementName=ExtraMetadataLoader_VideoLoaderControl_NoControls_Sound, Path=Content.SettingsModel.Settings.IsVideoPlaying}"
                                TargetName="Sounds_MusicControl" />
                        </DataTrigger>

                        <DataTrigger
                            Binding="{Binding ElementName=ExtraMetadataLoader_VideoLoaderControl_NoControls_Sound, Path=Content.IsPlayerMuted, FallbackValue={StaticResource False}}"
                            Value="{StaticResource True}">
                            <Setter
                                Property="Tag"
                                Value="False"
                                TargetName="Sounds_MusicControl" />
                        </DataTrigger>

                        <DataTrigger
                            Binding="{Binding ElementName=PART_ElemGameDetails, Path=Visibility}"
                            Value="Collapsed">
                            <Setter
                                Property="Tag"
                                Value="False"
                                TargetName="Sounds_MusicControl" />
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

About

An extension for playnite to play audio during events

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.2%
  • PowerShell 1.8%