• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:37
CEST 15:37
KST 22:37
  • 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
Power Rank - Esports World Cup 202568RSL Season 1 - Final Week9[ASL19] Finals Recap: Standing Tall15HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16
Community News
Google Play ASL (Season 20) Announced6BSL Team Wars - Bonyth, Dewalt, Hawk & Sziky teams10Weekly Cups (July 14-20): Final Check-up0Esports World Cup 2025 - Brackets Revealed19Weekly Cups (July 7-13): Classic continues to roll8
StarCraft 2
General
What tournaments are world championships? Server Blocker #1: Maru - Greatest Players of All Time THE BEST CRYPTOCURRENCY RECOVERY EXPERTS/GOTO WIZA Power Rank - Esports World Cup 2025
Tourneys
Esports World Cup 2025 FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) Sea Duckling Open (Global, Bronze-Diamond)
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation #239 Bad Weather Mutation # 483 Kill Bot Wars Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava
Brood War
General
Google Play ASL (Season 20) Announced Simple editing of Brood War save files? (.mlx) BGH Auto Balance -> http://bghmmr.eu/ Ginuda's JaeDong Interview Series [Update] ShieldBattery: 2025 Redesign
Tourneys
[Megathread] Daily Proleagues [BSL20] Non-Korean Championship 4x BSL + 4x China CSL Xiamen International Invitational [CSLPRO] It's CSLAN Season! - Last Chance
Strategy
[G] Mineral Boosting Does 1 second matter in StarCraft? Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Total Annihilation Server - TAForever Nintendo Switch Thread [MMORPG] Tree of Savior (Successor of Ragnarok) Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Stop Killing Games - European Citizens Initiative Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Post Pic of your Favorite Food!
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
[\m/] Heavy Metal Thread Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion
Sports
Formula 1 Discussion 2024 - 2025 Football Thread TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
TeamLiquid Team Shirt On Sale The Automated Ban List
Blogs
Ping To Win? Pings And Their…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Socialism Anyone?
GreenHorizons
Eight Anniversary as a TL…
Mizenhauer
Customize Sidebar...

Website Feedback

Closed Threads



Active: 617 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
CranKy Ducklings
10:00
Master Swan Open #94
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Hui .272
BRAT_OK 78
ProTech61
MindelVK 31
StarCraft: Brood War
Britney 56831
Horang2 3350
Shuttle 2677
Bisu 2555
Barracks 1675
Flash 1472
Jaedong 1375
EffOrt 890
BeSt 625
firebathero 397
[ Show more ]
Larva 334
ToSsGirL 283
Soma 188
Last 169
sorry 145
Soulkey 114
Hyun 95
Rush 85
ZerO 56
Shinee 55
Sea.KH 53
JYJ50
JulyZerg 49
sas.Sziky 48
Aegong 44
Free 39
scan(afreeca) 22
sSak 21
zelot 17
Terrorterran 8
IntoTheRainbow 7
Dota 2
Gorgc4994
qojqva2104
XaKoH 440
XcaliburYe420
420jenkins63
LuMiX1
Counter-Strike
fl0m2462
sgares238
Heroes of the Storm
Khaldor278
Other Games
singsing2113
B2W.Neo1801
Beastyqt1190
crisheroes374
Fuzer 245
ZerO(Twitch)13
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH334
• Adnapsc2 27
• Dystopia_ 4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3100
League of Legends
• Nemesis1249
Upcoming Events
BSL20 Non-Korean Champi…
23m
CSO Cup
2h 23m
BSL20 Non-Korean Champi…
4h 23m
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
FEL
19h 23m
BSL20 Non-Korean Champi…
1d
BSL20 Non-Korean Champi…
1d 4h
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Sparkling Tuna Cup
2 days
Online Event
3 days
uThermal 2v2 Circuit
4 days
The PondCast
4 days
[ Show More ]
Replay Cast
5 days
Korean StarCraft League
6 days
CranKy Ducklings
6 days
Liquipedia Results

Completed

CSL Xiamen Invitational
Esports World Cup 2025
Murky Cup #2

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
BSL Team Wars
CSLPRO Last Chance 2025
CC Div. A S7
Underdog Cup #2
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25

Upcoming

ASL Season 20: Qualifier #1
ASL Season 20: Qualifier #2
ASL Season 20
CSLPRO Chat StarLAN 3
BSL Season 21
RSL Revival: Season 2
Maestros of the Game
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
HCC Europe
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
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.