• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:13
CEST 22:13
KST 05:13
  • 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
TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Chinese SC2 server to reopen; live all-star event in Hangzhou18Weekly Cups (Oct 13-19): Clem Goes for Four3BSL Team A vs Koreans - Sat-Sun 16:00 CET7Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)81
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 13-19): Clem Goes for Four Chinese SC2 server to reopen; live all-star event in Hangzhou The New Patch Killed Mech! 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
Tenacious Turtle Tussle RSL Season 3 Qualifier Links and Dates $1,200 WardiTV October (Oct 21st-31st) SC2's Safe House 2 - October 18 & 19 INu's Battles #13 - ByuN vs Zoun
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers
Brood War
General
Is there anyway to get a private coach? SnOw's Awful Building Placements vs barracks BW General Discussion BSL Team A vs Koreans - Sat-Sun 16:00 CET BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL20] Semifinal B [Megathread] Daily Proleagues 300$ 3D!Community Brood War Super Cup #4 Azhi's Colosseum - Anonymous Tournament
Strategy
[I] TvP Marine Usage Roaring Currents ASL final Current Meta BW - ajfirecracker Strategy & Training
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Dawn of War IV ZeroSpace Megathread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Chess Thread Men's Fashion Thread
Fan Clubs
The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Series you have seen recently... [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023 Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
The Benefits Of Limited Comm…
TrAiDoS
Sabrina was soooo lame on S…
Peanutsc
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1795 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
Next event in 14h 47m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 543
UpATreeSC 93
Railgan 35
Codebar 29
JuggernautJason3
StarCraft: Brood War
EffOrt 414
Backho 87
Free 27
scan(afreeca) 13
NaDa 4
Dota 2
monkeys_forever240
capcasts47
Counter-Strike
kRYSTAL_28
Super Smash Bros
Chillindude36
Heroes of the Storm
Liquid`Hasu435
Other Games
Grubby3976
FrodaN2223
fl0m1075
Beastyqt665
Skadoodle285
ToD143
Trikslyr52
ViBE40
QueenE33
Mew2King30
shahzam7
Organizations
Counter-Strike
PGL255
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Hupsaiya 28
• davetesta8
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• 80smullet 24
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota255
Other Games
• imaqtpie1312
• Shiphtur239
Upcoming Events
WardiTV Invitational
14h 47m
Online Event
19h 47m
RSL Revival
1d 5h
RSL Revival
1d 13h
WardiTV Invitational
1d 14h
OSC
1d 18h
SKillous vs goblin
Spirit vs GgMaChine
ByuN vs MaxPax
Afreeca Starleague
2 days
Snow vs Soma
Sparkling Tuna Cup
2 days
WardiTV Invitational
2 days
CrankTV Team League
2 days
[ Show More ]
RSL Revival
2 days
Wardi Open
3 days
CrankTV Team League
3 days
Replay Cast
4 days
WardiTV Invitational
4 days
CrankTV Team League
4 days
Replay Cast
5 days
CrankTV Team League
5 days
Replay Cast
6 days
The PondCast
6 days
CrankTV Team League
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
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.