• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:21
CEST 00:21
KST 07:21
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
BGE Stara Zagora 2025: Info & Preview27Code S RO12 Preview: GuMiho, Bunny, SHIN, ByuN3The Memories We Share - Facing the Final(?) GSL46Code S RO12 Preview: Cure, Zoun, Solar, Creator4[ASL19] Finals Preview: Daunting Task30
Community News
[BSL20] ProLeague: Bracket Stage & Dates9GSL Ro4 and Finals moved to Sunday June 15th12Weekly Cups (May 27-June 1): ByuN goes back-to-back0EWC 2025 Regional Qualifier Results26Code S RO12 Results + RO8 Groups (2025 Season 2)3
StarCraft 2
General
The SCII GOAT: A statistical Evaluation what is flash bitcoin BGE Stara Zagora 2025: Info & Preview Magnus Carlsen and Fabi review Clem's chess game. Jim claims he and Firefly were involved in match-fixing
Tourneys
Bellum Gens Elite: Stara Zagora 2025 Sparkling Tuna Cup - Weekly Open Tournament SOOPer7s Showmatches 2025 Master Swan Open (Global Bronze-Master 2) $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
[G] Darkgrid Layout Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 477 Slow and Steady Mutation # 476 Charnel House Mutation # 475 Hard Target Mutation # 474 Futile Resistance
Brood War
General
Mihu vs Korea Players Statistics BGH auto balance -> http://bghmmr.eu/ BW General Discussion [BSL20] ProLeague: Bracket Stage & Dates Will foreigners ever be able to challenge Koreans?
Tourneys
[ASL19] Grand Finals NA Team League 6/8/2025 [Megathread] Daily Proleagues [BSL20] ProLeague Bracket Stage - Day 2
Strategy
I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Armies of Exigo - YesYes? Nintendo Switch Thread Stormgate/Frost Giant Megathread What do you want from future RTS games? Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Heroes of the Storm 2.0 Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Vape Nation Thread European Politico-economics QA Mega-thread
Fan Clubs
Maru Fan Club Serral Fan Club
Media & Entertainment
Korean Music Discussion [Manga] One Piece
Sports
2024 - 2025 Football Thread Formula 1 Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Cleaning My Mechanical Keyboard
TL Community
The Automated Ban List
Blogs
Cognitive styles x game perf…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Poker
Nebuchad
Customize Sidebar...

Website Feedback

Closed Threads



Active: 21886 users

Student Game Dev Part 22 - Sound effects

Blogs > Soan
Post a Reply
Soan
Profile Blog Joined August 2010
New Zealand194 Posts
April 25 2014 02:00 GMT
#1
+ Show Spoiler [Previous parts] +
Part One - It begins
Part Two - Technical Foundation
Part Three - Game Design
Part Four - Input and Physics
Part Five - More Physics Things
Part Six - Even More Physics
Part Seven - User Interface
Part Eight - UI and the Editor
Part Nine - Editor Progress
Part Ten - Progress, and videos
Part Eleven - Fixing the Physics
Part Twelve - Unproductive
Part Thirteen - Context menu + enemies
Part Fourteen - Enemies and Problems
Part Fifteen - Play testing
Part Sixteen - Editor and Art
Part Seventeen - Video!
Part Eighteen - Layers and Music
Part Nineteen - Water and Enemies
Part Twenty - Score and decisions
Part Twenty One - Background music


This Week
Hello again TeamLiquid! Welcome back to my blog about the development of The Adventures of Sam the Pirate, the 2D platformer I'm creating as the final game project for my Bachelor of Software Engineering degree. Last week I talked about implementing FMod to play background music. This week I'll be talking about putting sound effects in, and a little bit about the plans for loading screens. Another short post this week, as it's another long weekend here.

Sound Effects
Easily got these implemented this week, in a very similar manner to how the background music plays, although because multiple sound effects could be played at once, I had to do make sure I took this into account. Sounds in FMod are played by loading the sound into a Sound object, and then playing that sound over a Channel, which is also its own object. The Channel object is used to pausing, and otherwise altering the sound while it is being played. So for the background music, it is fine to simply have one of each, and reload the Sound object when I want to play different background music. But for sound effects, as there are multiple sounds, I need a Sound and Channel object for each different sound effect.

I'd been avoiding using STL, or Standard Template Library in other parts of the project, as I didn't feel I needed any part of it. Everywhere else I know how many of each object I need, and so did not feel like I needed to use any part of STL, I could just use fixed size arrays instead of the STL containers.

I could have done something similar for sound effects, but decided it was faster and a more efficient use of my time to just use a couple STL maps, with the path to the sound effect acting as the key, and the Sound or Channel object as values. At this point in the project I only have three weeks left, so I just need to get the last few things working, and not worry about trying to do things optimally, getting things working is more important.

The sound effects are also pre-loaded during the levels load, to remove any lag from trying to play them the first time. Obviously though, if they have already been loaded, then nothing happens as the Sound and Channel objects for that sound effect already exist, so they're ready for use.

Loading Screens
The current plan for loading screens is to simply render a static image that says loading, perhaps randomising what image is displayed. I could use existing concept art as these background images for loading screens, or look at getting a few pieces quickly done for each area of the game. If I had more time, or had maybe planned things out a bit better, I would have like to use threading, to display some animated sprites on the loading screen while things are loaded in the background, or have a simple game for people to play while they wait for the level to load.

What's next?
Over the next week I'll get loading screens working, and think a bit about how to do a level selection screen. Overall I'm feeling pretty good about things, as once these two items are done, it just comes down to making the rest of the levels (easily done in the editor), and polishing the game up before the final hand in date.

Keep up to date!
Be sure to follow me on Twitter, and like the Facebook page to stay up to date on future content and blog posts when they happen. If you have any questions don't hesitate to ask, either through Twitter or Facebook! You can also check out the blog, previous posts, screenshots and videos over at my site.

*****
Please log in or register to reply.
Live Events Refresh
BSL: ProLeague
18:00
Bracket Stage: Day 2
HBO vs Doodle
spx vs Tech
DragOn vs Hawk
Dewalt vs TerrOr
ZZZero.O328
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
CosmosSc2 125
EnDerr 46
StarCraft: Brood War
Calm 2787
Rain 1369
Horang2 374
ZZZero.O 333
Artosis 228
Dota 2
NeuroSwarm61
LuMiX1
League of Legends
tarik_tv13558
Dendi1604
Counter-Strike
olofmeister1724
Stewie2K502
Super Smash Bros
C9.Mang012282
Mew2King80
Heroes of the Storm
Grubby3374
Liquid`Hasu494
Khaldor159
Other Games
summit1g7189
FrodaN818
JimRising 538
Mlord482
ViBE129
elazer98
Maynarde47
KnowMe37
Organizations
Dota 2
PGL Dota 2 - Secondary Stream5668
Other Games
gamesdonequick1307
BasetradeTV136
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 22 non-featured ]
StarCraft 2
• Berry_CruncH232
• musti20045 63
• Hupsaiya 62
• StrangeGG 45
• RyuSc2 36
• Adnapsc2 32
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• 3DClanTV 39
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota22175
• Ler156
League of Legends
• Doublelift6175
• Shiphtur267
Other Games
• imaqtpie2043
Upcoming Events
Wardi Open
12h 39m
Replay Cast
1d 1h
Replay Cast
1d 11h
WardiTV Invitational
1d 12h
WardiTV Invitational
1d 12h
GSL Code S
2 days
Rogue vs GuMiho
Maru vs Solar
Online Event
3 days
Replay Cast
3 days
GSL Code S
3 days
herO vs Zoun
Classic vs Bunny
The PondCast
3 days
[ Show More ]
Replay Cast
4 days
WardiTV Invitational
4 days
Korean StarCraft League
5 days
CranKy Ducklings
5 days
WardiTV Invitational
5 days
Cheesadelphia
5 days
GSL Code S
6 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-06-05
BGE Stara Zagora 2025
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL Season 17: Qualifier 2
2025 GSL S2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
ECL Season 49: Europe
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025
BLAST Open Spring 2025

Upcoming

CSL 17: 2025 SUMMER
Copa Latinoamericana 4
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Murky Cup #2
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.